MCP Helius
MCP Helius
此存储库包含一个模型上下文协议 (MCP) 服务器,该服务器允许 Claude 通过 Helius API 访问 Solana 区块链数据。该服务器使 Claude 能够执行诸如检查钱包余额、获取区块链信息以及与 Solana 区块链上的代币和 NFT 交互等操作。
概述
MCP 服务器向 Claude 公开了以下工具:
区块链基本操作
helius_get_balance:获取 Solana 钱包地址的余额helius_get_block_height:获取 Solana 区块链的当前区块高度helius_get_slot:获取 Solana 区块链的当前槽helius_get_latest_blockhash:从 Solana 区块链获取最新的区块哈希helius_get_transaction:通过签名获取交易helius_get_account_info:获取 Solana 地址的帐户信息helius_get_signatures_for_address:获取 Solana 地址的交易签名helius_get_multiple_accounts:获取有关多个 Solana 帐户的信息helius_get_program_accounts:获取程序拥有的所有帐户
代币操作
helius_get_token_accounts_by_owner:获取 Solana 地址拥有的代币账户helius_get_token_supply:获取代币供应量helius_get_token_account_balance:获取代币账户的余额helius_get_token_accounts:按铸币厂或所有者获取代币账户
NFT 和数字资产
helius_get_asset:通过 ID 获取数字资产的详细信息helius_get_rwa_asset:通过 ID 获取现实世界资产的详细信息helius_get_asset_batch:通过 ID 获取多个资产的详细信息helius_get_asset_proof:获取数字资产证明helius_get_assets_by_group:按组键和值获取资产helius_get_assets_by_owner:获取特定地址拥有的资产helius_get_assets_by_creator:获取由特定地址创建的资产helius_get_assets_by_authority:按授权地址获取资产helius_search_assets:使用各种过滤器(ownerAddress、creatorAddress、压缩等)搜索资产helius_get_signatures_for_asset:获取与资产相关的签名helius_get_nft_editions:获取主版本的 NFT 版本
区块链系统信息
helius_get_minimum_balance_for_rent_exemption:获取免租所需的最低余额helius_get_inflation_reward:获取地址列表的通胀奖励helius_get_epoch_info:获取有关当前纪元的信息helius_get_epoch_schedule:获取纪元时间表helius_get_leader_schedule:获取某个时期的领导者计划helius_get_recent_performance_samples:获取最近的性能样本helius_get_version:获取 Solana 节点的版本
交易和费用方法
helius_get_priority_fee_estimate:获取交易的优先费用估算helius_poll_transaction_confirmation:轮询交易确认状态helius_send_jito_bundle:向 Jito 发送一组交易helius_get_bundle_statuses:获取 Jito 捆绑包的状态helius_get_fee_for_message:获取序列化消息的费用helius_execute_jupiter_swap:使用 Jupiter 执行代币交换
Related MCP server: AMOCA Solana MCP Server
先决条件
Node.js(v16 或更高版本)
Helius API 密钥(从https://dev.helius.xyz/获取)
Claude桌面应用程序
安装
克隆此存储库:
git clone https://github.com/dcSpark/mcp-server-helius.git cd mcp-server-helius安装依赖项:
npm ci构建项目:
npm run build
配置
配置 Claude 桌面
要配置 Claude Desktop 以使用此 MCP 服务器:
打开 Claude 桌面
导航到 Claude Desktop 配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
添加 MCP 服务器配置:
{
"mcpServers": {
"mcp-server-helius": {
"command": "npx",
"args": [
"@dcspark/mcp-server-helius"
],
"env": {
"HELIUS_API_KEY": "your-helius-api-key"
}
}
}
}本地运行
HELIUS_API_KEY=your-helius-api-key node build/index.js您也可以直接使用 npx 运行:
HELIUS_API_KEY=your-helius-api-key npx @dcspark/mcp-server-helius用法
配置完成后,重新启动 Claude Desktop。Claude 现在就可以访问 Solana 区块链工具了。您可以让 Claude 执行以下操作:
检查钱包余额:
What's the balance of the Solana wallet address 5YNmS1R9nNSCDzb5a7mMJ1dwK9uHeAAF4CmPEwKgVWr8?获取当前区块高度:
What's the current block height on Solana?获取有关 NFT 的信息:
What NFTs does the wallet address 5YNmS1R9nNSCDzb5a7mMJ1dwK9uHeAAF4CmPEwKgVWr8 own?
Claude 将使用 MCP 服务器通过 Helius 直接从 Solana 区块链获取此信息。
发展
添加新工具
要向 MCP 服务器添加新工具:
在
src/tools.ts中定义工具在适当的处理程序文件中创建处理程序函数
将处理程序添加到
src/tools.ts中的handlers对象
建筑
npm run build执照
麻省理工学院
Available Tools
38 toolshelius_execute_jupiter_swapB
Execute a token swap using Jupiter
Inputs: inputMint (required), outputMint (required), amount (required), signer (required), +1 more.
helius_get_account_infoC
Get account information for a Solana address
Inputs: publicKey (required), commitment.
helius_get_assetC
Get details of a digital asset by its ID
Inputs: id (required).
helius_get_asset_batchB
Get details of multiple assets by their IDs
Inputs: ids (required).
helius_get_asset_proofC
Get proof for a digital asset
Inputs: id (required).
helius_get_assets_by_authorityC
Get assets by authority address
Inputs: authority (required), page, limit.
helius_get_assets_by_creatorC
Get assets created by a specific address
Inputs: creator (required), page, limit.
helius_get_assets_by_groupC
Get assets by group key and value
Inputs: groupKey (required), groupValue (required), page, limit.
helius_get_assets_by_ownerC
Get assets owned by a specific address
Inputs: owner (required), page, limit.
helius_get_balanceC
Get the balance of a Solana address
Inputs: publicKey (required), commitment.
helius_get_block_heightC
Get the block height of the Solana blockchain
Inputs: commitment.
helius_get_bundle_statusesC
Get statuses of Jito bundles
Inputs: bundleIds (required), jitoApiUrl (required).
helius_get_epoch_infoC
Get information about the current epoch
Inputs: commitment.
helius_get_epoch_scheduleD
Get the epoch schedule
Inputs: commitment.
helius_get_fee_for_messageC
Get the fee for a serialized message
Inputs: message (required), commitment.
helius_get_inflation_rewardC
Get inflation rewards for a list of addresses
Inputs: addresses (required), epoch, commitment.
helius_get_latest_blockhashB
Get the latest blockhash from the Solana blockchain
Inputs: commitment.
helius_get_leader_scheduleC
Get the leader schedule for an epoch
Inputs: slot, commitment.
helius_get_minimum_balance_for_rent_exemptionC
Get the minimum balance required for rent exemption
Inputs: dataSize (required), commitment.
helius_get_multiple_accountsC
Get information about multiple Solana accounts
Inputs: publicKeys (required), commitment.
helius_get_nft_editionsC
Get NFT editions for a master edition
Inputs: masterEditionId (required), page, limit.
helius_get_priority_fee_estimateC
Get priority fee estimate for a transaction
Inputs: accountKeys, options.
helius_get_program_accountsC
Get all accounts owned by a program
Inputs: programId (required), commitment.
helius_get_recent_performance_samplesC
Get recent performance samples
Inputs: limit.
helius_get_rwa_assetC
Get details of a real-world asset by its ID
Inputs: id (required).
helius_get_signatures_for_addressC
Get transaction signatures for a Solana address
Inputs: address (required), limit, before, until, +1 more.
helius_get_signatures_for_assetC
Get signatures associated with an asset
Inputs: id (required), page, limit.
helius_get_slotA
Get the current slot of the Solana blockchain
Inputs: commitment.
helius_get_token_account_balanceC
Get the balance of a token account
Inputs: tokenAddress (required), commitment.
helius_get_token_accountsC
Get token accounts by mint or owner
Inputs: mint, owner, page, limit.
helius_get_token_accounts_by_ownerC
Get token accounts owned by a Solana address
Inputs: publicKey (required), programId (required).
helius_get_token_largest_accountsC
Get the largest token accounts for a specific token mint
Inputs: tokenAddress (required), commitment.
helius_get_token_supplyC
Get the supply of a token
Inputs: tokenAddress (required).
helius_get_transactionC
Get a transaction by its signature
Inputs: signature (required), commitment.
helius_get_versionA
Get the version of the Solana node
Inputs: no named parameters.
helius_poll_transaction_confirmationC
Poll for transaction confirmation status
Inputs: signature (required), timeout, interval.
helius_search_assetsC
Search for assets using various filters
Inputs: page, limit, cursor, before, +11 more.
helius_send_jito_bundleC
Send a bundle of transactions to Jito
Inputs: serializedTransactions (required), jitoApiUrl (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Most tools target distinct resources (assets, tokens, accounts, transactions, etc.) with clear parameters. However, pairs like 'get_token_accounts' and 'get_token_accounts_by_owner' could cause mild confusion as they overlap in functionality, though descriptions likely clarify.
All tools follow a consistent 'helius_verb_noun' pattern in snake_case. Verbs are 'get' for queries, with 'execute', 'send', and 'poll' for actions, maintaining uniformity without mixing conventions.
38 tools is significantly above the typical 3–15 range for a well-scoped server. While the domain of Solana blockchain is broad, this count feels heavy and could overwhelm an agent, suggesting possible over-fragmentation.
The server covers a wide range of read operations (assets, tokens, accounts, transactions) and some actions (swap, bundle send). However, a notable gap is the lack of a tool for sending a single regular transaction, which is a basic operation for the domain.
Maintenance
Related MCP Connectors
Helius MCP — deeper Solana wallet/asset data than solscan (helius.dev)
Solana wallet & token checks for agents, pay per call in USDC via x402 (Solana or Base).
Solana MCP for wallets, trades, markets, PnL, transfers, onchain data, signable swaps and API tools.
Solana on-chain intelligence — token scans, wallet profiling, bundle detection, 19 MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.28 npm167Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.7MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain, allowing it to execute transactions, query accounts, manage wallets, get price predictions, trade tokens, and access various blockchain data sources.4-