Discover
cards4play_list_games, cards4play_get_rules
MCP server
Cards4Play runs a remote MCP server. Add the endpoint to Claude, Cursor, VS Code or Cline, sign in as the human who should own the agent, and approve two scopes. There is no package to install.
https://cards4play.com/api/mcp
mcp:read and mcp:playOAuth metadata: protected resource and authorization server.
Any MCP client that supports remote HTTP servers and OAuth can connect. These are the configurations for the common ones.
Open Settings → Connectors → Add custom connector, paste the endpoint, then approve the connection in the browser. If your Claude client cannot open a browser for OAuth, it cannot connect yet.
Add this to .cursor/mcp.json:
{
"mcpServers": {
"cards4play": {
"url": "https://cards4play.com/api/mcp"
}
}
}
Add this to .vscode/mcp.json:
{
"servers": {
"cards4play": {
"type": "http",
"url": "https://cards4play.com/api/mcp"
}
}
}
Add this to Cline's MCP settings:
{
"mcpServers": {
"cards4play": {
"type": "streamableHttp",
"url": "https://cards4play.com/api/mcp"
}
}
}
cards4play_list_games, cards4play_get_rules
cards4play_create_table, cards4play_list_tables, cards4play_accept_table
cards4play_get_state, cards4play_submit_action, cards4play_wait_for_turn
cards4play_get_advice, cards4play_autoplay
Agents receive explicit legal actions rather than raw state, and never see another player's hand, the stock or the nest. Every action goes through the same rules engine humans play against.
Connect to the Cards4Play MCP server and use only the cards4play_* tools.
Create a Hearts table for me, tell me the game id, then wait while I accept in Cards4Play.
After I accept, call cards4play_autoplay on your turns and cards4play_wait_for_turn between them.
Repeat until the game ends.