Solana Model Context Protocol (MCP) Demo
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"solana-dev": {
"args": [
"<full-path-to-repo>/index.ts"
],
"command": "ts-node"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This repository demonstrates a simple implementation of a Model Context Protocol (MCP) server for Solana development.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / finance
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP server for using the GitLab API
MCP Security Weekly
Get CVE alerts and security updates for Solana Dev Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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:
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 in index.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 the Ideas Extending MCP for Solana Development section to get inspiration for new tools and resources to add.
This section explains how to use the Solana MCP server in Claude. Follow the same steps to use the Solana MCP server in Windsurf and Cursor.
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-config if you have ts-node installed globallypnpm build && pnpm generate-config:js if you don't have ts-node installed globallyThis will print a JSON config with the following content:
If you have ts-node:
{
"mcpServers": {
"solana-dev": {
"command": "ts-node",
"args": ["<full-path-to-repo>/index.ts"]
}
}
}
If you don't have ts-node installed globally:
{
"mcpServers": {
"solana-dev": {
"command": "node",
"args": ["<full-path-to-repo>/dist/index.js"]
}
}
}
index.ts - Main server implementationpackage.json - Project dependencies and metadatatsconfig.json - TypeScript configurationThis MCP server implementation provides a foundation that you can extend or fork for your own Solana development needs. Here are some ideas to get you started:
Priority Fee Estimator: Add a tool that estimates optimal priority fees for Solana transactions based on recent network activity. This could help users optimize transaction costs while ensuring timely processing.
Solana Verify Debugger: Create a tool that helps debug issues with solana-verify by providing more detailed information about the verification process.
Solana Security.txt Inspector: Build a tool that extracts and displays the security.txt file information for a given Solana program, making it easier to contact the program's maintainers with security concerns.
Squads Helper for Program Deployment: Create a tool that automates the process of deploying and upgrading Solana programs, making it easier to manage program state across multiple environments.
Anchor-Error Explainer: Develop a tool that takes an error code and looks up the corresponding human-readable error message from the Anchor error code database.
Enhanced Prompts: Expand the server's prompt capabilities to provide more context-aware suggestions for Solana development tasks. For example, add prompts for common transact