cpu-game-mcp
Click on "Install 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., "@cpu-game-mcpwhat's my current balance?"
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.
cpu-game-mcp
MCP (Model Context Protocol) server for CPU Game — a blockchain game on EVM. It lets an
AI agent play on your behalf: read the world map, reveal cells, build and mine, craft, move
resources, and trade at marketplaces. Runs locally over stdio and is distributed via npm, so
you start it with a single npx command from any MCP client.
Quick start
Add the server to your MCP client config (e.g. claude_desktop_config.json or an mcp.json).
The only required setting is your wallet's PRIVATE_KEY:
{
"mcpServers": {
"cpu-game": {
"command": "npx",
"args": ["-y", "cpu-game-mcp@latest"],
"env": {
"PRIVATE_KEY": "0x…" // 0x + 64 hex chars (your 32-byte private key)
}
}
}
}Related MCP server: Hexiaoyi MCP
Environment variables
Required
Variable | Description |
| Your wallet private key — |
Optional — has a sensible default; normal users can omit it.
Variable | Default | When you need it |
| chain's public RPC | A custom RPC endpoint for sending on-chain transactions (e.g. |
Session state (JWT / session keys) is persisted to ~/.cpu-game/.
What the agent can do
Once connected, the server exposes tools grouped by area:
Session —
authenticate,get_game_config(static rulebook: resources, costs, contract addresses),get_balance(spendable $CPU + gas).World —
get_map,get_cell,get_changes(react to other players).Reveal & build —
reveal(surface a cell's deposits on-chain),build(place a building; an extractor starts mining automatically),get_mining_status,claim_mining.Transport —
quote_transport,transport,get_transport_status,list_my_transports,get_pending_transports,resume_transport.Crafting —
list_recipes,craft,get_craft_status,claim_craft.Trading —
get_markets,list_lots,get_lot,quote_buy,buy_lot,create_lot,cancel_lot,list_my_lots.
Paid routes and on-chain actions are settled automatically; always check get_balance before
a paid action.
Requirements
Node.js ≥ 20
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sodiqit/cpu-game-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server