Skip to content
Set up your coding agent for SolanaPaste one line into your coding agent. It installs the Solana MCP server and the Solana skill.
Set up Solana for me: fetch and follow this guide https://solana.com/developers/docs/intro/agent-setup.md
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:
Terminal
add-mcp detects the coding agents you use and adds the server to each one. To set up one agent yourself, use its tab:
Terminal
Run /mcp in Claude Code to check that solana-mcp is connected.
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

Terminal
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.