Concordium MCP Server

Concordium MCP Server

Concordium mcp-sever for interacting with the concordium chain

Category
访问服务器

README

Concordium MCP Server

An MCP server that allows AI agents to communicate with the Concordium chain through natural language. Query accounts, blocks, tokens, validators, smart contracts & more without writing any code.

Quick Setup

Docker Setup

Add this to your mcp-server config (Claude Desktop or Cursor):

{
  "mcpServers": {
    "concordium": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--network=host", "concordium-mcp-server"],
      "env": {
        "CCD_NETWORK": "mainnet",
        "CCD_PORT": "20000",
        "CCD_SECURE": "true"
      }
    }
  }
}

Local Setup

For local dev without Docker:

{
  "mcpServers": {
    "concordium": {
      "command": "node",
      "args": ["/zeus/workspace/concordium-mcp-server/dist/index.js"],
      "env": {
        "CCD_NETWORK": "mainnet",
        "CCD_PORT": "20000",
        "CCD_SECURE": "true"
      }
    }
  }
}

Deployment Options

One-Line Setup

Local (auto-configs Claude Desktop):

./scripts/local-deploy.sh

Docker:

./scripts/docker-deploy.sh

Cloud (HTTP):

./scripts/fly-deploy.sh
./scripts/railway-deploy.sh
./scripts/render-deploy.sh

Setup Wizard:

# Setup wizard for deploy scripts
./scripts/wizard.sh

Manual Setup

# Install deps
pnpm install

# Build
pnpm run build

# Run
node dist/index.js

HTTP

node dist/http-server.js
# Available at http://localhost:3001/sse

Env

  • CCD_NETWORK - Network to connect to (mainnet or testnet, default: mainnet)
  • CCD_PORT - RPC port (default: 20000)
  • CCD_SECURE - Use secure connection (default: true)
  • CCD_TIMEOUT - Request timeout in ms (default: 15000)

Available Methods

Accounts/Wallets

  • get_account_details - Full account details including balance and staking
    • Example: "Show me account details for 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF"
  • get_account_balance - CCD balance in microCCD
    • Example: "What's the CCD balance of account 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF?"
  • get_account_staking_details - Validator/delegator status and staked amounts
    • Example: "Is account 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF staking?"

Blocks

  • get_block_details - Block information by hash or latest
    • Example: "Show me the latest block details"
  • get_blocks_at_height - All blocks at specific height
    • Example: "Get all blocks at height 31,058,768"
  • get_block_transaction_events - Transaction events in a block
    • Example: "Show me transaction events from the latest block with transactions"

Tokens

  • get_token_balance - CIS-2 token balance
    • Example: "Check token balance for wallet 3kBx... on contract 9870,1"

Validators/Pools

  • get_validator_list - Active validators (limited to 100)
    • Example: "List all active validators"
  • get_pool_details - Validator pool information
    • Example: "Show details for validator pool ID 42"
  • get_passive_delegation_details - Passive delegation info
    • Example: "What's the current passive delegation status?"

Smart Contracts

  • get_instance_details - Contract instance information
    • Example: "Get details for contract at address 9870,1"
  • get_module_list - Deployed contract modules
    • Example: "List the first 50 deployed modules"

Network

  • get_consensus_details - Chain consensus status
    • Example: "What's the current consensus status?"
  • get_node_details - Node information
    • Example: "Show node details"
  • health_check - Node health status
    • Example: "Is the node healthy?"

Usage Examples

Basic Queries

  • "What is the CCD balance of: 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF?"
  • "Show me the latest block on the network"
  • "List all active validators"
  • "Get details for smart contract 9870,1"

More Complex Queries (Some would involves multiple tools)

  • "Check if account 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF is staking and show me the pool details"
  • "Show me transaction events in recent blocks"
  • "Show me the 20 most recent deployed contract modules"
  • "What's the current epoch and election information?"

Token Stuff

  • "Check CIS-2 token balance for wallet 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF on contract 9870,1"
  • "Show token balance with token ID '2' for address 3kBx2h5Y2veb4hZgAJWPrr8RyQESKm5TjzF3ti1QQ4VSvj6tF"

Development

Prerequisites

  • Node.js 20+
  • pnpm package manager
  • Docker (optional)

Building from Source

git clone git@github.com:Developerayo/concordium-mcp-server.git
cd concordium-mcp-server
pnpm install
pnpm run build

Using the MCP Inspector for Debugging

The MCP Inspector helps with debugging your MCP server by providing a visual interface to test your methods:

pnpm inspector

This will start the MCP Inspector which you can access in your browser. It allows you to:

  • See all available methods
  • Test methods with different parameters
  • View the response data
  • Debug issues with your MCP server

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选