Skip to content
BlockhashBlockhashBlock 123,784,983 Sign in Join the waitlist Dashboard

MCP server

Robinhood Chain for an AI agent: Blockhash’s RPC, Data API and Swap API as tools, and your organization’s apps.

The server

Blockhash’s MCP server lets an AI agent read Robinhood Chain through Blockhash, and read and manage your organization’s apps.

Its address is https://mcp.blockhash.xyz/mcp, over Streamable HTTP.

The chain’s tools are calls of the RPC, the Data API or the Swap API.

Each such call is charged in compute units as the same call is, and held to your plan’s limits.

The Compute units page has every price.

The account’s tools read and manage your organization’s apps, and are not charged.

search_docs searches these docs, and is not charged.

It signs nothing and sends nothing.

build_swap answers unsigned transactions, for your own wallet to sign and send.

Sign in

Add the server to your client by its address, https://mcp.blockhash.xyz/mcp, with no key.

The client opens Blockhash’s sign-in in your browser the first time it connects.

Sign in, then choose the organization, the app whose limits and usage the connection uses, and its access.

  • Read gives every tool of the chain, and reads your organization’s apps, usage and keys.
  • Read and manage also makes apps, and rotates keys and revokes old ones.

An Admin or a Developer may choose Read and manage.

A Viewer connects with Read and no app: the connection reads your organization’s apps, usage and keys, and none of the chain.

Each call is charged as the same call made with the app’s key, and counted under that app.

An app’s websites and IP addresses do not hold for a connection, which uses no key.

An app’s contracts and caps do.

The client stays connected while it is used at least once in 30 days.

A new password, a sign-in removed, a new email address or signing out everywhere disconnects every agent you connected.

Connected agents in the dashboard lists each connection of your organization. Revoke one there, and it stops at once.

Claude Code: run the command, then type /mcp in Claude Code to sign in.

Cursor and VS Code sign in when they first connect.

Blockhash is invite only for now.

Join the waitlist, and connect once your account is approved.

claude mcp add --transport http blockhash https://mcp.blockhash.xyz/mcp

Claude and ChatGPT

Claude’s apps and ChatGPT add the server as a custom connector, by its address, and sign in.

  • Claude (claude.ai and the desktop app): in Connectors, add a custom connector named Blockhash, with the address https://mcp.blockhash.xyz/mcp. Then press Connect.
  • On a Team or Enterprise plan, an Owner adds it for the organization, and each member signs in.
  • ChatGPT, on the web: in Plugins, choose the plus button, then Add custom MCP server, with the address https://mcp.blockhash.xyz/mcp and OAuth.
  • Which plans may add a custom server is each app’s to say.

Each tool is marked as one that reads, or one that changes your apps; revoking and rotating a key are marked destructive.

With a key

A script, or a client that signs in to nothing, sends an app’s key instead.

Send your app’s key as the header Authorization: Bearer <your key>.

A client that sends no header of its own takes the key at the end of the address: https://mcp.blockhash.xyz/mcp/<your key>.

That address is your key. Anyone who holds it spends your app’s units.

A key in the address can be written to the logs a request passes through, where a header is not.

Use the header wherever your client can send one.

Blockhash is invite only for now. Join the waitlist, and make an app in the dashboard once your account is approved.

An app that lists websites or IP addresses cannot be used through this server.

The server names no website and calls from Blockhash’s own address, so those lists refuse every call.

Make an app with neither list for your agent.

An app’s list of contracts still holds: a call that names another contract is refused.

A key reaches the chain’s tools. The account’s tools are a person’s, and need a connection made by signing in.

A client with a key

Set your key in the environment, then add the server.

Claude Code: run the command. Add --scope user to have it in every project.

Cursor: put the server in ~/.cursor/mcp.json, or in .cursor/mcp.json for one project.

VS Code: put the server in .mcp.json at the root of the workspace.

Cursor and VS Code read the key from the environment when they start, so their files hold no key.

BLOCKHASH_KEY="<your key>"

claude mcp add --transport http blockhash https://mcp.blockhash.xyz/mcp \
  --header "Authorization: Bearer $BLOCKHASH_KEY"

Tools

The RPC’s tools read alone: rpc_read takes no call that sends a transaction, opens a filter or traces.

build_swap needs a floor you name: slippageBps, how far under the quote it may deliver, or minAmountOut, the least you accept. Neither is chosen for you.

It answers the transactions in their order: an approval where one is needed, then the swap.

Sign each from the taker’s wallet, and send each after the one before it has landed.

A token is named by its address. In a swap, ETH names ether.

Amounts are whole numbers of a token’s smallest unit.

