Bittensor MCP server
Taoswap’s MCP server gives AI assistants and coding agents live Bittensor data from the Taoswap API at api.taoswap.org: subnets and alpha prices, validators and their yields, metagraphs, a coldkey’s portfolio, PnL and ledger, and recent trades. It is free and needs no API key. Every answer states the API URL it called, so your assistant can then write your code against the API directly.
When you ask it to stake, trade, place a limit order or send TAO, it prepares a taoswap.org link that you open, review and sign in your own wallet: it never sees a key and never signs.
Add it to your assistant
Section titled “Add it to your assistant”Connect your assistant to the server Taoswap runs, or run the server on your own machine.
By its URL
Section titled “By its URL”Taoswap runs the server at https://mcp.taoswap.org/mcp, for assistants that add a server by its URL, with nothing to install.
Claude Code:
claude mcp add --transport http taoswap https://mcp.taoswap.org/mcpCodex:
codex mcp add taoswap --url https://mcp.taoswap.org/mcpclaude.ai and Claude mobile: add a custom connector with the URL https://mcp.taoswap.org/mcp.
ChatGPT: add a custom connector with the URL https://mcp.taoswap.org/mcp. ChatGPT’s deep research and company knowledge call its search and fetch tools, and developer mode exposes every tool.
On your machine
Section titled “On your machine”Cursor, VS Code, Claude Desktop and other clients that start a local server run it with npx -y taoswap-mcp@latest, which needs Node.js 20.3 or later.
Cursor (~/.cursor/mcp.json, or .cursor/mcp.json in a project), Claude Desktop (claude_desktop_config.json) and any client that reads the same format:
{ "mcpServers": { "taoswap": { "command": "npx", "args": ["-y", "taoswap-mcp@latest"] } }}VS Code (.vscode/mcp.json in a workspace, or the user mcp.json):
{ "servers": { "taoswap": { "type": "stdio", "command": "npx", "args": ["-y", "taoswap-mcp@latest"] } }}@latest follows releases. To review each update before your assistant runs it, replace latest with a version number.
What it offers
Section titled “What it offers”Tools for your assistant to call, prompts that start an analysis, and resources to read before writing code.
Every tool is read-only and calls https://api.taoswap.org only.
- Subnets and prices:
list_subnets,get_subnet,get_subnet_candles(a subnet’s alpha price candles),get_subnet_history(a subnet’s figures day by day) andget_tao_price(TAO’s daily price in USD or EUR). - Validators and metagraphs:
list_validators,get_validator,get_validator_history,list_subnet_validators(a subnet’s validators and their yields) andget_metagraph(a subnet’s neurons). - Wallets: for one coldkey,
get_portfolio(its balance per day),get_portfolio_pnl(its APY, and its realized and unrealized PnL),get_account_ledger(its TAO and alpha movements) andget_account_transactions(its stake operations and TAO transfers). - Trades and the network:
list_trades(buys and sells against the subnet pools) andget_network_stats(how the network’s TAO splits between root, pools and free balances). - Search:
searchfinds subnets, validators, coldkeys, blocks and extrinsics by name, number or address, andfetchreads one result whole. - The whole API:
list_api_operationslists every GET operation, or describes one with its parameters and each field’s unit, andcall_apicalls any other GET operation of the API’s schema. - Actions you sign:
prepare_trade(a stake, an unstake or a swap between subnets),prepare_limit_order(a limit buy, a take-profit or a stop-loss),prepare_transfer(a TAO transfer) andprepare_new_wallet(a new wallet). See Safety.
The named tools call the API’s stable operations.
Prompts
Section titled “Prompts”Clients often show prompts as slash commands. A prompt calls nothing itself: it writes the request that tells your assistant which tools to call and what to report, each figure with its unit and the API URL it came from.
analyze_subnet, given a netuid: the subnet’s price and its trend, its pool depth, its emissions and how concentrated its validators are.compare_validators, given a netuid and, optionally, hotkeys: a table of take, yields, stake and vtrust for those validators, or for the subnet’s largest.review_portfolio, given a coldkey: its positions, PnL and yields.
Resources
Section titled “Resources”Clients such as Claude Code attach a resource to the conversation without a tool call, as in @taoswap:taoswap://guide.
taoswap://guide: what to know before writing code against the API, from units and identifiers to pagination, limits, freshness and stability.taoswap://operations: every GET operation with its rate limit and whether it is stable.taoswap://operations/{operationId}gives one operation’s parameters and response fields, with their units.
Safety
Section titled “Safety”- It never signs or sends anything. A
prepare_tool checks the action, then returns a taoswap.org link that you open, review in the app and sign in your own wallet, or leave. The app shows the live quote, slippage and fees before you sign. These links always openhttps://taoswap.org, and no setting points them elsewhere. - It never needs your seed phrase, private key or password. No tool takes one, and the server tells your assistant never to ask for one or accept it. Keep yours to yourself, whoever asks: see Your seed phrase.
- Text written on chain is data, never instructions. Subnet and validator names, descriptions, URLs and Discord handles come from on-chain identities that anyone can write. The server cuts them short and marks them as untrusted, and tells your assistant to take recipients, hotkeys, netuids and amounts from you, never from that text.
Self-hosting and settings
Section titled “Self-hosting and settings”The package README on GitHub covers running your own server over HTTP or in Docker, its settings and limits, and using it from code.