CourtVision Rules MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CourtVision Rules MCP
A Model Context Protocol server that turns the official pickleball scoring rules into callable tools, so an LLM tracks a live match without ever improvising the rules.
Built as part of CourtVision AI — an AI pickleball companion — this is the protocol-layer piece: the small, provably correct service the model leans on so the conversation stays accurate.
Preview
The same seven rallies, scored four ways — doubles/singles × side-out/rally. One engine, all correct, all unit-tested.

Related MCP server: livetennisapi-mcp
Why it exists
Pickleball's side-out scoring is exactly the kind of thing language models get almost right. The one-server rule at the start, the server-1-to-server-2 rotation, win-by-two — a model that holds these in its head drifts after a few turns. The fix is not a better prompt. It is moving the part that must be exact out of the model and into a tool.
That is the entire MCP thesis in one server, and it doubles as a design rule this product was built on: accuracy is the brand. A wrong call in front of four players ends the app's life with that crew. So the engine never guesses — ambiguous input is rejected with an actionable message rather than resolved silently.
What it does
Six tools, exposed over MCP:
Tool | What it does |
| Start a doubles match; returns a |
| Apply a rally result ( |
| Record a fault by either team and apply the right transition |
| Return the current state and three-number score call |
| Revert the last rally or fault |
| Plain-language summary of common rules topics |
State is held server-side, keyed by match_id, so a client runs a whole match
across many turns without re-sending the board.
Architecture
The rules logic and the transport are deliberately separate:
pickleball_engine.py pure rules engine, zero dependencies, unit-tested
(doubles + singles, side-out + rally scoring)
server.py thin MCP wrapper: input validation + state registry
tests/ the rules engine's safety net (26 cases)
evaluation/ MCP eval questions an agent must answer using the toolsThe engine is the load-bearing part, so it lives on its own where it can be tested in isolation and reused by any surface — the MCP server today, the Match Mode web app and native clients later.
Run it
python -m venv .venv && source .venv/bin/activate
pip install "mcp[cli]"
# run the server (stdio transport)
python server.py
# or inspect it interactively
npx @modelcontextprotocol/inspector python server.pyUse it from Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"courtvision-rules": {
"command": "python",
"args": ["/absolute/path/to/courtvision-rules-mcp/server.py"]
}
}
}Then ask Claude: "Start a pickleball match between the Reds and the Blues. The
Reds win the first rally, then lose the next one — what's the score?" It will
call the tools and answer 0 1 1, correctly, every time.
Tests
pip install pytest
python -m pytest tests/ -qThe tricky cases are pinned: the one-server match start, the server-1 → server-2 → side-out rotation, win-by-two, and that only the serving team can score.
Notes
Rules summaries defer to the current USA Pickleball Official Rulebook — this server computes scoring and explains the common cases; it does not reproduce the rulebook.
Formats
Set match_format and scoring when you start a match:
|
| Call | Rule |
|
|
| Traditional two-server side-out with the one-server opening (the default). |
|
|
| One server per side; every lost rally is an immediate side-out. Serve court follows score parity. |
|
|
| A point on every rally; lose your serve and the other side scores and takes serve. |
|
|
| Same rally logic, one server per side. |
Doubles side-out remains the default, so existing callers are unaffected. Rally
games are commonly played to 15 or 21, win by 2 — pass target/win_by to set them.
License
MIT — see LICENSE.
Run as a service (Docker)
docker build -t courtvision-rules-mcp .
docker run -i --rm courtvision-rules-mcp # stdio transportThe server speaks MCP over stdio by default (what Claude Desktop and local MCP
clients use). For a hosted deployment, set MCP_TRANSPORT=sse to serve over
HTTP/SSE. Console script after pip install -e .: courtvision-rules-mcp.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live Texas Hold'em for AI agents. The tools teach the rules; the bluffing is up to your model.
Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.
Deterministic AI agent microtools, no accounts/API keys. fetch_extract: 98% token cut. 47 tools.
13 free utility tools for AI agents: web text, markdown, hashing, IDs, dates, units, JSON.
Related MCP Servers
- AlicenseAqualityBmaintenance48 AI-callable tools for FIFA World Cup 2026 football, Formula 1, and IPL cricket — Monte-Carlo bracket simulations, F1 pit-strategy modeling, and a Dream11 ILP optimizer, plus live odds and value-bet detection. Free, open-source, and works with any MCP client via uvx.4624 PyPI10MIT
- AlicenseAqualityBmaintenanceReal-time tennis data for ATP, WTA, Challenger and ITF: live scores, player rankings, match-winner odds, and model win-probability. 12 read-only tools; a tier-gated endpoint returns a plain-English explanation of which plan it needs rather than a bare 403. Requires a paid API key.25224 npm135MIT
- AlicenseAqualityDmaintenanceEnables MCP-compatible LLM clients to access live NBA data, including stats, standings, rosters, scores, and box scores via callable tools.9MIT
- AlicenseAqualityBmaintenanceEnables AI agents to create and update live two-team scoreboards, keep score, and share spectator links after securely connecting a user's account.11MIT