Skip to main content
Glama
Solana MCP Server

Solana MCP Server

by akc2267

Solana MCP 服务器

用于与 Solana 区块链交互的模型-上下文-协议 (Model-Context-Protocol) 服务器。该服务器为常见的 Solana 操作提供简单的 RPC 端点。

特征

  • 获取当前插槽号

  • 查看账户余额

  • 获取详细账户信息

  • 显示密钥对信息

  • 在账户之间转移 SOL

Related MCP server: Model Context Protocol Server for Solana Client

快速入门

克隆并安装依赖项:

git clone https://github.com/yourusername/solana-mcp-server.git
cd solana-mcp-server
npm install

构建工具

npm run build

将该工具添加到您的 claude_desktop_config.json

"solana-rpc": {
            "command": "node",
            "args": [
                "/PATH/TO/solana-mcp-server/build/index.js"
            ]
        }

用法

问克劳德:

  • solana 上最新的插槽是什么?

  • 62QXuWZ3WT6ws1ZFxJobVDVXn6bEsiYpLo5yG612U6u3 的余额是多少?

  • 这是我的测试密钥 [用密钥替换]。让我们将 0.001 SOL 转移到 [用公共地址替换]

安全说明

仅使用包含少量资金的测试钱包来使用它。

RPC 端点

该服务器通过https://api.mainnet-beta.solana.com连接到 Solana 的主网。要使用其他网络(例如 devnet 或 testnet),请修改src/index.ts中的SOLANA_RPC常量。

Available Tools

5 tools
getAccountInfoB

Get detailed account information for a Solana address

Inputs: address (required), encoding.

getBalanceC

Get balance for a Solana address

Inputs: address (required).

getKeypairInfoC

Get information about a keypair from its secret key

Inputs: secretKey (required).

getSlotC

Get the current slot

Inputs: no named parameters.

transferC

Transfer SOL from your keypair to another address

Inputs: amount (required), secretKey (required), toAddress (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: getAccountInfo retrieves detailed account data, getBalance focuses on balance only, getKeypairInfo handles keypair details, getSlot provides blockchain slot information, and transfer performs SOL transactions. There is no overlap or ambiguity in their functions.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using camelCase (e.g., getAccountInfo, getBalance, transfer). The naming is uniform and predictable across all five tools.

    Tool Count4/5

    With 5 tools, the count is well-scoped for a Solana server, covering essential operations like querying accounts, balances, keypairs, slots, and transfers. It feels slightly thin but reasonable for basic blockchain interactions.

    Completeness3/5

    The tools cover key read operations (getAccountInfo, getBalance, getSlot) and a basic write operation (transfer), but there are notable gaps such as missing transaction history, program interactions, or token operations that are common in Solana workflows. Agents can work around this for simple tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.
      6
      MIT