A Model Context Protocol (MCP) server for the Ergo Platform. This server provides a suite of tools for exploring the blockchain, querying real-time data, and dynamically loading "skills" (agentic workflows) from the Ergo ecosystem.
get_address_balance: Check confirmed ERG and token balances for any address.get_transaction_details: Retrieve detailed information about a transaction.get_block_header: Fetch block headers by ID or height.search_tokens: Find tokens by name/ticker.get_ergo_price: Get real-time ERG price in USD and EUR via CoinGecko.
The server includes a Dynamic Skill Registry that scans the ergo-skills-repo to automatically load and expose capabilities.
-
local_ergo_node_deployment(Native Support):- Automates the deployment of a local Ergo full node.
- Downloads JAR, configures API security (hashed password), and launches the process.
- Verified to work with
javainstalled on the host.
-
Other Skills (Text-Based):
ergo_appkit_code_generatorergo_wasm_cryptographic_toolkitnautilus_wallet_dapp_connector- These tools return their instruction manuals (from
SKILL.md) when called, allowing an AI agent to follow the guide for manual implementation or code generation.
-
Clone this repository:
git clone https://github.com/Degens-World/Ergo-MCP.git cd ergo-mcp-server -
Install dependencies:
npm install
-
Build the project:
npm run build
The server automatically fetches skills from https://github.com/Degens-World/Ergo-Skills.
Optional Environment Variables:
GITHUB_TOKEN: Add a GitHub Personal Access Token to increase API rate limits (recommended for heavy usage).GITHUB_REPO_URL: Override the target skills repository URL.
# Example with token (Linux/Mac)
export GITHUB_TOKEN=ghp_yourtoken...
node dist/index.jsTo test the server interactively:
npx @modelcontextprotocol/inspector node dist/index.jsnode dist/index.js- Run in dev mode:
npm run dev
- Run verification tests:
npm test
src/index.ts: Main server entry point and tool registration.src/tools.ts: Implementation of core explorer tools.src/skill_registry.ts: Logic for dynamically loading skills from the repo.src/skills/: Native implementations for specific skills (e.g., node deployment).test/: Verification scripts.