Learn how Ankr MCP Server enables blockchain data access with APIs for tokens balances and prices
The Ankr Advanced API MCP Server serves as an essential bridge between complex AI systems and a wide range of blockchain data sources, facilitating seamless interaction through Model Context Protocol (MCP). This server is designed to simplify how AI applications such as Claude Desktop, Continue, Cursor, and others interact with various APIs provided by Ankr. By utilizing the standardized protocol, developers can integrate rich blockchain-based functionalities into their models without delving deeply into individual API details.
The core capability of the Ankr Advanced API MCP Server lies in its ability to abstract complex interactions with various blockchains, making them accessible via a unified and intuitive interface. It supports fetching token balances across multiple networks, including Ethereum, Binance Smart Chain (BSC), Polygon, Arbitrum, Avalanche, Base, Fantom, Gnosis, Linea, Optimism, and more. Additionally, it allows for retrieving the current prices of tokens on supported blockchains.
getAccountBalance
address
: Ethereum address (0x...) or ENS name (*.eth)blockchains
(optional): Array specifying which blockchains to query. If not provided, all supported chains are queried.getTokenPrice
blockchain
: The specific blockchain network.contractAddress
(optional): Contract address for non-native tokens; leave empty for native coin.The Ankr Advanced API MCP Server leverages the Model Context Protocol to establish robust, secure, and efficient communication channels between AI applications and backend services. The protocol is designed to handle complex data requests while maintaining low latency and high throughput. The server is deployed either locally or as a remote instance, ensuring flexibility in deployment scenarios.
apiKey
to authenticate with the Ankr Advanced API during connections.To use this server effectively, follow these detailed steps:
env 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>"
}
}
}
}
This server is fully compatible with popular MCP clients such as Claude Desktop, Continue, and Cursor. Below is a compatibility matrix showcasing its support across various tools:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
The Ankr Advanced API MCP Server boasts excellent performance metrics, with efficient data retrieval and processing capabilities. It ensures compatibility across multiple blockchain networks while maintaining high standards of security and reliability.
{
"mcpServers": {
"aapi": {
"command": "npx",
"args": ["-y", "@asphere/aapi-mcp-server"],
"env": {
"ANKR_API_KEY": "<YOUR_KEY>"
}
}
}
}
For more advanced configuration and security measures, you can run the local server in isolation or enable remote access with enhanced authentication protocols.
export ANKR_API_KEY="YOUR-ANKR-KEY"
pnpm dev:sse
http://localhost:3001/{apiKey}/sse
https://aapi-mcp-server.asphere.network/{ANKR-API-KEY}/sse
When deployed, MCP clients can connect using:
type: sse
url: https://your-remote-url.com/{apiKey}/sse
apiKey
for secure access control.Contributions to the Ankr Advanced API MCP Server are welcome and can significantly enhance its performance, security, and user interface. Contributors should follow standard pull request procedures and ensure code compliance with existing standards.
For further information on Model Context Protocol (MCP) and related tools, visit the official documentation at modelcontextprotocol.io. Additionally, developers can explore Ankr's extensive API resources to integrate diverse blockchain functionalities into their applications.
By adopting this detailed MCP server documentation, developers aim to optimize AI workflows and application performance, leveraging robust integration with blockchain data.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration