
Chia Mcp
io.github.danieljperry由 GitHub 帳號 danieljperry 發布v1.0.1更新於 Oct 24, 2026
MCP server for the Chia blockchain. Read-only full-node access via Coinset hosted nodes, 36 tools.
發布方自己的服務:Chia Health MCP Server
概覽
本機 MCP 伺服器,透過 Coinset 託管節點提供 36 個唯讀工具讓助理查詢 Chia 區塊鏈,無需自建節點。
- 可以做什麼
- 檢視鏈狀態、網路資訊、區塊、區塊紀錄與區塊內花費
- 依 ID、puzzle hash、hint 或父幣查詢 coin,並讀取 puzzle、solution 與 memos
- 讀取記憶池內容與手續費估算
- 執行高階查詢:地址餘額彙總、coin 血緣追溯、區塊摘要與 offer 解析
- 在本機完成 puzzle hash 與 bech32m 地址互轉及 coin ID 計算
- 在明確啟用推送工具後可提交已簽章的 spend bundle
- 適用情境
- 適合讓助理回答 Chia 鏈上資料問題、查詢地址餘額、追溯 coin 來源、彙總區塊內容或檢查 offer,而不必自行執行 Chia 節點。
- 執行需求
- 以本機程序方式透過 npx 執行(需要 Node.js),並需能連線 Coinset 託管端點。選用環境變數:CHIA_NETWORK(mainnet 或 testnet11)、CHIA_FULL_NODE_URL 指向其他節點、CHIA_MCP_ENABLE_PUSH_TX 啟用交易提交。使用 Coinset 無需驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Chia Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
chia-mcp
A Model Context Protocol (MCP) server that exposes 36 tools for querying the Chia blockchain (up to 38 with push_tx and local-node options). Uses Coinset hosted nodes — no local Chia node required.
Quick Start
Claude Desktop
Add to your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Claude Code
Cursor
Add to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally:
VS Code
Add to your User Settings (JSON) or .vscode/mcp.json:
Testnet
Set CHIA_NETWORK to use testnet11:
Environment Variables
Available Tools
Blockchain State
get_blockchain_state— Current chain state: peak height, sync status, difficulty, sub-slot iters, mempool size, network space estimate.get_network_info— Network name and address prefix (xch/txch).get_routes— List all available RPC endpoints on the node (only available on non-Coinset nodes).
Blocks
get_block— Full block by header hash (transactions, proofs, rewards).get_block_record— Block record by header hash (lighter than full block).get_block_record_by_height— Block record metadata at a height (lighter than full block).get_block_records— Block records for a height range[start, end).get_blocks— Full blocks for a height range[start, end).get_block_spends— All coin spends in a block by header hash.get_block_spends_with_conditions— Coin spends with parsed CLVM conditions by header hash.get_additions_and_removals— All coins created/spent in a block.get_unfinished_block_headers— Unfinished block headers (blocks in progress).get_block_count_metrics— Block count metrics (compact/uncompact counts).
Coins
get_coin_record_by_name— Single coin by its ID (sha256 of parent+puzzle_hash+amount).get_coin_records_by_names— Multiple coins by IDs (batch lookup).get_coin_records_by_puzzle_hash— Coins locked to a puzzle hash, with optional spent/height filters.get_coin_records_by_puzzle_hashes— Coins locked to multiple puzzle hashes (batch lookup).get_coin_records_by_hint— Coins tagged with a hint (common in CAT/NFT transactions).get_coin_records_by_hints— Coins tagged with multiple hints (batch lookup).get_coin_records_by_parent_ids— Coins created by specific parent coins (trace lineage).get_puzzle_and_solution— CLVM puzzle and solution for a spent coin at a given height.get_puzzle_and_solution_with_conditions— Puzzle, solution, AND parsed CLVM conditions for a spent coin.get_memos_by_coin_name— Memos/messages associated with a coin.
Mempool
get_all_mempool_tx_ids— List all pending transaction IDs.get_all_mempool_items— All mempool items with full details (can be large).get_mempool_item_by_tx_id— Single mempool item by transaction ID.get_mempool_items_by_coin_name— Mempool items referencing a specific coin.get_fee_estimate— Fee estimates for target inclusion times.
Transactions
push_tx— Submit a signed spend bundle to the mempool.get_aggsig_additional_data— AGG_SIG additional data for signature verification.
Network
get_network_space— Estimate total network space between two blocks.
Composite (higher-level queries, multiple RPCs)
get_address_summary— Complete balance summary for an address or puzzle hash. Pages through ALL unspent coins to produce an accurate total with acompleteflag. This is the correct way to check a balance.decode_offer— Decode a Chia offer string (offer1...) into a structured summary: coin spends, amounts, coin IDs, puzzle sizes, signature status. Uses the official chia-wallet-sdk for correct parsing.trace_coin_lineage— Trace a coin's ancestry back to its origin (coinbase). Follows parent links up tomax_depthhops.summarize_block— Compact summary of all coin movements in a block: counts, totals, largest movements, net flow by puzzle hash. Much more useful than rawget_additions_and_removals(which can be 1+ MB).
Utilities (local computation, no RPC)
address_encode— Convert a puzzle hash to a bech32m Chia address (xch1.../txch1...).address_decode— Decode a bech32m Chia address back to its puzzle hash.coin_id— Compute a coin ID from parent_coin_id + puzzle_hash + amount.
Tool Examples
Quick reference showing input → output shape for the most commonly used tools.
get_blockchain_state
get_coin_record_by_name
get_coin_records_by_puzzle_hash
get_address_summary
trace_coin_lineage
summarize_block
decode_offer
address_encode
address_decode
coin_id
Resources
Network State (live)
chia://network/mainnet— Mainnet connection info and live blockchain state.chia://network/testnet11— Testnet11 connection info and live blockchain state.
Guides (embedded documentation)
chia://guide/coin-model— Chia's coin/UTXO model, spend bundles, token standards, and common LLM mistakes.chia://guide/rpc-quickstart— Common RPC calls with curl examples and Coinset endpoints.chia://guide/recipes— Step-by-step recipes for balance checks, transaction tracing, CAT detection — with failure modes.
How It Works
This server wraps the Chia full node RPC API using Coinset's hosted endpoints:
- Mainnet:
https://api.coinset.org/<method> - Testnet11:
https://testnet11.api.coinset.org/<method>
All RPC calls are simple HTTP POST requests with JSON bodies. No authentication required.
Coinset Hosted Node vs Local Node
Most tools work against any Chia full node (Coinset-hosted or your own). Three tools are Coinset extensions — they do not exist in chia-blockchain's full node RPC API and will return HTTP 404 against a local node or the simulator:
Simulator portability: Code written against Coinset's extended endpoints will not work against the simulator or a local node. The simulator (
chia dev sim) and standardchia-blockchainnodes support the same standard RPC surface. Develop against the simulator using standard RPCs for maximum portability; use Coinset extensions for production querying convenience.
Shared RPCs: get_network_info and get_aggsig_additional_data are shared RPC endpoints available on all Chia services (not full-node-specific). They work on both Coinset and local nodes.
Deliberately omitted RPCs: Three upstream full node RPCs are not exposed as tools: get_constants (static data better served by constants.json), get_recent_signage_point_or_eos (internal consensus detail not useful for agents), and create_block_generator (timelord/farmer internal). All other full node RPCs are exposed.
Prompts
The server provides 9 prompts that encode tool sequencing and failure modes for common Chia tasks:
Known Limitations
get_routesunavailable on Coinset hosted nodes — Returns HTTP 404. This is a Coinset limitation, not a bug in this server. The tool works when connected to a local Chia node.- Large integer precision — All known uint64 fields (
amount,space,timestamp,weight,total_iters,sub_slot_iters,required_iters,fee,cost,mempool_cost,mempool_max_total_cost,mempool_min_fee_per_cost) are string-quoted in responses, and any bare integer ≥16 digits is also quoted, to prevent JavaScript precision loss. Thecoin_idtool also accepts string amounts for values exceedingNumber.MAX_SAFE_INTEGER. - Response truncation — Responses larger than 50 KB are automatically truncated. Use narrower query parameters (smaller height ranges, specific coin IDs instead of bulk lookups) to avoid truncation.
push_txnot retried on 429 — When the RPC returns HTTP 429 (rate limit), all methods exceptpush_txare retried once after a delay.push_txis excluded from retry to prevent accidental re-broadcast of transactions.network_verifiedlifecycle — Thenetwork_verifiedfield in every response envelope starts as"pending"until the first successful RPC probe, then resolves totrue(match) orfalse(mismatch). If the configured node is unreachable, it resolves tofalse(probe failed).- npm audit advisories — Transitive dependencies from the MCP SDK may report npm audit advisories. These are unreachable in stdio-transport configuration (no HTTP server is exposed). They do not affect the security posture of a standard chia-mcp deployment.
Install from Source
For development or contributing:
Then use node /path/to/chia-mcp/dist/index.js in your MCP client config instead of npx -y chia-mcp. For example, in Claude Desktop:
Development
License
Apache-2.0
來源:README.md,提交 54df5ea
工具
0版本歷史
1- v1.0.1最新Oct 14, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
