Solana Model Context Protocol (MCP) Demo
About
An MCP server for Solana development providing basic RPC methods and helpful prompts.
Details
- Author
- solana-foundation
- GitHub stars
- 43
- Downloads
- 337
- Categories
- Developer Tools, Other, Finance
Jump to
- Provides basic Solana RPC methods (getBalance, getAccountInfo, getTransaction)
- Includes helpful prompts for Solana development
- Designed as a demo foundation for extensions
- Works with Claude, Windsurf, and Cursor via MCP
- Written in TypeScript for Node.js environments
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Solana Model Context Protocol (MCP) DemoCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, install dependencies with pnpm, then generate a configuration file using pnpm generate-config or pnpm build && pnpm generate-config:js. Use the printed JSON to configure MCP clients like Claude, Windsurf, or Cursor. For inspection, run npx @modelcontextprotocol/inspector ts-node index.ts.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"solana model context protocol (mcp) demo": {
"solana-dev-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"ts-node",
"index.ts"
]
}
}
}
}
McpServers
{
"solana-dev-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"ts-node",
"index.ts"
]
}
}
Solana Model Context Protocol (MCP) Demo
This repository demonstrates a simple implementation of a Model Context Protocol (MCP) server for Solana development.
The Model Context Protocol (MCP) is a standardized interface for AI models to interact with tools and resources. This demo showcases a simple MCP server implementation that provides:
- Basic RPC methods for Solana (getBalance, getAccountInfo, getTransaction)
- Some helpful prompts for Solana development
- Node.js (v16 or higher recommended)
- pnpm package manager (v9.10.0 or compatible)
Clone this repository and install dependencies:
git clone https://github.com/solana-foundation/solana-dev-mcp.git cd solana-dev-mcp pnpm install
To run this server in the MCP inspector, use:
npx @modelcontextprotocol/inspector ts-node index.ts
-
Explore the code: The main implementation is inindex.ts, which sets up an MCP server with simple fetching tools and some prompts.
Modify the server: You can extend the server by adding more tools, resources, and prompts.
Get ideas for extensions: Check out theIdeas Extending MCP for Solana Developmentsection to get inspiration for new tools and resources to add.
This section explains how to use the Solana MCP server inClaude. Follow the same steps to use the Solana MCP server inWindsurfandCursor.
To use this Solana MCP server, you need to generate a configuration file that Claude can use to connect to the server. Run one of the following commands to generate the configuration file:
- pnpm generate-configif you havets-nodeinstalled globally
- pnpm build && pnpm generate-config:jsif you don't havets-nodeinstalled globally
This will print a JSON config with the following content:
{ "mcpServers": { "solana-dev": { "command": "ts-node", "args": ["<full-path-to-repo>/index.ts"] } } }
If you don't havets-nodeinstalled globally:
{ "mcpServers": { "solana-dev": { "command": "node", "args": ["<full-path-to-repo>/dist/index.js"] } } }
- index.ts- Main server implementation
- package.json- Project dependencies and metadata
- tsconfig.json- TypeScript configuration
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





