This is a Model Context Protocol (MCP) server that provides tools for interacting with Ankr's Advanced APIs. It enables AI models to fetch blockchain data and perform various operations.
getAccountBalance
: Fetch token balances across multiple blockchains for any address or ENS name
address
: Ethereum address (0x...) or ENS name (*.eth)blockchains
(optional): Array of specific blockchains to query. If not provided, checks all supported chainsgetTokenPrice
: Get current price for any token (native or ERC20) on supported blockchains
blockchain
: The blockchain network (eth, bsc, polygon, etc.)contractAddress
(optional): The token's contract address. Leave empty for native coinenv ANKR_API_KEY=<YOUR_KEY> npx -y @asphere/aapi-mcp-server
{
"mcpServers": {
"aapi": {
"command": "npx",
"args": ["-y", "@asphere/aapi-mcp-server"],
"env": {
"ANKR_API_KEY": "<YOUR_KEY>"
}
}
}
}
Install dependencies
pnpm i
Run local SSE server
export ANKR_API_KEY="YOUR-ANKR-KEY"
pnpm dev:sse
In the remote mode service creates an isolated MCP Server instance for each connection, enabling secure and isolated access over the internet. Each connection requires an apiKey
in the URL path for authentication with Ankr Advanced API.
The managed version is available on https://aapi-mcp-server.asphere.network/
https://aapi-mcp-server.asphere.network/{ANKR-API-KEY}/sse
# Start the remote server
pnpm dev:remote
# Connect using localhost
http://localhost:3001/{apiKey}/sse
When deployed, MCP clients can connect using:
type: sse
url: https://your-remote-url.com/{apiKey}/sse
Seamless access to top MCP servers powering the future of AI integration.