S

Solana服务

@tywenk/mcp-sol
0 Stars 448 次浏览 tywenk 更新于 2026-08-23

一种启用与Solana区块链交互的服务器,提供对40多种Solana RPC方法的访问,包括获取余额、交易详情、区块信息以及发送交易。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "Solana Client": {
      "args": [
        "--directory",
        "/Users/tywen/Developer/mcp-sol",
        "run",
        "--with",
        "mcp",
        "mcp",
        "run",
        "/Users/tywen/Developer/mcp-sol/src/server.py"
      ],
      "command": "/Users/tywen/.local/bin/uv"
    }
  }
}

服务介绍

Solana 客户端的模型上下文协议服务器

smithery 徽章

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 mcp-solana:

npx -y @smithery/cli install @tywenk/mcp-solana --client claude

服务器安装:

git clone git@github.com:tywenk/mcp-sol.git
cd mcp-sol
uv sync
mcp install src/server.py

确保在 /Users/{user}/Library/Application Support/Claude(在 Mac 上)的 Claude 桌面 JSON 配置看起来像这样。请注意,uv 二进制文件和路径都是绝对路径。

{
  "globalShortcut": "Alt+Space",
  "mcpServers": {
    "Solana Client": {
      "command": "/Users/tywen/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/tywen/Developer/mcp-sol",
        "run",
        "--with",
        "mcp",
        "mcp",
        "run",
        "/Users/tywen/Developer/mcp-sol/src/server.py"
      ]
    }
  }
}

工具列表:

get_balance
get_transaction
get_block
get_block_height
get_block_time
get_blocks
get_cluster_nodes
get_epoch_info
get_epoch_schedule
get_genesis_hash
get_identity
get_inflation_governor
get_inflation_rate
get_largest_accounts
get_latest_blockhash
get_minimum_balance_for_rent_exemption
get_program_accounts
get_recent_performance_samples
get_signature_statuses
get_slot
get_slot_leader
get_supply
get_token_account_balance
get_token_largest_accounts
get_transaction_count
get_version
get_vote_accounts
is_connected
get_block_commitment
confirm_transaction
get_account_info
get_fee_for_message
get_first_available_block
get_inflation_reward
get_leader_schedule
get_minimum_ledger_slot
get_multiple_accounts
get_signatures_for_address
get_token_accounts_by_delegate
get_token_accounts_by_owner
get_token_supply
request_airdrop
send_transaction
validator_exit

相关 MCP 服务