thru-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@thru-mcp-server What's the current network status?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
thru-mcp-server
A Model Context Protocol server for the Thru blockchain.
It gives an MCP client read-only access to Thru's alphanet: account balances, transaction status, program events, name service records and RPC health. All queries go through the official @thru/sdk over Thru's Connect/gRPC RPC — there is no mock data and no local chain state.
Installation
git clone https://github.com/erhnysr/thru-mcp-server.git
cd thru-mcp-server
npm install
npm run buildThe entry point is dist/index.js and speaks MCP over stdio.
Related MCP server: SOLANA-MCP-Server
Configuration
Every setting is optional and read from the environment:
Variable | Default | Purpose |
|
| Thru RPC endpoint |
|
| Name service program address |
|
| Faucet account inspected by |
Claude Desktop
Add to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"thru": {
"command": "node",
"args": ["/absolute/path/to/thru-mcp-server/dist/index.js"],
"env": {
"THRU_RPC_URL": "https://rpc.alphanet.thru.org"
}
}
}
}Restart the app afterwards.
Claude Code
claude mcp add thru -- node /absolute/path/to/thru-mcp-server/dist/index.jsTools
All six tools are read-only and marked with readOnlyHint. Inputs are validated with Zod; numeric chain values are returned as strings so large u64/u128 values survive JSON.
get_account
Look up an account by public key.
Parameter | Type | Default | Description |
| string | — |
|
| boolean |
| Include the raw data blob as hex |
Returns balance, nonce, owner program, dataSize, sequence number, account flags, consensus status and the slot the read was taken at.
get_transaction
Fetch a transaction by signature.
Parameter | Type | Default | Description |
| string | — |
|
| boolean |
| Return only consensus/execution status |
Returns fee payer, invoked program, fee, nonce, start slot, requested compute/state/memory units, read-write and read-only account lists, and the execution result.
resolve_name
Resolve a name service entry to its on-chain account. The address is derived locally (root registrars key off the padded name; subdomains off sha256(parent ‖ label)), then the account is fetched and decoded.
Parameter | Type | Description |
| string |
|
| string? | Optional record key to read from a resolved domain |
Root registrars return the authority and subdomain count; domains return parent, owner, registration time and stored records. Unregistered names return an error that includes the derived address, so the caller can verify the derivation independently.
get_faucet_status
Reports the faucet account's balance and the per-transaction withdraw limit (10,000).
This tool cannot dispense tokens, by design. Thru exposes no HTTP faucet —
rpc.alphanet.thru.orgis a Connect/gRPC endpoint. Withdrawing is an on-chain transaction against the faucet program that must be signed by a funded fee payer. This server holds no keys and never signs anything. To actually withdraw, use the Thru CLI:thru faucet withdraw --account <address> --amount <amount>
get_network_status
RPC health check. Issues the height, node status, chain info and version queries concurrently so the reported values describe a single moment.
Returns node readiness, chain id, finalized/locally-executed/cluster-executed heights, consensus and repair state, and component versions.
query_events
Query events emitted by Thru programs. Three modes, in precedence order:
Parameter | Type | Default | Description |
| string? | — | Fetch one event by id |
| string? | — | Recent transactions touching an account, with their emitted events |
| number |
| Page size (1–100) |
| string? | — | Continuation token from a previous call |
| boolean |
| Include raw payload bytes as hex |
With neither eventId nor account, it pages through the most recent chain-wide events.
Note on
@thru/indexer: that package is a framework for building an indexer backend (Drizzle ORM + Postgres + a replay source), not a client for a hosted indexer API. There is no public indexer endpoint to query, so event history here comes from the RPC's own event and transaction services via@thru/sdk.
Testing
test/live.mjs starts the built server as a real stdio subprocess, connects with the MCP client SDK, and exercises every tool against live alphanet. Nothing is stubbed. The transaction and name-service cases are discovered from the chain at runtime rather than hardcoded, so the suite stays valid as alphanet advances.
npm run build
node test/live.mjsCovers all six tools plus two error paths (malformed address, unregistered name).
Limitations
Read-only. The server never signs or submits transactions and holds no key material.
Name service depth. Only
rootandsubdomain.rootare supported, matching what the name service program itself derives.License asymmetry. This server is MIT, but its dependency
@thru/sdkis published under a proprietary license. Review Thru's terms before redistributing anything that bundles it.
License
MIT — see LICENSE.
Available Tools
6 toolsget_accountGet accountARead-only
Look up a Thru account by public key and return its balance, nonce, owner program, size and flags. Balances are returned as raw integer strings.
Inputs: address (required), includeData.
get_faucet_statusGet faucet statusARead-only
Report the on-chain Thru faucet account: its current balance and the per-transaction withdraw limit. This is read-only — Thru exposes no HTTP faucet, so actually withdrawing requires submitting a signed transaction to the faucet program with a funded fee payer (use the thru CLI: thru faucet withdraw).
Inputs: no named parameters.
get_network_statusGet network statusARead-only
Check the health of the configured Thru RPC endpoint: node readiness, consensus state, chain id, current block heights and component versions.
Inputs: no named parameters.
get_transactionGet transactionARead-only
Fetch a Thru transaction by signature. Returns consensus status, execution result, fee payer, invoked program and resource consumption.
Inputs: signature (required), statusOnly.
query_eventsQuery chain eventsARead-only
Query events emitted by Thru programs. Fetch one event by id, list an account's recent transaction history with its emitted events, or page through the most recent events chain-wide.
Inputs: limit, account, eventId, pageToken, +1 more.
resolve_nameResolve name service entryARead-only
Resolve a Thru name service entry to its on-chain account. Accepts a root registrar name or a subdomain.root pair, derives the program address and decodes the account, returning the owner and any stored records.
Inputs: name (required), record.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource: name resolution, account, transaction, faucet, network, and events. No overlapping purposes; even the two status tools (faucet and network) are clearly separated by domain.
Five tools use the 'get_' prefix, but 'resolve_name' and 'query_events' deviate from that pattern. All follow a verb_noun structure with consistent lowercase styling, so the inconsistency is minor.
Six tools is well-scoped for a blockchain read-only server. Each tool covers a distinct domain area without unnecessary redundancy.
The set covers core read operations: accounts, transactions, names, network health, faucet state, and event queries. It lacks block-level queries and any transaction submission, but those may be intentionally excluded since withdrawal requires the CLI.
Maintenance
Related MCP Connectors
Thru blockchain explorer: blocks, transactions, accounts, and program ABIs on the Thru RISC-V L1
Read public AT Protocol profiles, records, threads, backlinks and lexicons. No API key required.
Hosted MCP server for live Bittensor chain reads and self-custodial on-chain writes.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that connects Claude AI with SOON and other SVM-based blockchains, allowing users to check account balances, fetch recent transactions, and view token holdings on SOON's testnet and mainnet.63ISC
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for interacting with the Solana blockchain. Provides tools to query balances, transactions, tokens, and network stats.45 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol (MCP) server providing 50+ tools for Algorand blockchain development, including account management, asset operations, smart contracts, API integration, swap functionality, and advanced transaction capabilities.41 npmMIT
- AlicenseAqualityDmaintenanceAlgorand ecosystem MCP server that identifies applications, assets, protocols, and resolves .algo names, providing meaning rather than raw chain data.10MIT