bittensor-mcp

v0.1.2
bittensor-mcp Checked 2 days ago Published 7 days ago

Read-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.

ParameterTypeDescription
categoryOnly this category (case-insensitive), e.g. Staking, Subnets, Delegation

describe_read

Full documentation of one named read: description, parameter docs, units and docs URL.

ParameterTypeDescription
name *stringRead 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.

ParameterTypeDescription
name *stringRead name from list_reads, e.g. subnet_hyperparameters
blockBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.
limitintegerMax items kept from a list/dict result
paramsParameters 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…

ParameterTypeDescription
blockBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.
flow_windowAlso 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…
limitinteger
sort_bystring

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.

ParameterTypeDescription
netuid *integer
blockBlock 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.

ParameterTypeDescription
netuid *integer
blockBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.
coldkeyOnly neurons owned by this coldkey (SS58)
include_axonsbooleanAdd each axon's ip:port
limitinteger
miners_onlybooleanExclude neurons holding a validator permit
offsetinteger
sort_bystring
validators_onlyboolean

neuron

One neuron on a subnet by uid or hotkey, with its rank by incentive and by stake among all neurons.

ParameterTypeDescription
netuid *integer
blockBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.
hotkeyHotkey 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.

ParameterTypeDescription
coldkey *stringColdkey SS58 address
blockBlock 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.

ParameterTypeDescription
hotkey *stringHotkey SS58 address
blockBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.