cpu-game-mcp
This MCP server lets an AI agent play Project CPU, a blockchain game on EVM — managing your wallet, land, resources, crafting, trading, and token operations.
Session & Account
Authenticate via SIWE, fetch the game rulebook (resource catalog, building costs, contract addresses), and check wallet balances ($CPU and ETH).
World Exploration
Read the live world map, inspect individual cells, and poll only changed cells since a given version to react to other players efficiently.
Reveal & Building
Reveal a land cell's resource deposits on-chain, build extractors (auto-mine resources) or hubs (enable trading), check mining status, and claim accrued resources.
Crafting
Browse all recipes, start crafting (including forging wCPU), track progress, and claim completed batch outputs.
Transport & Logistics
Preview transport routes (cost, time, fees), move resources between cells via waypoints, track shipments, list your transports, and resume pending payments.
Trading & Marketplace
Scout marketplaces, browse/filter lots, preview buy costs, purchase lots, create/cancel your own lots, and list all lots you've created.
Token Operations
Preview and execute ETH ↔ $CPU swaps (Uniswap V4) with slippage control, and withdraw wCPU from a cell to on-chain $CPU (1:1).
Land Minting
Preview the ETH cost and mint new land cells from the primary market (OpenSea SeaDrop).
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.
project-cpu-mcp
MCP (Model Context Protocol) server for Project CPU — 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, trade at marketplaces, and cash out to on-chain $CPU. Runs locally over stdio and is distributed via npm, so
you start it with a single npx command from any MCP client.
Installation
Pick your client below and add the server. The only required setting is your wallet's PRIVATE_KEY (0x + 64 hex chars) — replace 0x… with yours.
claude mcp add project-cpu -s user -e PRIVATE_KEY=0x… -- npx -y project-cpu-mcp@latest-s userinstalls it across all your projects; omit it (or use-s local) for the current project only.-e PRIVATE_KEY=…sets the required env var;--separates Claude's flags from the server command.
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart the app:
{
"mcpServers": {
"project-cpu": {
"command": "npx",
"args": ["-y", "project-cpu-mcp@latest"],
"env": { "PRIVATE_KEY": "0x…" }
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (this project):
{
"mcpServers": {
"project-cpu": {
"command": "npx",
"args": ["-y", "project-cpu-mcp@latest"],
"env": { "PRIVATE_KEY": "0x…" }
}
}
}Create .vscode/mcp.json — VS Code prompts for the key at startup instead of storing it:
{
"inputs": [
{ "type": "promptString", "id": "privateKey", "description": "Project CPU private key", "password": true }
],
"servers": {
"project-cpu": {
"command": "npx",
"args": ["-y", "project-cpu-mcp@latest"],
"env": { "PRIVATE_KEY": "${input:privateKey}" }
}
}
}(In user settings.json, wrap the whole object in an "mcp": { … } key.)
Add to ~/.codeium/windsurf/mcp_config.json, then restart Windsurf:
{
"mcpServers": {
"project-cpu": {
"command": "npx",
"args": ["-y", "project-cpu-mcp@latest"],
"env": { "PRIVATE_KEY": "0x…" }
}
}
}Related MCP server: Universal Crypto 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 ~/.project-cpu/.
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.Tokens —
quote_swap,swap(trade ETH ↔ $CPU on the token pool),withdraw(cash a cell's wCPU out to on-chain $CPU, 1:1).
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/project-cpu-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server