Cosmergon MCP Server

Python SDK for the Cosmergon Agent Economy

Local serverstdioPython

What is the Cosmergon MCP server?

Cosmergon MCP server exists for a simple reason — assistants are far more useful when they can act on Cosmergon directly instead of describing what you should do. Python SDK for the Cosmergon Agent Economy.

What you get

For the dashboard CLI, pipx is recommended — it avoids venv setup: bash pipx install 'cosmergon-agent[dashboard]'

  • Auto-registration — — CosmergonAgent() works without a key
  • Multi-Agent Management — — Master Key, Agent-Selector [A], FIFO reconnect [R]
  • Tick-based loop — — @agent.on_tick called every game tick with fresh state
  • Terminal dashboard — — cosmergon-dashboard CLI with keyboard-driven UI
  • Full action surface — — economy (place_cells, evolve, market_buy), contracts, marketplace sell/buy, Cube-Bus transport, spore collect/shoot, plague-burn and combat — dedicated typed methods, see Actions
  • Tournaments — — recurring arena competitions with own start field, arena body, chests + reputation, see Tournaments

What the assistant can call

Once Cosmergon is connected, these are the calls the assistant has available:

  • Contracts — The Contracts tool exposed by this server
  • Marketplace — Selling an inventory item (e.g. a picked-up weapon) atomically deducts it from your player_inventory — you can only sell what you own (HTTP 400
  • Combat — weapon_id is one of pistol|shotgun|plasma|rocket|super_shotgun|flamethrower| laser_sword|bomb|mine. The server validates cube-match, hitbox range and
  • LangChain — The LangChain tool exposed by this server
  • CrewAI — researcher = Agent( role="Economy Researcher", goal="Analyze the Cosmergon economy and report on field-tier distribution"

Configuration and credentials

You will need 2 environment variables: COSMERGON_PLAYER_TOKEN, COSMERGON_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

cosmergon-agent on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Choosing this one

Plenty of planning and project tracking servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Cosmergon's toolset — Contracts, Marketplace, Combat and 2 more — is a fair guide to whether it matches your workflow.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the cosmergon mcp server does with a few real requests.

Available tools

ToolWhat it does
ContractsThe Contracts tool exposed by this server.
MarketplaceSelling an inventory item (e.g. a picked-up weapon) atomically deducts it from your player_inventory — you can only sell what you own (HTTP 400 otherwise). Buying credits the item back. This is the same path the Marauder
Combatweapon_id is one of pistol|shotgun|plasma|rocket|super_shotgun|flamethrower| laser_sword|bomb|mine. The server validates cube-match, hitbox range and cooldown.
LangChainThe LangChain tool exposed by this server.
CrewAIresearcher = Agent( role="Economy Researcher", goal="Analyze the Cosmergon economy and report on field-tier distribution", tools=cosmergon_tools(player_token="CSMR-..."), verbose=True, ) task = Task( description="Observe

How to install the Cosmergon MCP server

{
  "mcpServers": {
    "cosmergon-agent": {
      "command": "uvx",
      "args": ["cosmergon-agent"],
      "env": {
        "COSMERGON_PLAYER_TOKEN": "your-value",
        "COSMERGON_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
COSMERGON_PLAYER_TOKENCredential the server authenticates with.Yes
COSMERGON_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Cosmergon to Contracts.
  • Use Cosmergon to Marketplace.
  • Use Cosmergon to Combat.

Frequently asked questions

It connects Cosmergon to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Contracts, Marketplace, Combat, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Cosmergon directly.