区块链活动与持有者信息MCP服务

这是一个MCP服务器,将Activity API封装为MCP工具,用于查询区块链链上活动、各链稳定币持有者数量及钱包地址持有者信息,适用于Cursor等MCP客户端。

  • by stablecoinxyz
  • TypeScript
  • 混合部署
  • 更新于
在 GitHub 查看 stablecoinxyz/mcp-server-demo

使用说明

Unmaintained. This repository is kept for reference only and is no longer maintained or updated. For security reports concerning actively maintained SBC systems, see the SBC security policy.

MCP Server Demo (using Activity API)

An MCP server that wraps around an "Activity API" service that provides blockchain activity and holder information for SBC (Stablecoin).

Installation

npm install

Configuration

Create a .env file with:

API_URL="The Activity API URL"
API_KEY="Your API Key"

Usage

Start the MCP server:

npm run start

The server runs on port 3333 and provides the following MCP tools that maps to 3 of Activity API endpoints:

  • getChainActivity - Get blockchain activity information for a specific chain
  • getHolderStatsPerChain - Get holder counts across different chains
  • getHolderInfo - Get holder information by wallet address

Configure the MCP Client (i.e. Cursor):

Create a directory called .cursor and add a file called mcp.json with the following content

{
  "mcpServers": {
    "SBC Activity API": {
      "type": "sse",
      "url": "http://localhost:3333/"
    }
  }
}

Open Cursor Settings and verify Tools are loaded.