# Cards4Play

> Cards4Play is an MCP server for games and play. Let your AI agent take a seat at a Cards4Play card table. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** Web, API
- **Website:** https://cards4play.com/agent-play/
- **Repository:** https://github.com/mattdowell/cards4play-mcp
- **MCP Registry name:** com.cards4play/cards4play
- **Categories:** [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-23

## About

Cards4Play lets a user's own AI agent join a real game of Hearts, Spades, Oh Hell, Whist, Euchre, Rook, Cribbage or Bridge. The agent gets its own seat with an AI badge and sees only its own hand and the public table state, never yours.

Tables are invite-only. Four-player games add two bots, and Cribbage is a heads-up game against the agent. Nothing starts until you accept the invitation in Cards4Play. The agent then waits for its turn, receives its legal actions and submits one, or uses an autoplay tool that plays the server's expert move.

Connection is by OAuth only, with no API keys to paste. You sign in to your Cards4Play account and approve the mcp:read and mcp:play scopes, and you can rename the agent in your profile.

## Features

- **Eight card games:** Hearts, Spades, Oh Hell, Whist, Euchre, Rook, Bridge and Cribbage.
- **Own seat for the agent:** The agent plays under its own name with an AI badge.
- **Hidden hands stay hidden:** The agent sees only its own cards and public state.
- **Human-paced turns:** The agent waits for its turn so you can play at your own speed.
- **OAuth sign-in:** No API keys; you approve the connection from your account.
- **Ready-made prompt:** A copy-and-paste prompt per game tells the agent how to create and play a table.

## Good for

- Play a casual game of Spades with your AI agent and two bots
- Play heads-up Cribbage against an agent
- Test how an agent handles turn-based games with legal-action lists
- Practice a trick-taking game with an AI partner

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http cards4play https://cards4play.com/api/mcp
```

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

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "type": "http",
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://cards4play.com/api/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "type": "http",
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://cards4play.com/api/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add cards4play --url https://cards4play.com/api/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.cards4play]
url = "https://cards4play.com/api/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "httpUrl": "https://cards4play.com/api/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http cards4play https://cards4play.com/api/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "serverUrl": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp",
      "transport": "http"
    }
  }
}
```

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

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "type": "streamableHttp",
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "cards4play": {
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://cards4play.com/api/mcp
```

Enter a Name (for example "Cards4Play"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "cards4play": {
      "type": "http",
      "url": "https://cards4play.com/api/mcp"
    }
  }
}
```

## Tools

The server marks 4 of 10 tools as able to change data. From the server's own tool labels and tool names; not verified by us.

- `cards4play_list_games` (says read-only): List the games available to a Cards4Play agent.
- `cards4play_get_rules` (says read-only): Read a concise rules description for a supported game and rule set.
- `cards4play_create_table` (says it can change data): Create an invite-only table with the agent, its human owner, and the game's bots.
- `cards4play_list_tables` (says read-only): List the agent's current and completed tables.
- `cards4play_get_state` (says read-only): Read the full agent-safe snapshot, stateVersion, legalActions, and expert advice.
- `cards4play_get_advice` (says read-only): Read the expert strategy's recommended action for the agent's current turn.
- `cards4play_autoplay` (says it can change data): Play one agent turn using the expert strategy and return the new state.
- `cards4play_accept_table` (says it can change data): Accept a Cards4Play invitation to a table.
- `cards4play_submit_action` (says it can change data): Submit exactly one actionId from the current legalActions.
- `cards4play_wait_for_turn` (says read-only): Wait up to 25 seconds for the agent's next turn or a table change.

## FAQ

### Do I need an account?

Yes. You need a Cards4Play account and an MCP client that supports remote OAuth.

### Can the agent see my cards?

No. It sees only its own hand and the public table state.

### Which games are supported?

Hearts, Spades, Oh Hell, Whist, Euchre, Rook, Cribbage and Bridge.

### Does the game start automatically?

No. The table is invite-only and starts after you accept the invitation.

### How do I add Cards4Play to Claude Code?

Run this command in your terminal: claude mcp add --transport http cards4play https://cards4play.com/api/mcp

### What are the best alternatives to Cards4Play?

The closest alternatives to Cards4Play are Break Room, Playtable, Bot Arena, AI Chess Arena and The Clubhouse.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Break Room](https://ai-powered.com/mcp/break-room): Break Room is a freemium MCP server for games and play.
- [Playtable](https://ai-powered.com/mcp/playtable): Playtable is a free MCP server for games and play.
- [Bot Arena](https://ai-powered.com/mcp/bot-arena): Bot Arena is an open-source MCP server for games and play.
- [AI Chess Arena](https://ai-powered.com/mcp/ai-chess-arena): AI Chess Arena is an open-source MCP server for games and play.
- [The Clubhouse](https://ai-powered.com/mcp/the-clubhouse): The Clubhouse is a paid MCP server for games and play.
- [The Pit](https://ai-powered.com/mcp/the-pit): The Pit is a free MCP server for games and play.
- [Chesswithclaw](https://ai-powered.com/mcp/chesswithclaw): Chesswithclaw is a free MCP server for games and play.
- [Bluffo — the bluffing game for AI agents](https://ai-powered.com/mcp/bluffo-the-bluffing-game-for-ai-agents): Bluffo — the bluffing game for AI agents is a free MCP server for games and play.

---
Source: https://ai-powered.com/mcp/cards4play
