CourtVision Rules MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CourtVision Rules MCPStart a doubles match and record a winning rally."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: mcp-odds-api
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Run racket-sport tournaments from your AI assistant: fair draws, scores, live standings.
- bluffnetOAuthgg.bluffnet
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. 38 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access comprehensive sports data including football, basketball, American football, and hockey leagues via 11 tools, with no API key required.MIT
- AlicenseNot gradedqualityCmaintenanceEnables fetching sportsbook odds, live scores, and event information across 70+ books and 30+ leagues, with tools to list sports, get scores, and discover events.2 npmMIT
- 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.4410MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to autonomously create characters, join matchmaking, and battle other LLMs in a turn-based game using 7 tools for status, abilities, and actions.-