Skip to main content
The Celo MCP Server is a Model Context Protocol (MCP) server that provides comprehensive access to the Celo blockchain. This powerful tool enables AI assistants and development environments to interact directly with Celo blockchain data, execute token operations, manage NFTs, handle smart contract interactions, process transactions, and participate in governance operations.

Key Features

  • 🔗 Blockchain Data Access: Real-time access to blocks, transactions, and account information
  • 💰 Token Operations: Complete ERC20 and Mento stable token support (USDm, EURm, BRLm)
  • 🖼️ NFT Management: Support for ERC721 and ERC1155 standards with metadata fetching
  • 📄 Smart Contract Interactions: Call functions, estimate gas, and manage ABIs
  • 📊 Transaction Handling: Gas estimation, EIP-1559 support, and transaction simulation
  • 🏛️ Governance Operations: Access to Celo governance proposals and voting data

Prerequisites

  • Python 3.11 or higher
  • Git (v2.38 or higher)
  • An IDE that supports MCP (Cursor or Claude Desktop)

Installation

Method 1: Direct Installation

Clone the repository and install dependencies:

Configuration

Set up optional environment variables for custom RPC endpoints:

MCP Client Integration

MCP is supported by a wide range of IDEs and development tools. Below are setup instructions for popular options:

VS Code Setup

VS Code has native MCP support. Add the following configuration to your MCP settings: macOS/Linux: ~/.vscode/mcp.json or via VS Code settings Windows: %APPDATA%\Code\User\mcp.json

Cursor IDE Setup

Add the following configuration to your MCP settings file (~/.cursor/mcp.json):
The --refresh flag ensures the latest code is always loaded when the MCP server starts.

JetBrains IDEs Setup

For IntelliJ IDEA, WebStorm, PyCharm, and other JetBrains IDEs, configure MCP through the IDE settings or via the JetBrains MCP Server plugin.

Windsurf Setup

Windsurf has built-in MCP support. Configure MCP servers through the Windsurf settings interface.

Claude Desktop Setup

For Claude Desktop, add this configuration to your MCP settings file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Available Tools

Blockchain Data Operations

Network and Block Information

  • get_network_status: Get current network status and connection information
  • get_block: Fetch block information by number, hash, or “latest”
  • get_latest_blocks: Get information about recent blocks (up to 100)

Account and Transaction Data

  • get_account: Get account information including balance and nonce
  • get_transaction: Get detailed transaction information by hash

Token Operations

Token Information and Balances

  • get_token_info: Get detailed token information (name, symbol, decimals, supply)
  • get_token_balance: Get token balance for a specific address
  • get_celo_balances: Get CELO and stable token balances for an address

NFT Operations

NFT Management

  • get_nft_info: Get NFT information including metadata and collection details
  • get_nft_balance: Get NFT balance for an address (supports ERC721 and ERC1155)

Smart Contract Operations

Contract Interactions

  • call_contract_function: Call read-only contract functions
  • estimate_contract_gas: Estimate gas for contract function calls

Transaction Operations

Transaction Management

  • estimate_transaction: Estimate gas and cost for transactions
  • get_gas_fee_data: Get current gas fee data including EIP-1559 fees

Governance Operations

Celo Governance

  • get_governance_proposals: Get Celo governance proposals with pagination
  • get_proposal_details: Get detailed information about specific governance proposals

Development

Running Tests

Code Quality

Running the Server

Start the MCP server directly: