Labsco
MCP SERVER

Solana Dev MCP

by solana-foundation

A minimal Solana MCP server you can read end to end and fork into your own tooling.

Summary
A starting point, offered as one — three RPC reads and a file short enough to extend.

What you get out of the box is balance, account info and transaction lookup, which covers checking state during development and not much more. Its value is the shape: the repository lists the extensions worth building — a priority fee estimator, an Anchor error explainer, a transaction builder — and gives you a working server to hang them on.

What it is

A demo server from the Solana Foundation that wires a few Solana RPC calls and some development prompts into MCP — the whole implementation is one file.

What you get
  • getBalance — the SOL balance of an address
  • getAccountInfo — the on-chain account record
  • getTransaction — a transaction by signature
  • Prompts aimed at Solana development, alongside the tools
  • index.ts as the entire server, small enough to read before you extend it
Requirements

Node.js v16 or higher and pnpm. Clone, pnpm install, then pnpm generate-config to print the client configuration — it launches index.ts with ts-node, or dist/index.js with node if you build first. No key and no account. The repository states plainly that this is a simple example and should not be used in production.

Setup effort

One command — npx -y solana-dev-mcp