Ankr API MCP 服务器
通过Ankr API 提供区块链数据的 MCP(模型上下文协议)服务器。
概述
Ankr MCP 服务器通过 Ankr API 获取链上数据。它实现了 MCP,允许 LLM 访问区块链数据。
特征
服务器提供以下链上数据操作:
代币操作
- 获取账户余额(
get_token_balances_on_network
):获取特定网络上给定地址的所有代币余额- 参数:网络、钱包/账户地址
- 返回:链上该钱包的资产数据,
安装
用法
环境设置
通过登录 ANKR api 文档门户设置您的 ANKR API 令牌。
运行服务器
可以直接从命令行运行服务器:
与 LLM 工具一起使用
该服务器实现了模型上下文协议 (MCP),这使得它可以用作兼容 AI 模型的工具提供者。
与人工智能模型的集成
要将此服务器与支持 MCP 的 AI 应用程序集成,请将以下内容添加到应用程序的服务器配置中:
在 Claude Desktop 中集成 Ankr MCP 工具
按照以下说明更新您的设置并确保您的 MCP 服务器在 Claude Desktop 中可用。
步骤 1:访问 Claude Desktop 中的设置
- 启动Claude Desktop 。
- 从主菜单导航至**“设置”** 。
第 2 步:更新开发者设置
- 打开开发者设置。
- 编辑包含 MCP 服务器定义的配置文件。
- 如果 MCP 服务器已列出,请将您的 Ankr MCP 配置添加到现有列表中。否则,请复制并粘贴上述 Ankr MCP 服务器的完整配置。
步骤3:重启Claude Desktop
- 关闭开发者设置菜单。
- 重新启动Claude Desktop以应用更改。
步骤 4:验证集成
- 一旦 Claude Desktop 重新启动,单击聊天提示下方的工具图标。
- 验证 Ankr MCP 服务器提供的工具列表是否可见且可访问。
按照这些步骤,您的 Ankr MCP 配置现在应该集成到 Claude Desktop 中,允许您直接通过界面访问其工具。
聊天提示示例
发展
从源代码构建
调试模式
使用MCP Inspector支持对该项目进行调试
来源
该项目的灵感来自于这里创建的服务器列表
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP 服务器通过 Ankr API 获取链上区块链数据,允许 LLM 检索特定网络上钱包地址的代币余额。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides LLMs access to other LLMsLast updated -41412JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.Last updated -32PythonApache 2.0
- AsecurityAlicenseAqualityAn MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.Last updated -441TypeScriptMIT License
- AsecurityFlicenseAqualityA lightweight MCP server that provides a unified interface to various LLM providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama.Last updated -6411Python