Skip to content
MCP server

pyplAI

MCP server letting language models play board games against MCTS and minimax search

Runs locally

pyplAI is an open-source MCP server for games and play. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add pyplai-mcp -- uvx pyplai-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "pyplai-mcp": {
      "command": "uvx",
      "args": [
        "pyplai-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pyplai-mcp": {
      "command": "uvx",
      "args": [
        "pyplai-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pyplai-mcp": {
      "command": "uvx",
      "args": [
        "pyplai-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "pyplai-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pyplai-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add pyplai-mcp -- uvx pyplai-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.pyplai-mcp]
command = "uvx"
args = ["pyplai-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pyplai-mcp": {
      "command": "uvx",
      "args": [
        "pyplai-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user pyplai-mcp uvx -- pyplai-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "pyplai-mcp": {
          "command": "uvx",
          "args": [
            "pyplai-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About pyplAI

Language models are weak at searching a game tree, so they can explain a board well but pick poor moves. This server supplies the search: a model can play Tic-tac-toe, Ultimate tic-tac-toe or the hidden-stone game Phantom (4,4,4) against search-based opponents, or call the same algorithms as tools to rank its own legal moves with win rates.

The server runs over stdio and exposes tools for starting games, reading the board, playing moves, analysing positions and ending games. Illegal moves return readable errors listing the legal options, so the model can correct itself. Every analysis works on a copy of the game state, and Phantom uses sampled hidden positions rather than reading the real board.

It suits developers testing how much search helps a model, and people who want an AI opponent or analyst inside an MCP client such as Claude Desktop or Claude Code.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 7 tools changes data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_gamesName suggests: reads
Lists games, move notation, opponents and analysis algorithms.
get_rulesName suggests: reads
Returns the full rules of a game.
new_game
Starts a game with options for first player, opponent, thinking time or depth, seed and opening moves.
get_stateName suggests: reads
Returns the board as the player sees it, legal moves and history.
play_moveName suggests: changes
Plays the player's move and returns the opponent's reply.
analyze_positionName suggests: reads
Ranks legal moves using MCTS, minimax or information set MCTS.
end_game
Frees a game session.

What it does

Search-backed move analysis
Ranks every legal move with MCTS, minimax or information set MCTS, including visits and win rates.
Three board games
Supports Tic-tac-toe, Ultimate tic-tac-toe and imperfect-information Phantom (4,4,4).
Opponents of several strengths
Games can be set against MCTS, minimax, information set searches or a random player.
Hidden-information play
Phantom searches sample possible hidden stones, so the player never receives the opponent's concealed positions.
Structured tool outputs
Every tool returns structured output with a published schema, and invalid arguments are rejected with clear errors.
Bounded game sessions
Keeps at most 100 games and expires idle games after an hour.

Good for

  • Give a language model a strong opponent in board games to play against
  • Have an assistant analyse a board position and explain the best move
  • Benchmark how far search tools improve a small language model's play
  • Study information set search on a hidden-stone game

Pricing

Open source

Free and open source under the MIT licence.

pyplAI FAQ

How do I install pyplAI?

Run it with uvx from PyPI as pyplai-mcp, or add it to Claude Code with claude mcp add pyplai -- uvx pyplai-mcp. It also appears in the MCP Registry as io.github.plss12/pyplai-mcp.

Which games are supported?

Tic-tac-toe, Ultimate tic-tac-toe and Phantom (4,4,4), with MCTS, minimax, information set MCTS and random opponents depending on the game.

Does the server need an API key?

No environment variables are required by the registry entry.

Can pyplAI run over HTTP as well as stdio?

Yes, it can be started with the streamable-http transport on a chosen port, in addition to the default stdio mode.

Is pyplAI free?

Yes. pyplAI is open source, so you can use and self-host it for free.

How do I add pyplAI to Claude Code?

Run this command in your terminal: claude mcp add pyplai-mcp -- uvx pyplai-mcp

What are the best alternatives to pyplAI?

The closest alternatives to pyplAI are Paidia, Llmpvp, Agent Arcade MCP, Chess Sim and Arcade1v1.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers