home / mcp / ankr api mcp server
Fetches on-chain data via the Ankr API and exposes MCP endpoints for AI models to retrieve token balances and related data.
Configuration
View docs{
"mcpServers": {
"akki91-ankr-mcp": {
"command": "npx",
"args": [
"@akki91/ankr-mcp"
],
"env": {
"ANKR_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}The Ankr MCP Server lets you access on-chain data through the Ankr API by exposing MCP endpoints that your AI tools can call. It focuses on token data, enabling you to retrieve token balances for any wallet on a chosen network, which is useful for building AI-assisted insights, portfolio checks, or automated monitoring.
You can use this MCP server as a tool provider in compatible MCP-enabled clients. Start the server with the provided command, supply your Ankr API token, and then query the server for token balance information. The server exposes a token operation that returns asset data for a wallet on a specified network.
Typical usage flow:
Prerequisites you need before installing: Node.js and npm installed on your machine.
Install the MCP server package from the npm registry.
npm install @akki91/ankr-mcpTo run the server, you will execute it via the MCP launcher, which uses npx to start the package.
Set your Ankr API token in the environment before starting the server.
export ANKR_API_TOKEN=your_api_token_hereThis MCP server provides a token balance operation you can invoke from your MCP-capable AI apps. The operation is designed to fetch all token balances for a given wallet address on a specified network.
Sample client prompt to request token balances:
Give me the token balances for wallet address X on network Y.Follow these steps to make the Ankr MCP server available in Claude Desktop.
Step 1: Access Settings in Claude Desktop. Open Claude Desktop, then go to Settings.
Step 2: Update Developer Settings. Open Developer Settings and edit the configuration file that contains your MCP server definitions. If MCP servers are already listed, append your Ankr MCP configuration to the existing list. Otherwise, paste the Ankr MCP configuration.
Step 3: Restart Claude Desktop. Close Developer Settings and restart Claude Desktop to apply changes.
Step 4: Verify Integration. After restart, click the Tools Icon under the chat prompt and confirm that the Ankr MCP server tools appear and are accessible.
Give me the token balances for wallet adddress X for network Y.Fetches all token balances for a given wallet address on a specified blockchain network, returning asset data for that wallet on the chain.