Sponsored by Deepsite.site

Concordium MCP Server

Created By
Developerayo5 months ago
Concordium mcp-sever for interacting with the concordium chain
Content

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

Server Config

{
  "mcpServers": {
    "concordium": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--network=host",
        "concordium-mcp-server"
      ],
      "env": {
        "CCD_NETWORK": "mainnet",
        "CCD_PORT": "20000",
        "CCD_SECURE": "true"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server