Skip to main content
Glama

Ankr API MCP 服务器

通过Ankr API 提供区块链数据的 MCP(模型上下文协议)服务器。

概述

Ankr MCP 服务器通过 Ankr API 获取链上数据。它实现了 MCP,允许 LLM 访问区块链数据。

特征

服务器提供以下链上数据操作:

代币操作

  • 获取账户余额get_token_balances_on_network ):获取特定网络上给定地址的所有代币余额

    • 参数:网络、钱包/账户地址

    • 返回:链上该钱包的资产数据,

安装

npm install @akki91/ankr-mcp

用法

环境设置

通过登录 ANKR api 文档门户设置您的 ANKR API 令牌。

export ANKR_API_TOKEN=your_api_token_here

运行服务器

可以直接从命令行运行服务器:

npx @akki91/ankr-mcp

与 LLM 工具一起使用

该服务器实现了模型上下文协议 (MCP),这使得它可以用作兼容 AI 模型的工具提供者。

与人工智能模型的集成

要将此服务器与支持 MCP 的 AI 应用程序集成,请将以下内容添加到应用程序的服务器配置中:

{ "mcpServers": { "ankr-mcp": { "command": "npx", "args": [ "@akki91/ankr-mcp" ], "env": { "ANKR_API_TOKEN": "your_api_token_here" } } } }

在 Claude Desktop 中集成 Ankr MCP 工具

按照以下说明更新您的设置并确保您的 MCP 服务器在 Claude Desktop 中可用。

步骤 1:访问 Claude Desktop 中的设置

  1. 启动Claude Desktop

  2. 从主菜单导航至**“设置”** 。

第 2 步:更新开发者设置

  1. 打开开发者设置

  2. 编辑包含 MCP 服务器定义的配置文件。

  3. 如果 MCP 服务器已列出,请将您的 Ankr MCP 配置添加到现有列表中。否则,请复制并粘贴上述 Ankr MCP 服务器的完整配置。

步骤3:重启Claude Desktop

  1. 关闭开发者设置菜单。

  2. 重新启动Claude Desktop以应用更改。

步骤 4:验证集成

  1. 一旦 Claude Desktop 重新启动,单击聊天提示下方的工具图标

  2. 验证 Ankr MCP 服务器提供的工具列表是否可见且可访问。

按照这些步骤,您的 Ankr MCP 配置现在应该集成到 Claude Desktop 中,允许您直接通过界面访问其工具。

聊天提示示例

Give me the token balances for wallet adddress X for network Y.

发展

从源代码构建

# Clone the repository git clone https://github.com/akki91/ankr-mcp.git cd ankr-mcp # Install dependencies npm install # Build the project npm run build

调试模式

使用MCP Inspector支持对该项目进行调试

npm run debug

来源

该项目的灵感来自于这里创建的服务器列表

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    -
    license
    A
    quality
    An MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.
    Last updated -
    37
    181
    GPL 3.0
    • Apple
    • Linux
  • A
    security
    -
    license
    A
    quality
    An 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 -
    4
    12
    2
    MIT License
    • Apple
  • A
    security
    -
    license
    A
    quality
    A suite of MCP servers that allow LLMs to interact with blockchains through MetaMask wallet without exposing private keys, facilitating secure AI-powered blockchain interactions and simplified user onboarding.
    Last updated -
    25
    3
  • -
    security
    -
    license
    -
    quality
    A lightweight, fast MCP server that provides onchain capabilities for the LLMs and Agents.
    Last updated -
    19
    196
    MIT License
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/akki91/ankr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server