ToolWhat it givesCounted as
rpc_readOne read call of the RPC: a balance, code, storage, a nonce, a call, a gas estimate, a simulation, logs, a block, a transaction or a receipt.Its method’s units
get_balancesAn address’s token balances, now or at a block.20 units
get_tokenA token’s name, symbol and decimals.10 units
get_transfersThe transfers to or from an address, a page at a time.120 units
get_address_nftsThe NFTs an address holds, with their names, images and ranks.480 units
get_collectionA collection’s name, standard, supply and holders.160 units
get_collection_nftsEvery NFT of a collection, a page at a time.600 units
get_nftOne NFT: its metadata and its rarity.80 units
get_block_receiptsEvery receipt of one block.20 units
get_vrf_requestOne request for random words from Blockhash VRF, with its proof and its words.20 units
get_swap_quoteA price for any two tokens, its route and its fees.800 units
build_swapA swap’s unsigned transactions for your own wallet to sign, at the floor you name, with a simulation.800 units
search_docsSections of these docs that match a question.Nothing

The account’s tools

A connection made by signing in reads and manages the organization it chose, as its person does on the dashboard, with their role there.

Each is a route of the dashboard. None is charged.

create_app and rotate_key hand back a new key, shown once.

They and revoke_key work within 15 minutes of the sign-in.

After that, press Allow key changes on Connected agents for 15 minutes more.

Until then each is refused with confirm-on-blockhash.

revoke_key stops a key rotated out, now.

An app’s current key is refused with current-key: it is the app, which you delete on the dashboard.

No tool shows a key again, changes billing or a plan, invites anybody, or deletes an organization.

ToolWhat it doesAccess
list_appsThe organization’s apps: each one’s name, its key’s last four characters, its rules and its week of use.Read
get_usageCompute units and calls over the last hour, day, week or month, by app and product.Read
list_keysEvery key the organization made, with its last four characters, never the key.Read
create_appA new app and its key, which is shown once.Read and manage
rotate_keyA new key for an app, shown once; the one it had stops now, in an hour or in a day.Read and manage
revoke_keyA key rotated out, stopped now. An app’s current key is refused: it is the app.Read and manage

Answers and pages

Each answer is the API’s own.

A list comes a page at a time, 25 by default and up to 100. Its cursor asks for the next page.

Transfers, a block’s receipts and an NFT come as a summary by default. detail: "full" answers each whole.

A log read spans up to 1,000 blocks, named by number, or one block named by its hash.

An answer over 80,000 characters is refused with too-large, never cut. The call was still made, and is charged.

Limits

The server takes 20 tool calls a second from a connection, and from a key, with bursts of 60.

A key, or a connection made by signing in, keeps up to 32 sessions at once. Past that, its least recently used session is closed.

A session closes after 60 minutes with no request, and the client opens another.

The connection it belongs to stays, while it is used at least once in 30 days.

Opening a session checks your key or your connection. The check costs nothing and is not counted in your use.

Each request carries one message. A batch is refused.

Every call is also held to your plan’s speed and month, as on Limits and pricing.

Errors

A refused call answers its code, a sentence, and whether to try again. Where it names retryAfterSeconds, wait that long first.

A refusal of the API keeps the API’s own code, such as invalid-key or month-used. The Errors page has each.

CodeCaseWhat a client does
key-requiredThe call carried no key.Send your app’s key as a header, or at the end of the URL.
sign-in-requiredAn account tool was called with an app’s key.Connect by signing in: the account’s tools are a person’s.
manage-requiredA tool that changes something was called on a Read connection.Connect again and choose Read and manage.
no-appA chain’s tool was called on a Viewer’s connection, which has no app.An Admin or a Developer connects with an app.
current-keyrevoke_key was asked for an app’s current key.Rotate the app’s key first, then revoke the key rotated out.
confirm-on-blockhashA tool that hands back or revokes a key was called more than 15 minutes after the connection was allowed.On Connected agents, press Allow key changes, then call again.
bad-argumentAn argument is missing, unknown, or not what the tool takes.Fix the argument that detail.issues names.
floor-requiredbuild_swap was asked with no floor.Name slippageBps or minAmountOut, or both.
too-largeThe answer is over 80,000 characters.Ask for less: a smaller limit, a shorter range of blocks, or the summary.
rate-limitedOver the server’s pace, or the plan’s speed.Wait retryAfterSeconds, then call again.
rpc-errorThe RPC answered the call with an error, such as a revert.Read detail: it has the node’s code, message and data.
api-unreachableBlockhash’s API could not be reached.Call again in a moment.
api-timeoutBlockhash’s API did not answer in time.Ask for less, then call again.
docs-unavailableThe docs could not be read.Call again in a moment.