Skip to main content
Glama
Solana MCP Server

Solana MCP Server

by dynamolabs

🌐 Solana MCP Server

License: MIT TypeScript MCP

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_wallet_balance

Get SOL and token balances for any wallet

get_token_info

Full token details with price history, socials, DEX liquidity

get_recent_trades

Recent swaps/trades from a wallet (buy/sell history)

get_trending_tokens

Currently trending Solana tokens from DexScreener

get_new_pairs

Find newly launched tokens (just listed!)

analyze_token

Full risk analysis — see below

check_bundled_launch

šŸŽÆ Detect sniper/insider bundled buys at launch

get_creator_tokens

šŸ•µļø Find other tokens by same creator (rug history)

get_whale_transactions

šŸ‹ Track large buy/sell transactions

get_swap_quote

šŸ’± 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 install

2. Configure

cp .env.example .env

Edit .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-key

Test 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 of JUP?"

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

Helius

Solana RPC, transactions, token data

Free tier available

DexScreener

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 tools
analyze_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_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

    B3.4/5.0

    Scored across 10 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      2
      MIT