bittensor-mcp
v0.1.2Read-only MCP server for the Bittensor chain: subnets, metagraphs, neurons, accounts, windowed net TAO flow and the SDK's ~100 chain reads.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chain_status
Current chain head, finalized block, runtime spec version, block time and chain timestamp.
list_reads
The SDK's catalog of named read-only chain queries (about 100), grouped by category, with their parameters. Use describe_read for one read's full documentation, then read to run it.
| Parameter | Type | Description |
|---|---|---|
category | Only this category (case-insensitive), e.g. Staking, Subnets, Delegation |
describe_read
Full documentation of one named read: description, parameter docs, units and docs URL.
| Parameter | Type | Description |
|---|---|---|
name * | string | Read name from list_reads, e.g. stake_for_coldkey |
read
Run any named read from the SDK catalog (see list_reads / describe_read). Balance amounts are converted (TAO number, or {"alpha", "netuid"}); plain integers are raw chain units (rao = 1e-9, u16 /65535, U64F64 /2**64) as describe_read documents. Large results are cut to the first `limit` items and to the size cap; prefer the curated tools for metagraph-sized data.
| Parameter | Type | Description |
|---|---|---|
name * | string | Read name from list_reads, e.g. subnet_hyperparameters |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. | |
limit | integer | Max items kept from a list/dict result |
params | Parameters as listed for that read, e.g. {"netuid": 19} |
subnets
Every subnet as one table (columns + rows): name, token symbol, alpha spot price (TAO per alpha), registration burn (TAO), neuron count, tempo, the chain's net TAO flow EMA (TAO per day; negative = net outflow), and the pool: pool_tao and pool_alpha are its reserves (the subnet tool's tao_in and alpha_in), alpha_out is the subnet's alpha held outside the pool. sort_by="pool" ranks by pool_tao; root (netuid 0) has no pool, so it comes last. The chain updates that EMA lazily: `tao_flow_ema` in the result gives its last-update block and age, and warns when it is stale (on spec…
| Parameter | Type | Description |
|---|---|---|
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. | |
flow_window | Also measure net TAO flow over this many blocks ending at `block` (7200 ~ 1 day, 50400 ~ 7 days): TAO staked minus unstaked, from the chain's per-subnet counter. Adds window_net_flow_tao and window_po… | |
limit | integer | |
sort_by | string |
subnet
One subnet's state: identity, owner, pool (tao_in TAO, alpha_in/alpha_out), per-block emission, spot and moving price, registration (burn TAO, limits, immunity), weights settings, epoch position, all hyperparameters (raw encodings), and neuron counts. The result's "units" field says which fields are converted and which are raw chain integers.
| Parameter | Type | Description |
|---|---|---|
netuid * | integer | |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. |
metagraph
A subnet's neurons as a table (columns + rows), sorted (descending except uid/registered) and paged. Per neuron: uid, hotkey, coldkey, active, validator_permit, incentive / dividends / consensus (0..1), emission (alpha per epoch), alpha/tao/total stake, registration block, last weight update; optionally axon ip:port.
| Parameter | Type | Description |
|---|---|---|
netuid * | integer | |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. | |
coldkey | Only neurons owned by this coldkey (SS58) | |
include_axons | boolean | Add each axon's ip:port |
limit | integer | |
miners_only | boolean | Exclude neurons holding a validator permit |
offset | integer | |
sort_by | string | |
validators_only | boolean |
neuron
One neuron on a subnet by uid or hotkey, with its rank by incentive and by stake among all neurons.
| Parameter | Type | Description |
|---|---|---|
netuid * | integer | |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. | |
hotkey | Hotkey SS58 (instead of uid) | |
uid |
account
A coldkey's position: free TAO balance, every stake position (hotkey, subnet, alpha), the stake marked to TAO at spot prices, the hotkeys it owns, and its on-chain identity.
| Parameter | Type | Description |
|---|---|---|
coldkey * | string | Coldkey SS58 address |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. |
hotkey
A hotkey's owner coldkey, the subnets it is registered on (with its uid on each), delegate status and take, and identity.
| Parameter | Type | Description |
|---|---|---|
hotkey * | string | Hotkey SS58 address |
block | Block to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head. |