Hooking up MCP in SnekLab

A guide on setting up Claude Code and SnekLab together via MCP

A steam train crosses a stone bridge over a river, past forests and a small town, in a 3D train game made on SnekLab

MCP lets an AI helper like Claude or Codex work on your SnekLab projects. It can read your game’s code, make changes, and save them as a new version. It can also be a massive cost savings if you have a subscription with one of those services. In a nutshell, you can use your Claude or Codex subscription to build on SnekLab.

You stay in charge. It can only see the projects you turn on.

What you need

Step 1: Make a token

A token is like a key. It lets your AI helper into SnekLab as you.

  1. Click your profile picture in the left sidebar, then choose Settings.

  2. Open the Tokens tab.

    The Tokens tab in Settings, with a token named “My laptop” set to expire in 90 days
    Screenshot of the Settings Modal

    (A token is a generated key that is a secret between SnekLab and your provider (Claude Code or Codex). With it, the provider can operate in SnekLab on your behalf, so it is critical you do not share it with anyone or otherwise make it publicly available. It is also considered a good practice to "rotate them" often. Meaning that you delete the old key and make a new one. This is to ensure no malicious actor can get into your stuff on SnekLab.)

  3. Give your token a name, like “My laptop”.

  4. Pick how long it lasts: 7, 30 or 90 days.

  5. Click Create token.

Copy your token right away. SnekLab shows it only once. If you lose it, revoke it and make a new one.

Step 2: Connect your AI helper

Once your token is made, SnekLab shows setup steps for each helper, with your token already filled in. Pick yours and follow along.

Setup steps for Claude Code after making a token

Claude Code

  1. Pick the Claude Code tab.

  2. Copy the command, paste it into a terminal, and press Enter.

  3. Start Claude Code and type /mcp. You should see sneklab connected.

The first time, the command may say there’s nothing to remove. That’s normal.

Using the Code tab in Claude Desktop? It uses these same steps.

Setup steps for adding SnekLab as a Claude Desktop connector

Claude Desktop

There are two ways in. Try the connector first. If it doesn’t work for you, use the config file.

Connector

  1. In Claude Desktop, open Customize → Connectors. Click + Add, then Add custom connector.

  2. Name it SnekLab, paste the server URL from SnekLab, and click Continue.

  3. Under Authentication, choose No sign-in.

  4. Open Request headers and pick authorization. Paste the value SnekLab gives you. Keep the word “Bearer” at the start.

  5. Click Add. Then, in a chat, open + → Connectors and turn SnekLab on.

Don’t see Request headers? That option is still rolling out. Use the config file instead.

Config file

  1. Install Node.js 18 or newer from nodejs.org if you don’t have it.

  2. In Claude Desktop, open Settings → Developer and click Edit Config.

  3. Open claude_desktop_config.json and paste in the text SnekLab gives you. If the file already has settings, keep them. SnekLab’s steps show where the new part goes.

    Setup steps for adding SnekLab to Claude Desktop’s config file
  4. Save the file. Quit Claude Desktop all the way, then open it again.

  5. In a chat, open + → Connectors. SnekLab is listed there.

Setup steps for Codex after making a token

Codex

  1. Pick the Codex tab.

  2. Copy the two lines, paste them into a terminal, and press Enter.

  3. Add the first line to your shell profile (for example ~/.zshrc) so it works in every new terminal.

  4. Run codex mcp list to check that sneklab is there. Then start Codex.

Step 3: Turn on MCP for your projects

Right now your helper can’t see anything. That’s on purpose. You choose which projects it can work on.

For a game:

  1. Open the game.

  2. Click the gear icon at the top (Prototype settings).

    The gear button at the top right of a game
  3. Tick Enable MCP access, then click Save.

    Prototype Settings with Enable MCP access ticked

For a design plan:

  1. Open the board.

  2. Click the gear icon at the top (Board settings).

    The gear button at the top right of a design plan
  3. Tick Allow MCP access. It saves right away.

    The Agents card in Board settings with Allow MCP access ticked

On a shared project board, everyone on the project can reach the board with their own token. Only the board’s owner can turn this on or off.

Step 4: Try it

Ask your provider (Claude Code or Codex) something like:

Every change your helper saves becomes a new version of your game. You can go back to an older version any time from Versions & tools.

If something goes wrong

Keep your token private. Anyone who has it can work on the projects you’ve turned on. If it gets out, revoke it right away.