Solana MCP logo

Solana MCP

Organization
solana-foundation

The official Solana Developer MCP. Purpose: serve up-to-date documentation across the Solana ecosystem to AI agents and developer tooling.

Publishersolana-foundation
Repositorysolana-mcp
LanguageTypeScript
Forks
24
Stars
82
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    Solana MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    82 stars and 24 forks from the linked repository.

Official Solana MCP Server

Try it out at https://mcp.solana.com !

The official Solana Developer MCP. Purpose: serve up-to-date documentation across the Solana ecosystem to AI agents and developer tooling.

Architecture

  • Ingestion (ingestion/): Databricks notebook crawls the sources listed in ingestion/sources.yaml, chunks markdown, and writes embeddings into a Delta-backed Vector Search index.
  • Retrieval (lib/services/databricks/): MCP tools query the index via the Databricks managed AI Search MCP server, which retrieves and reranks results server-side. get_documentation falls back to a SQL read of the docs_chunks Delta table when a source has no published llms.txt.
  • Server (lib/index.ts, server/cloudrun.ts): Exposes five tools over MCP — Solana_Expert__Ask_For_Help and Solana_Documentation_Search (semantic RAG), list_sections and get_documentation (canonical-spec retrieval modelled after the Svelte AI server), and program_autofixer for Anchor and Pinocchio Solana program Rust checks. Deployed on Cloud Run as a containerised Node service fronting mcp.solana.com; calls the Databricks workspace REST API directly for retrieval.
  • Section catalogue (ingestion/sources.yaml → lib/sources.generated.ts): pnpm gen:sources emits a typed catalogue of every source, its tags from a closed 21-section taxonomy, and use_cases keywords used by list_sections to route the agent.
  • Analytics (lib/services/s3/analytics.ts): Tool calls + initializations are buffered in memory and uploaded as JSONL objects to the S3 prefix configured by ANALYTICS_S3_URI.

CLI

cli/ ships @solana/mcp, a dependency-free command-line client for agents and scripts without MCP support. Each command is one tools/call against mcp.solana.com, so it needs no credentials.

bash
npx @solana/mcp search "derive a PDA with Anchor"
npx @solana/mcp ask "why does my CPI fail with PrivilegeEscalation?"
npx @solana/mcp sections
npx @solana/mcp docs anchor-docs frameworks
npx @solana/mcp check programs/vault/src/lib.rs   # or: cat lib.rs | npx @solana/mcp check -

Add --json for the raw tool result, and --framework anchor|pinocchio to check when the framework is not detected from imports. Exit codes: 0 ok, 1 check found a syntax error or an undismissed critical/high issue, 2 usage, network, or server error. Set SOLANA_MCP_URL to point at another server, e.g. http://localhost:8080/mcp.

To release, bump version in cli/package.json, merge, then run the Publish CLI workflow from main (dry run first). It publishes to npm through Trusted Publishing and creates a cli-v<version> GitHub release.

Local Development

bash
pnpm install
cp .env.example .env  # set DATABRICKS_HOST + DATABRICKS_TOKEN + DATABRICKS_VS_INDEX
pnpm dev:local
pnpm inspector  # connects MCP Inspector at http://127.0.0.1:6274

Deploy

Production runs on Cloud Run (mcp.solana.com → server/cloudrun.ts, built via the root Dockerfile). Push to main triggers .github/workflows/deploy-cloudrun.yml, which submits a Cloud Build and rolls the new revision. Runtime env vars (DATABRICKS_HOST, DATABRICKS_TOKEN, DATABRICKS_VS_INDEX, DATABRICKS_WAREHOUSE_ID, ANALYTICS_S3_*, AWS_*) and deploy config (GCP_*, VPC_CONNECTOR) are loaded from the Doppler prd_github config at deploy time.

The Databricks side (databricks.yml) deploys two resources via just deploy:

  • the daily ingestion job (crawl_and_index.py notebook) — crawls sources, MERGEs into Delta, syncs the Vector Search index;
  • the Lakeview dashboard. Analytics source files land in S3 and require downstream ingestion before dashboard consumption.

Per-environment values (catalog, warehouse, index) live in the gitignored prod.yml (see template inline in databricks.yml).

bash
just deploy   # builds, pushes ingestion job + dashboard

Evals

Per-environment values (catalog, warehouse, index) live in the gitignored prod.yml; supply each variable listed under variables: in databricks.yml.

Use Solana MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Solana MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Solana MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Solana MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "solana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Solana MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Solana MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Solana MCP to help me with this task?
Solana MCP
Sure. I read it.
Here is what I found using Solana MCP.

Frequently asked questions

What is the Solana MCP MCP server used for?

Solana MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Solana MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Solana MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Solana MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Solana MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Solana MCP MCP to TypingMind?

Solana MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Solana MCP MCP provide in TypingMind?

Solana MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Solana MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Solana MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