Sonar-MCP
Enables natural-language interaction with Solana blockchain data—including network status, wallet balances, transactions, and token supply—via the Helius RPC API in MCP clients like Cursor.
README
Sonar MCP
An MCP server exposing Solana network, wallet, transaction, and token-intelligence tools backed by the Helius RPC API. Built to plug directly into MCP-compatible clients such as Cursor.
Tools
| Domain | Tool | Description |
|---|---|---|
| Network | get_slot |
Current slot at a given commitment level |
| Network | get_epoch_info |
Epoch progress: absolute slot, block height, index |
| Network | get_health |
RPC node health check |
| Wallet | get_sol_balance |
SOL balance for a wallet address |
| Wallet | get_token_accounts_by_owner |
SPL token holdings for a wallet |
| Transactions | get_transaction |
Full transaction detail by signature |
| Transactions | get_signatures_for_address |
Recent transaction signatures for an address |
| Tokens | get_token_supply |
Supply and decimals for an SPL token mint |
Prerequisites
Setup
git clone <your-repo-url> sonar-mcp
cd sonar-mcp
uv sync
cp .env.example .env
Edit .env:
HELIUS_API_KEY=your-key-here
SOLANA_NETWORK=devnet # or mainnet
Running
Launch the MCP Inspector for local testing:
uv run mcp dev src/sonar_mcp/server.py
This opens a browser UI where each tool can be called directly against Helius before wiring the server into a client.
Using with Cursor
Add to .cursor/mcp.json (project-level) or your global Cursor MCP config:
{
"mcpServers": {
"sonar": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/sonar-mcp", "sonar-mcp"]
}
}
}
Reload MCP servers in Cursor and the 8 tools will appear under sonar.
Project structure
sonar-mcp/
├── .env.example
├── pyproject.toml
├── README.md
└── src/
└── sonar_mcp/
├── instance.py # shared MCPServer instance
├── server.py # entrypoint, registers tool modules
├── config.py # env + RPC URL
├── rpc_client.py # shared Helius JSON-RPC POST helper
└── tools/
├── network.py
├── wallet.py
├── transactions.py
└── tokens.py
Notes
- Built on MCP Python SDK v2 (
mcp.server.MCPServer). The oldFastMCPclass frommcp.server.fastmcpwas renamed and moved in v2 — if you're reading examples elsewhere that importFastMCP, they're targeting SDK v1. - All Solana RPC calls go through Helius directly; this server does not call the original Sonar FastAPI service.
RpcErrorresponses are returned as{"error": ...}payloads rather than raised, so tool calls degrade gracefully instead of crashing the MCP session.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.