Set up your coding agent for SolanaPaste one line into your coding agent. It installs the Solana MCP server and the Solana skill.
Coding agents such as Claude Code, Codex, and Cursor often learn Solana from
out-of-date training data. The Solana MCP server lets your agent look up
current docs while it works, and the Solana skill teaches it current APIs and
conventions.
To build an AI agent that holds a wallet and transacts onchain, see
Build onchain AI agents instead.
Add the Solana MCP server
Run this in your project folder:
npx add-mcp https://mcp.solana.com/mcp -n solana-mcp -g -y
add-mcp detects the coding agents you use and adds the server to each one.
To set up one agent yourself, use its tab:
Claude Code
Codex
Cursor
VS Code
Windsurf
claude mcp add --transport http solana-mcp https://mcp.solana.com/mcp
Run /mcp in Claude Code to check that solana-mcp is connected.codex mcp add solana-mcp --url https://mcp.solana.com/mcp
Run codex mcp list to check that solana-mcp is listed.Add this to ~/.cursor/mcp.json for every project, or to
.cursor/mcp.json for one project:{
"mcpServers": {
"solana-mcp": {
"url": "https://mcp.solana.com/mcp"
}
}
}
In the Command Palette, run MCP: Open User Configuration, then add:{
"servers": {
"solana-mcp": {
"type": "http",
"url": "https://mcp.solana.com/mcp"
}
}
}
Add this to ~/.codeium/windsurf/mcp_config.json:{
"mcpServers": {
"solana-mcp": {
"serverUrl": "https://mcp.solana.com/mcp"
}
}
}
The server needs no API key. It searches the Solana docs, the Anchor docs, and
other Solana sources, and checks Anchor and Pinocchio program code for security
issues. The Solana MCP site lists every tool and has
project instructions you can add to AGENTS.md or CLAUDE.md.
Install the Solana skill
npx skills add https://github.com/solana-foundation/solana-dev-skill
The skill installs into your project, where most coding agents pick it up.
Browse more workflows in the Solana skills library.
Try it
Ask your agent a Solana question or give it a task. A good first one is “Follow
the Solana Quickstart with me”: the Quickstart sends test
dollars, creates an asset, sends it to someone, and freezes their account, on
devnet.