Solana MCP Server
Provides tools for querying Solana wallets and token balances, retrieving token details and price history, analyzing recent trades, discovering trending and newly launched tokens, performing token risk analysis (mint/freeze authorities, LP status, holder concentration), detecting bundled launches, checking creator token history, tracking whale transactions, and fetching Jupiter swap quotes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Solana MCP Server is token BONK safe to buy?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š Solana MCP Server
Let AI agents interact with the Solana blockchain. Query wallets, track tokens, analyze trades, and assess risk ā all through natural language.
š¤ What is this?
MCP (Model Context Protocol) is the "USB-C for AI" ā a standard that lets AI models (Claude, GPT, etc.) connect to external tools. This server exposes Solana blockchain data to any MCP-compatible AI.
Instead of manually checking Solscan or writing scripts, just ask your AI:
"What's my wallet balance?"
"Show me trending Solana tokens"
"Is this token safe to buy?"
Related MCP server: solana-rpc
⨠Features
Tool | Description |
| Get SOL and token balances for any wallet |
| Full token details with price history, socials, DEX liquidity |
| Recent swaps/trades from a wallet (buy/sell history) |
| Currently trending Solana tokens from DexScreener |
| Find newly launched tokens (just listed!) |
| Full risk analysis ā see below |
| šÆ Detect sniper/insider bundled buys at launch |
| šµļø Find other tokens by same creator (rug history) |
| š Track large buy/sell transactions |
| š± Get Jupiter swap quotes |
š Enhanced Token Info
The get_token_info tool now includes:
Price Changes ā 5m, 1h, 6h, 24h price movements
Token Age ā How old is this token?
Pump.fun Detection ā Is this from pump.fun?
Social Links ā Twitter, Telegram, Website
DEX Liquidity ā Breakdown per DEX
š”ļø Token Risk Analysis
The analyze_token tool performs comprehensive safety checks:
Mint Authority ā Can the creator mint more tokens? (rug risk)
Freeze Authority ā Can the creator freeze your tokens?
LP Status ā Is liquidity burned or locked?
Token Age ā Newer tokens = higher risk
Holder Distribution ā Who owns what percentage?
Concentration Risk ā Top holder & top 10 analysis
Social Presence ā Does it have Twitter/Telegram?
š Quick Start
1. Clone & Install
git clone https://github.com/miftarohmann/solana-mcp.git
cd solana-mcp
npm install2. Configure
cp .env.example .envEdit .env and add your Helius API key:
HELIUS_API_KEY=your-helius-api-key-hereš” Get a free API key at helius.dev ā free tier is plenty for personal use.
3. Build
npm run buildš Integration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"solana": {
"command": "node",
"args": ["/path/to/solana-mcp/dist/index.js"],
"env": {
"HELIUS_API_KEY": "your-helius-api-key"
}
}
}
}Cursor / VS Code
Add to your MCP settings:
{
"mcp": {
"servers": {
"solana": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/solana-mcp"
}
}
}
}Clawdbot
Add to your Clawdbot config (~/.clawdbot/config.yml):
mcp:
servers:
- name: solana
command: node
args: [/path/to/solana-mcp/dist/index.js]
env:
HELIUS_API_KEY: your-keyTest Standalone
# Run with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsš¬ Example Conversations
Once connected, you can ask your AI:
Wallet Queries:
"Check the balance of wallet
7xKXtg..." "What tokens does this wallet hold?"
Token Research:
"Get info on token
BONK" "What's the price and market cap ofJUP?"
Trading Analysis:
"Show me recent trades from wallet
abc123..." "Is this wallet buying or selling more?"
Trending & Discovery:
"What tokens are trending on Solana right now?" "Show me the top 5 movers"
Risk Assessment:
"Analyze this token for risk:
[mint address]" "Is this token safe? Check holder distribution"
š”ļø Risk Analysis
The analyze_token tool checks for red flags:
š Authority Checks:
Mint Authority ā If NOT revoked, creator can mint infinite tokens
Freeze Authority ā If NOT revoked, creator can freeze your holdings
š§ Liquidity Checks:
LP Burned ā Safest option, liquidity can't be pulled
LP Locked ā Good, but check lock duration
LP Unlocked ā Risky, potential rug pull
š„ Holder Analysis:
Top Holder % ā >50% = very risky, >20% = moderate risk
Top 10 Total ā >80% = concentrated
Holder Count ā <100 = low distribution
Returns a risk score (0-100) with detailed explanations and safety checklist.
š” APIs Used
API | Purpose | Cost |
Solana RPC, transactions, token data | Free tier available | |
Prices, trending tokens | Free, no key needed |
š ļø Development
# Run in development mode (auto-reload)
npm run dev
# Build for production
npm run build
# Start production server
npm startš Project Structure
solana-mcp/
āāā src/
ā āāā index.ts # MCP server entry point
ā āāā solana-api.ts # Solana/Helius API functions
āāā dist/ # Compiled JavaScript
āāā .env.example # Environment template
āāā package.json
āāā README.mdš¤ Contributing
Contributions welcome! Feel free to:
Report bugs
Suggest features
Submit PRs
š License
MIT ā do whatever you want with it.
Available Tools
10 toolsanalyze_tokenB
Comprehensive token risk analysis: mint/freeze authority status, LP lock/burn check, holder distribution, and concentration analysis
Inputs: mint_address (required).
check_bundled_launchB
Detect if a token had bundled/sniper buys at launch (insider trading detection)
Inputs: mint_address (required).
get_creator_tokensB
Find other tokens created by the same creator/dev wallet (check rug history)
Inputs: mint_address (required).
get_new_pairsB
Get recently created token pairs on Solana DEXes - find new tokens that just launched
Inputs: limit.
get_recent_tradesC
Get recent swap/trade transactions for a Solana wallet
Inputs: address (required), limit.
get_swap_quoteC
Get Jupiter swap quote - check how much you would get for a swap
Inputs: amount (required), input_mint (required), output_mint (required), slippage.
get_token_infoB
Get detailed information about a Solana token including price, market cap, and volume
Inputs: mint_address (required).
get_trending_tokensC
Get currently trending Solana tokens from DexScreener
Inputs: limit.
get_wallet_balanceB
Get SOL and token balances for a Solana wallet address
Inputs: address (required).
get_whale_transactionsC
Get large buy/sell transactions for a token (whale tracking)
Inputs: mint_address (required), limit, min_sol.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 10 tools
Most tools target clearly distinct objects: wallet balance, token info, trending tokens, new pairs, swap quote, and risk/insider checks each have a unique angle. Minor overlap exists between get_recent_trades (wallet-centric) and get_whale_transactions (token-centric, size-filtered), and between get_token_info and analyze_token, but descriptions make the boundaries reasonably clear.
Nine of ten tools follow a clean get_<noun> snake_case pattern (get_wallet_balance, get_token_info, get_new_pairs, etc.). The single outlier, analyze_token, drops the get_ prefix but remains readable and semantically appropriate for an analysis action.
Ten tools is well within the ideal 3-15 range and each covers a distinct Solana analytics need (balance, token metadata, discovery, risk, whale activity, quoting). No tool feels redundant or filler.
The surface covers wallet inspection, token discovery, risk/rug analysis, whale tracking, and swap quoting ā a coherent read-only analytics domain. Gaps remain at the edges: no swap execution or transaction submission, no price/OHLC history, and no direct holder-list or token-search endpoint, but agents can work around these for most analysis workflows.
Maintenance
Related MCP Connectors
Solana onchain intelligence for AI agents: wallet risk, due-diligence, perps funding, smart money.
Solana wallet & token checks for agents, pay per call in USDC via x402 (Solana or Base).
Solana address risk grades and token scans for AI agents. Pay-per-call via x402 (USDC on Base).
Solana rug and scam checker for AI agents: token risk score, wallet and drainer-link scans, Pro watchlists. Free tier; agents can self-pay for Pro in USDC.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides unified access to real-time and historical Solana ecosystem data through 40+ API endpoints, enabling LLM agents to query tokens, wallets, trades, and DeFi metrics.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query live Solana wallet token holdings, native SOL balances, transaction history, transaction details, and SPL token mint top holders through keyless public endpoints.74 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to analyze Solana wallets for realized PnL, win rate, trading cadence, and smart-money, bot, or exchange-like flags, plus screen trending tokens for liquidity, volume, and rug risk. Exposes wallet quick checks, full profiles, free previews, and trending-token scans as MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables any AI agent to query Solana wallets read-only ā recent swaps, holdings with USD value, PnL, trading style, and live scored swaps across top wallets ā without ever asking for private keys. Also pushes notable moves to Telegram.2MIT