Skip to main content
Glama

Ankr API MCP Server

by akki91

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

来源

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

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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 检索特定网络上钱包地址的代币余额。

  1. 概述
    1. 特征
      1. 代币操作
    2. 安装
      1. 用法
        1. 环境设置
        2. 运行服务器
        3. 与 LLM 工具一起使用
        4. 与人工智能模型的集成
        5. 在 Claude Desktop 中集成 Ankr MCP 工具
        6. 聊天提示示例
      2. 发展
        1. 从源代码构建
        2. 调试模式
        3. 来源

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        An MCP server that provides LLMs access to other LLMs
        Last updated -
        4
        14
        12
        JavaScript
        MIT License
      • -
        security
        A
        license
        -
        quality
        An 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 -
        32
        Python
        Apache 2.0
      • A
        security
        A
        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
        4
        1
        TypeScript
        MIT License
        • Apple
      • A
        security
        F
        license
        A
        quality
        A lightweight MCP server that provides a unified interface to various LLM providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama.
        Last updated -
        6
        411
        Python

      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