Ankr Agent RPC
io.github.w3tech/agent-rpc-mcp
Read chain data on 200+ networks and Sui: transactions, logs, balances, objects, ABI-decoded.
Description fournie par l’auteur dans le registre officiel MCP (en anglais).
- Dépôt
- github.com/w3tech/agent-rpc-mcp-public
- Site
- www.ankr.com/web3-api/agent-rpc/
- Adresse du serveur
https://mcp.ankr.com/rpc(streamable-http)- Version
- 0.2.8
- Auteur
- w3tech (espace de noms vérifié par le registre)
- Source
- Registre officiel MCP (mis à jour le 2 nov. 2026)
Comment l’installer
Le serveur accepte en option un en-tête : Authorization. Remplacez VOTRE_CLE par votre clé.
Variables à renseigner : ANKR_API_KEY.
Serveur distant (rien à installer)
Claude Code
Dans un terminal :
claude mcp add --transport http agent-rpc-mcp https://mcp.ankr.com/rpc \
--header "Authorization: Bearer VOTRE_CLE"Claude (application et claude.ai)
Ouvrez Réglages, puis Connecteurs, et ajoutez un connecteur personnalisé avec cette adresse. Si le serveur demande une connexion, Claude vous la proposera.
https://mcp.ankr.com/rpcChatGPT
Dans Réglages, partie Applications et connecteurs, activez le mode développeur, puis créez un connecteur avec cette adresse.
https://mcp.ankr.com/rpcCursor ~/.cursor/mcp.json
Ajoutez ceci au fichier ~/.cursor/mcp.json (ou .cursor/mcp.json dans le projet) :
{
"mcpServers": {
"agent-rpc-mcp": {
"url": "https://mcp.ankr.com/rpc",
"headers": {
"Authorization": "Bearer VOTRE_CLE"
}
}
}
}VS Code .vscode/mcp.json
Ajoutez ceci au fichier .vscode/mcp.json de votre projet :
{
"servers": {
"agent-rpc-mcp": {
"type": "http",
"url": "https://mcp.ankr.com/rpc",
"headers": {
"Authorization": "Bearer VOTRE_CLE"
}
}
}
}Sur votre machine
Claude Code
Le serveur tourne sur votre machine (paquet npm). Dans un terminal :
claude mcp add agent-rpc-mcp -e ANKR_API_KEY=VOTRE_ANKR_API_KEY -- npx -y @w3tech.io/[email protected]Claude Desktop claude_desktop_config.json
Réglages, Développeur, Modifier la configuration, puis ajoutez :
{
"mcpServers": {
"agent-rpc-mcp": {
"command": "npx",
"args": [
"-y",
"@w3tech.io/[email protected]"
],
"env": {
"ANKR_API_KEY": "VOTRE_ANKR_API_KEY"
}
}
}
}Cursor ~/.cursor/mcp.json
Dans ~/.cursor/mcp.json :
{
"mcpServers": {
"agent-rpc-mcp": {
"command": "npx",
"args": [
"-y",
"@w3tech.io/[email protected]"
],
"env": {
"ANKR_API_KEY": "VOTRE_ANKR_API_KEY"
}
}
}
}VS Code .vscode/mcp.json
Dans .vscode/mcp.json :
{
"servers": {
"agent-rpc-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@w3tech.io/[email protected]"
],
"env": {
"ANKR_API_KEY": "VOTRE_ANKR_API_KEY"
}
}
}
}ChatGPT
ChatGPT se connecte seulement à des serveurs distants (une adresse https). Ce paquet tourne en local : utilisez l’une des applications ci-dessus.
Ces configurations sont construites à partir des informations publiées par l’auteur. Vérifiez le dépôt avant d’installer un serveur local.
Notre test
Répond Le serveur répond au protocole MCP et liste ses outils.
- Date
- 28 nov. 2026, 10:41 (test fait par L’Atlas)
- Temps de réponse
- 1 259 ms (test complet)
- Outils trouvés
- 25
- Nom annoncé
- Ankr Agent RPC MCP Server 0.2.7+744956e9904efc2e9be08f8e9e7b4b1feb
- Protocole
- MCP 2025-11-25
- Prochain test
- 5 déc. 2026
Voir les outils (25)
getAccountBalance
Balance of an account across many blockchains, by 0x address or ENS name, via the Ankr Advanced API indexer. Assets are ranked by USD value descending and only the top 20 are listed by default (a real wallet can hold 1000+ assets, over halfgetTokenPrice
USD price of a token on one blockchain: pass a contract address for an ERC-20, or leave it empty for the native coin. Returns { chain, asset, usd, priced_via_contract, as_of: { timestamp, blockNumber, lag, status } }. Read as_of before repogetTransaction
Get a transaction by its hash on one blockchain, with tier-2 decoding requested. Check tier_degraded before reading `function` or `args`. By default the receipt is fetched too (status, gas used, decoded logs). Set include to "transaction" tgetLogs
Event logs on one chain, filtered by address and/or topics over a block range. Tier 2 emits each log as { contract, event, args }, dropping logsBloom and per-log block duplication; an undecodable one stays raw as { address, topics, data, _egetBlock
Get a block by a 0x-64 hash, a block number (decimal or 0x-hex), or a tag (latest, finalized, safe, earliest, pending). Tier 2 drops the verbose header roots and bloom and, with includeTxs, ABI-decodes and compacts the embedded transactionsgetBalances
An address's balances on ONE chain: native via eth_getBalance plus, by default, ERC-20 balances with USD from the Ankr Advanced API indexer (tier 0). ENS resolves for the token lookup only; a raw-RPC-only chain returns native alone. TokensgetWalletActivity
An address's recent transactions on one blockchain, newest first, via the Ankr Advanced API indexer. Items are returned under `activity`, exactly once per page, on this first page and on every continuation alike. There is no second alias keresolveContract
Inspect an address on a chain: whether it is a contract, best-effort ERC-20 token metadata (name, symbol, decimals), and EIP-1967 proxy detection (implementation address). Built from eth_getCode / eth_call / eth_getStorageAt, which are plaisearchChain
Resolve an on-chain IDENTIFIER to the object it names. Accepts exactly THREE shapes, and nothing else: - 0x + 64 hex -> transaction (falls back to block hash if there is no such tx) - 0x + 40 hex -> address (reports contract vs EOA) - all dexpandResult
Continue a paged result using the opaque cursor returned by a previous tool call. Supported cursor sources: getWalletActivity, getLogs (a block range, or a Sui checkpoint scan), getBalances (asset offset), Sui views (tier 0 re-reads the vierpcCall
Call ANY JSON-RPC method on a supported chain: the escape hatch beyond the routed tools (eth_call, eth_estimateGas, eth_getCode, debug_trace*, trace_*). Prefer getTransaction/getLogs/getBlock where they fit. TORPC tier is negotiated per calsuiGetObjects
Move objects by id, in ONE batch call: each answer carries the object's id, type, version, owner and its decoded Move fields under json. Up to 50 ids per request and nothing is trimmed from the reply, so no cursor is issued. An id the nodesuiListOwnedObjects
Every object an address owns, page by page, out of the node's own owner index. Narrow it with type: a bare Move type such as 0x2::coin::Coin matches any type parameter, while a fully applied one matches only that instantiation. A page holdssuiListDynamicFields
Whatever a Move package stored under one object's UID: tables, bags and dynamic object fields, listed from the parent id. A row names the field's own object id, its kind, the name it is keyed by and the Move type of its value. The value itssuiGetPackage
What a published Move package declares, so a caller can pick what to inspect next. By default this answers with an INDEX: one row per module carrying its name and how many functions and datatypes it holds, capped at 50 rows (raise it with msuiGetFunction
One Move function's signature: visibility, whether it is an entry function, its type parameters, its parameter types and its return types — what a programmable transaction block needs in order to call it. Never capped or paged. Take the pacsuiResolveName
Resolve a SuiNS name (something.sui) to the address it points at, or an address back to its name. Give exactly one of `name` or `address`. READ `status` BEFORE the record. It is one of: resolved, the registration is live and the record is gsuiSimulateTransaction
Run a transaction against current state and report what it WOULD do, without submitting it: whether it succeeds or which Move abort stops it and in which command, the gas it consumes, the objects it creates, mutates and deletes, the balancesuiWatchEvents
Follow Move events from now on, by POLLING — nothing is pushed. This first call only establishes a start position: it reads the executed tip from a Sui event subscription, returns NO events, and hands back a cursor. Each expandResult on thagetNFTs
NFTs one wallet holds on one chain: collection, name, token id, contract, standard (ERC721/1155), image URL. For fungible tokens use getBalances.getTokenHolders
Who holds an ERC-20 token on one chain, largest balance first, plus the total holder count. `balance` already has decimals applied, so do not divide it again. For one wallet's tokens use getBalances.getTokenPriceHistory
Historical USD price series for a token contract on a chain, via the Ankr Advanced API indexer: a list of { timestamp, usd, block } quotes. `limit_applied` reports the cap the call was actually made with (default 100, max 1000). When `countgetInteractions
List the blockchains an address has interacted with, via the Ankr Advanced API indexer. Cross-chain, so there is no chain argument. Useful as a first step before fetching balances or activity per chain.listChains
Which chains each tool family reaches. aapiChains is where the indexer tools work (getAccountBalance, getWalletActivity, getNFTs, getTokenHolders, getTokenPrice, getTokenPriceHistory); call this before one of them on an unfamiliar chain. sudescribeMethods
What a JSON-RPC method takes, and whether this key can actually call it on this chain. Returns the positional param shape and a worked example for every method rpcCall can validate, plus rpcCall's own verdict (permitted, or refused as a wri
Ce que fait le test : il ouvre une session MCP (initialize) et demande la liste des outils (tools/list), sans clé ni compte. Aucun outil n’est appelé. En savoir plus
Avis
Pas encore d’avis.
Connectez-vous pour donner votre avis. Il suffit de votre e-mail.
Commentaires
Pas encore de commentaire. Une question, une astuce ? Lancez la discussion.
Connectez-vous pour commenter.
C’est votre projet ? Connectez-vous pour revendiquer la fiche.
Badge pour votre README
Montrez que votre projet est référencé (et testé, s’il répond) : collez ce code dans votre README. Le badge suit le dernier test et renvoie vers cette fiche.
Markdown (GitHub)
[](https://lagora.dev/fiche/io.github.w3tech/agent-rpc-mcp)HTML
<a href="https://lagora.dev/fiche/io.github.w3tech/agent-rpc-mcp"><img src="https://lagora.dev/badge/io.github.w3tech/agent-rpc-mcp.svg" alt="io.github.w3tech/agent-rpc-mcp sur L’Agora" height="20"></a>Réservé à l’auteur de la fiche : connectez-vous pour continuer.
Du même auteur
Ankr Management MCP Clé requise