Celo MCP Server
OfficialA read-only MCP server for querying Celo blockchain data — blocks, transactions, accounts, tokens, contracts, gas, governance, staking — plus two optional testnet-faucet tools.
Network & blocks — check network status/chain ID, fetch a block by number/hash/
latest, list recent blocks (with offset/count).Transactions & accounts — look up a transaction by hash, get an account's CELO balance, nonce, and contract-vs-EOA status.
Tokens — read ERC-20 metadata and total supply, per-address token balances, and bundled CELO/Mento stablecoin balances (USDm, EURm, BRLm, XOFm, KESm, PHPm, COPm, GHSm) via multicall.
Smart contracts — call any contract function read-only via
eth_call(with ABI, decoded results, large ints as strings), and estimate gas/cost for contract calls.Gas & fees — estimate transaction gas and CELO cost, and get current EIP-1559 fee data (base fee, priority fee, gas price).
Governance — list proposals with pagination and optional GitHub metadata, and fetch a single proposal's details, content, and voting history.
Staking — view an account's active/pending stakes by validator group, find activatable stakes, list validator groups with members/votes/capacity/performance, get single-group details, and read network-wide staking totals.
Faucet (testnet only, needs
CELO_MCP_FAUCET_API_KEY) — request 3 test CELO on Celo Sepolia and poll a request's payout status; no other assets, no mainnet.Deployment options — run locally over stdio, self-host over Streamable HTTP (with auth, CORS, rate limiting,
/health), or use the public endpoint athttps://mcp.celo.org/mcp. Nothing signs or sends transactions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Celo MCP Server get the current gas fee"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Celo MCP Server
A Model Context Protocol (MCP) server for interacting with the Celo blockchain. It provides read access to Celo blockchain data, tokens, smart contract calls, gas estimation, governance and staking, plus a testnet faucet.
Installation
Clone the repository:
git clone https://github.com/celo-org/celo-mcp
cd celo-mcpInstall dependencies:
pip install -e .Set up environment variables (optional):
export CELO_MCP_RPC_URL="https://forno.celo.org" # Default: Celo mainnet
export CELO_MCP_USE_TESTNET=true # Use Celo Sepolia insteadRelated MCP server: onchainos MCP Server
MCP Integration
Cursor IDE Integration
To use this MCP server with Cursor IDE, add the following configuration to your MCP settings file (~/.cursor/mcp.json):
{
"mcpServers": {
"celo-mcp": {
"command": "uvx",
"args": ["--refresh", "celo-mcp"]
}
}
}The --refresh flag ensures that the latest code is always loaded when the MCP server starts.
Claude Desktop Integration
For Claude Desktop, add this configuration to your MCP settings file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"celo-mcp": {
"command": "uvx",
"args": ["--refresh", "celo-mcp"]
}
}
}Claude Code
claude mcp add celo-mcp -- uvx --refresh celo-mcpAdd --scope user to make it available in every project. To use the faucet
tools, pass the key through: claude mcp add celo-mcp -e CELO_MCP_FAUCET_API_KEY=<key> -- uvx --refresh celo-mcp.
Hosted endpoint (no install)
Celo runs a public instance of this server over Streamable HTTP:
https://mcp.celo.org/mcpIt exposes the 20 read-only tools against Celo mainnet, with no authentication and no faucet. Connect from any remote-capable MCP client, for example:
claude mcp add --transport http celo-network https://mcp.celo.org/mcpLooking for documentation rather than chain data? That is the separate Celo
Docs server at https://docs.celo.org/mcp; this server reads the chain itself.
Connect remotely (Streamable HTTP)
The server can also run as a remote MCP endpoint over Streamable HTTP, so clients connect with a single URL — no local Python install. The stdio setup above is unchanged; this is an additional transport.
Run it in HTTP mode:
celo-mcp-server --transport http --port 3000
# or via env:
MCP_TRANSPORT=http PORT=3000 celo-mcp-serverThen point any remote-capable MCP client at the URL:
{
"mcpServers": {
"celo": { "url": "https://<your-host>/mcp" }
}
}Configuration (environment variables):
Var | Purpose | Default |
|
|
|
| HTTP bind host / port |
|
| Hostnames accepted by the SDK's DNS-rebinding check, comma-separated. Set to your public hostname(s), or | localhost only |
| Comma-separated allowed origins (or |
|
| Requests per client per window (seconds); |
|
| Number of | unset |
| If set, requires | unset (open) |
| Celo RPC endpoint | Forno for the selected network |
| Use Celo Sepolia (chain ID 11142220) instead of mainnet |
|
| Enables the faucet tools. Create one at faucet.celo.org/keys — see Faucet access | unset (faucet tools disabled) |
GET /health returns 200 for hosting health checks. See
docs/DEPLOYMENT.md for container/hosting instructions.
Usage
Running the Server
# Run the MCP server
python -m celo_mcp.server
# Or use the CLI entry point
celo-mcp-serverAvailable Tools
The list below is what the server registers; tests/test_readme_tools.py fails
if the two drift apart. Every tool except request_faucet_funds only reads from
the chain: nothing here signs or sends a transaction. The two faucet tools are
only listed when CELO_MCP_FAUCET_API_KEY is set, so a server without a key
exposes 20 read-only tools.
Blockchain Data Operations
get_network_status
Get current network status and connection information, including the chain ID and explorer URL of the network the server is using
No parameters required
get_block
Fetch block information by number, hash, or "latest"
Parameters:
block_identifier,include_transactions(optional)
get_transaction
Get transaction details by hash
Parameters:
tx_hash
get_account
Get an account's CELO balance, nonce, and whether it is a contract or an externally owned account
Parameters:
address,include_code(optional, default false; contract bytecode can be large)
get_latest_blocks
Get information about recent blocks
Parameters:
count(optional, default: 10, max: 100),offset(optional, default: 0)
Token Operations
get_token_info
Get ERC-20 token information (name, symbol, decimals, total supply)
Parameters:
token_address
get_token_balance
Get token balance for a specific address
Parameters:
token_address,address
get_celo_balances
Get CELO and stable token balances for an address
Parameters:
address
get_stable_token_balance
Get balances of the major stable tokens and CELO for an address in one multicall
Parameters:
address
Smart Contract Operations
call_contract_function
Call a contract function with
eth_calland return the decoded result. Read-only, including for functions that would change stateIntegers above 2^53 come back as decimal strings and bytes as 0x-prefixed hex, so JavaScript clients do not round token amounts
Parameters:
contract_address,function_name,abi(JSON array or JSON string),function_args(optional),from_address(optional)
estimate_contract_gas
Estimate gas for a contract function call and its cost at the current gas price
Parameters:
contract_address,function_name,abi,from_address,function_args(optional),value(optional, in wei)
Transaction Operations
estimate_transaction
Estimate gas and cost for a transaction
Parameters:
to,from_address,value(optional, in wei),data(optional)
get_gas_fee_data
Get current gas fee data including EIP-1559 fees
No parameters required
Governance Operations
get_governance_proposals
Get Celo governance proposals with pagination support
Parameters:
include_inactive(optional),include_metadata(optional),page(optional),page_size(optional),offset(optional),limit(optional)
get_proposal_details
Get detailed information about a specific governance proposal including content and voting history
Parameters:
proposal_id
Staking Operations
get_staking_balances
Get staking balances for an address, including active and pending stakes broken down by validator group
Parameters:
address
get_activatable_stakes
Get information about pending stakes that can be activated for earning rewards
Parameters:
address
get_validator_groups
Get information about all validator groups, including their members, votes, capacity, and performance metrics
Parameters:
page(optional),page_size(optional),offset(optional),limit(optional)
get_validator_group_details
Get detailed information about a specific validator group including its members and performance data
Parameters:
group_address
get_total_staking_info
Get network-wide staking information including total votes and participation metrics
No parameters required
Faucet Operations
Both faucet tools are testnet-only and require CELO_MCP_FAUCET_API_KEY (see
Faucet access below).
request_faucet_funds
Request testnet CELO for an address. Returns the payout transaction hash if it lands while the request is open, otherwise a
request_keyto poll withSends 3 CELO per request, and CELO only — no USDm or other stablecoins
Parameters:
beneficiary,network(optional, only celo-sepolia),wait(optional, default true)
get_faucet_request_status
Check whether a queued faucet request has paid out
Parameters:
request_key,network(optional, only celo-sepolia)
Network selection
The server talks to one network at a time, chosen when it starts:
Setting | Network | RPC | Explorer |
default | Celo mainnet (chain ID 42220) |
|
|
| Celo Sepolia (chain ID 11142220) |
|
|
CELO_MCP_RPC_URL replaces the RPC endpoint but not the network: the staking
and governance tools pick their contract addresses from CELO_MCP_USE_TESTNET.
If you point CELO_MCP_RPC_URL at a Celo Sepolia node, also set
CELO_MCP_USE_TESTNET=true. get_network_status returns a warning when the
chain ID the endpoint reports does not match the configured network. Alfajores
is sunset and no longer supported.
Responses and errors
Every tool returns its result as JSON text. Tools whose result has a fixed shape
also declare an outputSchema and return the same data as structuredContent,
so clients can validate it. Those are every tool except get_network_status,
get_block, get_transaction, get_account, get_latest_blocks,
get_celo_balances and get_total_staking_info, which return JSON text only.
When a call fails, the result has isError: true and a text message starting
with Error:. That covers an unknown tool name (the message lists the available
tools), a missing required argument (the message names it), an invalid address
or hash, and RPC failures. Some tools report a failure inside a normal result
instead: call_contract_function and estimate_contract_gas return
success: false with the revert reason in error, and the governance tools
return an error field.
Faucet access
The faucet's browser flow is gated on reCAPTCHA v3, which scores headless
callers badly, so the faucet tools use its API-key path instead. Create a key at
faucet.celo.org/keys (sign in with GitHub; up to
2 keys, 90-day expiry) and set it in your MCP client's env block:
{
"mcpServers": {
"celo-mcp": {
"command": "uvx",
"args": ["celo-mcp"],
"env": { "CELO_MCP_FAUCET_API_KEY": "cfk_..." }
}
}
}The key is read from the environment and never passed as a tool argument, so it does not enter the model's context or the conversation transcript.
Limits are set by the faucet, not by this server: 10 requests per 24 hours,
counted per GitHub account and per beneficiary address — holding two keys does
not double the allowance. Global daily and 10-minute burst ceilings apply across
all keys on top of that. celo-sepolia (chain ID 11142220) is the only
supported network; there is no mainnet faucet.
The faucet publishes its API contract at openapi.json and llms-full.txt; treat those as the source of truth if amounts or limits change.
Deployment note: the HTTP transport is open unless
MCP_AUTH_TOKENis set. Only configure a faucet key for stdio or authenticated deployments — otherwise anyone reaching/mcpcan spend your daily allowance on arbitrary addresses, and the key can be revoked for abuse.
Key Features
Token Support
ERC20 Standard: Full support for ERC20 tokens
Mento Stable Tokens: Built-in support for USDm, EURm and BRLm (formerly cUSD, cEUR and cREAL), plus XOFm, KESm, PHPm, COPm and GHSm
Balance Queries: Get token balances with proper decimal formatting
Token Information: Retrieve name, symbol, decimals, and total supply
Smart Contract Interactions
Function Calls: Call contract functions with
eth_call(read-only)Gas Estimation: Estimate gas costs for contract interactions
Transaction Estimates
Gas Estimation: Gas and cost estimates for transactions
EIP-1559 Support: Current base fee and priority fee
Governance Support
Proposal Management: Retrieve and analyze Celo governance proposals
Voting Data: Access proposal voting history and results
Metadata Integration: Fetch proposal metadata from GitHub repositories
Pagination Support: Efficiently browse through large sets of proposals
Staking Support
Staking Balances: View active and pending stakes by validator group
Activation Tracking: Check which pending stakes can be activated
Validator Information: Comprehensive validator and validator group data
Performance Metrics: Validator scores, election status, and capacity
Network Statistics: Total voting power and staking participation
Development
Running Tests
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run with coverage
pytest --cov=celo_mcpCode Quality
# Format code
black src/
isort src/
# Lint code
flake8 src/
mypy src/Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Ensure all tests pass
Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For questions, issues, or contributions, please:
Check the existing issues on GitHub
Create a new issue with detailed information
Join the community discussions
Acknowledgments
Built on the Model Context Protocol (MCP) framework
Uses Web3.py for Ethereum/Celo blockchain interactions
Supports the Celo ecosystem and its stable token infrastructure
Available Tools
20 toolscall_contract_functionCall contract function (read-only)ARead-only
Call a contract function with eth_call and return its result. Read-only: nothing is signed or sent, even for functions that would change state. Integers larger than 2^53 are returned as decimal strings and bytes as 0x-prefixed hex. A failed call returns success false with the revert reason in error.
Inputs: abi (required), function_name (required), contract_address (required), from_address, +1 more. Returns: Contract function call result model.
estimate_contract_gasEstimate contract gasARead-only
Estimate the gas a contract function call would use if sent from from_address, and its cost at the current gas price. Nothing is signed or sent. A call that would revert returns success false with the reason in error.
Inputs: abi (required), from_address (required), function_name (required), contract_address (required), +2 more. Returns: Gas estimate model.
estimate_transactionEstimate transaction costBRead-only
Estimate the gas limit and CELO cost of a transaction at the current gas price. Nothing is signed or sent.
Inputs: to (required), from_address (required), data, value. Returns: Transaction cost estimate model.
get_accountAccount detailsARead-only
Get an account's CELO balance (in wei and in CELO), nonce, and whether the address is a contract or an externally owned account. Contract bytecode is left out unless include_code is true.
Inputs: address (required), include_code.
get_activatable_stakesActivatable stakesBRead-only
Get information about pending stakes that can be activated for earning rewards.
Inputs: address (required). Returns: Information about stakes that can be activated.
get_blockGet blockARead-only
Fetch detailed information about a specific block on the Celo blockchain using its number or hash. Optionally include full transaction details within the block.
Inputs: block_identifier (required), include_transactions.
get_celo_balancesCELO and stablecoin balancesBRead-only
Get CELO and stable token balances for an address.
Inputs: address (required).
get_gas_fee_dataGas feesBRead-only
Get current gas fee data including EIP-1559 fees.
Inputs: no named parameters. Returns: Gas fee data model for EIP-1559.
get_governance_proposalsGovernance proposalsCRead-only
Get Celo governance proposals with pagination support.
Inputs: page, limit, offset, page_size, +2 more. Returns: Response for governance proposals query with celo-mondo style formatting.
get_latest_blocksLatest blocksARead-only
Get information about the most recent blocks on the Celo blockchain, with the ability to specify the number of blocks to retrieve and starting offset.
Inputs: count, offset.
get_network_statusNetwork statusBRead-only
Retrieve the current status and connection information of the Celo network, including network health and connectivity details.
Inputs: no named parameters.
get_proposal_detailsGovernance proposal detailsARead-only
Get detailed information about a specific governance proposal including its content and voting history.
Inputs: proposal_id (required). Returns: Response for individual proposal details.
get_stable_token_balanceStablecoin balancesBRead-only
Get balances of all major stable tokens and CELO for an address using multicall.
Inputs: address (required). Returns: Multiple stable token balances for an address.
get_staking_balancesStaking balancesARead-only
Get staking balances for an address, including active and pending stakes broken down by validator group.
Inputs: address (required). Returns: Staking balances for an account.
get_token_balanceToken balanceCRead-only
Get the token balance for a specific address.
Inputs: address (required), token_address (required). Returns: Token balance model.
get_token_infoToken infoBRead-only
Get an ERC-20 token's name, symbol, decimals and total supply (raw and formatted).
Inputs: token_address (required). Returns: Token information model.
get_total_staking_infoNetwork staking totalsBRead-only
Get network-wide staking information including total votes and participation metrics.
Inputs: no named parameters.
get_transactionGet transactionBRead-only
Obtain detailed information about a specific transaction on the Celo blockchain using its transaction hash.
Inputs: tx_hash (required).
get_validator_group_detailsValidator group detailsARead-only
Get detailed information about a specific validator group including its members and performance data.
Inputs: group_address (required). Returns: Information about a validator group.
get_validator_groupsValidator groupsARead-only
Get information about all validator groups, including their members, votes, capacity, and performance metrics.
Inputs: page, limit, offset, page_size. Returns: Paginated response for validator groups.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools are clearly distinct (blocks, transactions, validators, governance), but the balance-retrieval cluster is muddled: get_celo_balances, get_stable_token_balance, and get_token_balance overlap heavily, and get_account also returns CELO balance. An agent could easily misselect among these four for a simple balance query.
Nearly all tools follow a consistent get_<noun> / get_<noun>_details pattern, with estimate_transaction and estimate_contract_gas forming a coherent verb prefix. call_contract_function is a minor deviation but reads clearly as a distinct action verb.
20 tools is on the heavy side for a read-only chain interface, and the count is inflated by several redundant balance tools. The broad domain (RPC, tokens, staking, governance, gas) justifies many tools, but consolidation of the balance queries would tighten the set.
Read-only coverage is solid across blocks, transactions, accounts, tokens, staking, gas estimation, and governance, with paired list/details tools. Minor gaps remain (no event/log queries, no account transaction history), but core workflows are supported and the read-only design is explicit.
Maintenance
Related MCP Connectors
Read chain data on 200+ networks and Sui: transactions, logs, balances, objects, ABI-decoded.
Wallet balances, ERC-20, blocks, transactions, receipts, ENS and payment checks, pay per call
Read EVM and Solana chains for balances, tokens, eth_call, logs, receipts, gas, blocks and ENS.
Query real-time blockchain token data across EVM and Solana networks. Access token balances, transfers, prices, holders, NFT ownership, DEX swaps, and liquidity pools. Supports Ethereum, Base, Arbitrum, BSC, Polygon, Solana, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Etherlink blockchain, including balance checks, transactions, smart contract interactions, and token operations.4MIT

onchainos MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables on-chain operations including token search, market data, wallet management, swap execution, and DApp interactions across 20+ blockchains.349MIT- FlicenseNot gradedqualityDmaintenanceEnables blockchain transactions on BSC including balance checks, transfers, token swaps, and reward claims.3-
- FlicenseNot gradedqualityDmaintenanceEnables querying native and ERC-20 balances, checking allowances, retrieving DEX swap quotes, estimating gas costs, and managing Real World Assets and ERC-8004 agent identities on the Mantle Network.1-