parlayapi-mcp
# parlayapi-mcp
mcp-name: io.github.JacobiusMakes/parlayapi
MCP server for [ParlayAPI](https://parlay-api.com). Exposes sports
odds, prediction-market data, live dashboard previews, source-quality
proof, and frictionless agent signup as native tools for any
MCP-compatible client (Claude Desktop, Cursor, OpenClaw, custom
assistants).
## First connection
Use the public board to check whether it currently lists the sport your project needs. A hosted MCP client can connect to `https://parlay-api.com/mcp/http` using Streamable HTTP with authentication left empty. A local client can use the keyless configuration below.
For a first request, [check one sport on the public board](docs/first-board-check.md). The guide includes a runnable Python example and a prompt for your MCP client. Both use one public tool without an API key. To test how an assistant handles missing evidence before connecting a feed, [grade six sports data answers offline](docs/grade-odds-answers.md). For a team review, [run the sports data evidence workshop](examples/answer_checks/workshop/README.md) with a workflow, documentation or approval task.
If a sportsbook shows a recent poll, [check what that clock measures](docs/source-quality-inspector.md). Use MCP Inspector to capture a public source report and open it in the browser reader to compare poll and archive-write ages.
## Install in Claude Desktop
Open the [latest desktop release](https://github.com/JacobiusMakes/parlay-api-mcp/releases/latest)
and download its asset ending in `-directory.mcpb`. The release notes identify
the bundle version and validation performed. Open the downloaded file
(double-click, or drag it onto Claude Desktop). Claude
Desktop unpacks the bundle and runs the server with its managed uv
runtime, so no terminal or Python setup is needed.
Choose the 0.3.8 bundle to use the same server version as the pinned Python
install below. This version forwards an available account key on a requested
checkout. A keyless response can acknowledge an email request. Check your
inbox for delivery.
Leave the optional key field blank to try the board check. When you need account-backed data, set your key under Settings, Extensions, ParlayAPI.
The bundle source lives in [`mcpb/`](mcpb/). Rebuild it with
`npx @anthropic-ai/mcpb pack mcpb/`.
## Install (manual, any MCP client)
```bash
# Start the stdio server (normally launched by your MCP client):
uvx --from parlayapi-mcp==0.3.8 parlayapi-mcp
# Or install globally with pip:
pip install parlayapi-mcp==0.3.8
```
## Configure your MCP client
### Codex CLI
[Check the NBA board in one Codex session](docs/first-board-check.md#check-the-nba-board-in-codex-cli). Connect over HTTPS with just the public sports-board tool enabled for ParlayAPI. The guide includes the command, a first request and a dated result.
### Gemini CLI
Want to know how many NBA events the public board lists before you build an integration?
From a terminal with Gemini CLI installed, run:
```sh
gemini extensions install https://github.com/JacobiusMakes/parlayapi-gemini-extension
```
Start a new Gemini CLI session and enter `/parlay:board`. The command asks for one
keyless board lookup over HTTPS. A matching NBA row can report zero events. An
absent row leaves the count unknown. You can inspect individual events and
available prices in the [public odds preview](https://parlay-api.com/try?utm_source=github&utm_medium=repository&utm_campaign=mcp_setup&utm_content=gemini_board).
The [Gemini CLI extension](https://github.com/JacobiusMakes/parlayapi-gemini-extension) enables only `parlayapi_live_sports`. To remove it, run
`gemini extensions uninstall parlay-board`.
### VS Code and GitHub Copilot CLI
[Connect the public sports board in Copilot](docs/copilot-board.md). The setup enables one tool over HTTPS. It works without a ParlayAPI key or a local Python process.
### Claude Desktop and Cursor
In Cursor, [open the hosted ParlayAPI connection](https://cursor.com/install-mcp?name=parlayapi&config=eyJ1cmwiOiJodHRwczovL3BhcmxheS1hcGkuY29tL21jcC9odHRwIn0%3D). Review the server URL in Cursor and leave authentication empty for the public board. Ask it to call `parlayapi_live_sports` once and report the event count for `basketball_nba`. The [Cursor setup guide](docs/cursor-publishing.md#connect-to-the-hosted-board) includes the manual HTTPS configuration.
For local stdio, use the [keyless config file](claude_desktop_config.example.json) or add the server entry below to your existing configuration. Claude Desktop uses `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS and `%APPDATA%\Claude\claude_desktop_config.json` on Windows. In Cursor, edit `.cursor/mcp.json`. The [packaged Cursor plugin](docs/cursor-publishing.md) has its own release and setup instructions.
```json
{
"mcpServers": {
"parlayapi": {
"command": "uvx",
"args": ["--from", "parlayapi-mcp==0.3.8", "parlayapi-mcp"]
}
}
}
```
Reload your client. Ask it to call `parlayapi_live_sports` once, match the exact `basketball_nba` key and report its `event_count`. A row with zero events and a missing sport are different outcomes. [Run the same check from Python](docs/first-board-check.md).
For an account-backed request, pass your own `PARLAYAPI_KEY` through your client's private environment configuration. Keep credentials out of prompts and shared project files.
### OpenClaw
Register the same local server with the keyless command.
```bash
openclaw mcp set parlayapi '{"command":"uvx","args":["--from","parlayapi-mcp==0.3.8","parlayapi-mcp"]}'
```
## Run locally with Docker
Build the stdio container from this repository:
```bash
docker build -t parlayapi-mcp:local .
docker run --rm -i --read-only --cap-drop=ALL --security-opt=no-new-privileges parlayapi-mcp:local
```
The process waits for MCP messages on stdin. It does not open a web server or
make an API call just by starting. Connect it through an MCP client; do not use
`-t`, which would allocate a terminal instead of the MCP stdio transport.
For account tools, configure your own `PARLAYAPI_KEY` in your MCP client's
secret configuration and pass that environment variable into the container:
```bash
docker run --rm -i --read-only --cap-drop=ALL --security-opt=no-new-privileges -e PARLAYAPI_KEY parlayapi-mcp:local
```
No key is baked into the image. Each user should configure their own key and
keep account responses within their own client. This container is not a shared
community feed. The MIT software license grants no data distribution rights;
[applicable Terms](https://parlay-api.com/terms) and any written agreement govern
API data use. These container defaults do not amend existing agreements.
Public discovery tools need no key. Account tools use your allowance; check
[current plans and limits](https://parlay-api.com/pricing). The existing tool set
also includes account creation, checkout-link creation, login-link email and
saved-book preferences. Approve those actions explicitly in your MCP client.
Listing tools itself creates no account, sends no email and starts no checkout.
For private security reports, email support@parlay-api.com. Do not put API keys
or account responses in public issues.
## Tools exposed
| Tool | Auth | Purpose |
|---|---|---|
| `parlayapi_signup` | none | Begin account signup with the user’s authorization and follow the response |
| `parlayapi_checkout_link` | none | Request an owner-authenticated checkout link or begin the email handoff |
| `parlayapi_magic_link` | none | Email a passwordless login link |
| `parlayapi_get_pricing` | none | Current public pricing and credit tiers |
| `parlayapi_live_sports` | none | Sport keys and event counts on the public board |
| `parlayapi_live_search` | none | Search live teams, players, and sport keys |
| `parlayapi_live_command_center` | none | Public best-line preview from `/live` |
| `parlayapi_source_quality` | none | Public source freshness and quality metadata |
| `parlayapi_book_coverage` | none | Public per-book five-gate coverage proof |
| `parlayapi_list_sports` | key | All available sport keys |
| `parlayapi_get_odds` | key | Game-level odds (h2h, spreads, totals) for a sport |
| `parlayapi_get_props` | key | Player prop odds for a sport |
| `parlayapi_best_line` | key | Best price per outcome across bookmakers |
| `parlayapi_verdict` | key | One-call "should I bet this?": fair price vs market, best book you can bet at, plain-English BET/PASS call |
| `parlayapi_set_bettable_books` | key | Remember the user's region/books so verdicts skip books they can't use |
| `parlayapi_parlay_verdict` | key | Grade a multi-leg parlay: combined fair price, best book to place it, EV, weakest leg, correlation warnings, payout |
| `parlayapi_best_bets` | key | Ranked +EV plays for a sport, scoped to books you can bet at, plus edge alerts |
| `parlayapi_account_info` | key | Tier, credits remaining, billing period |
| `parlayapi_find_arbitrage` | key | Cross-book arbitrage candidates, 3-way (home/draw/away) markets included |
| `parlayapi_find_ev` | key | Positive-EV bets vs a sharp book's no-vig fair line |
| `parlayapi_consensus` | key | Consensus (average) odds across all bookmakers per market |
| `parlayapi_find_middles` | key | Cross-book middle opportunities |
## Resources
`parlayapi://docs/quickstart` - Python and JS code samples.
## Local development
```bash
git clone https://github.com/JacobiusMakes/parlay-api-mcp
cd parlay-api-mcp
pip install -e .
# Run against the local API instead of production:
PARLAYAPI_BASE_URL=http://127.0.0.1:8080 \
PARLAYAPI_KEY=your_local_test_key \
parlayapi-mcp
```
## Privacy Policy
This extension connects to ParlayAPI. See the [ParlayAPI Privacy Policy](https://parlay-api.com/privacy).
## License
MIT
---
Part of the [ParlayAPI](https://parlay-api.com) ecosystem: a real-time sports odds API with a free tier of 1,000 credits per month, no card required. Explore all the tools at [github.com/JacobiusMakes](https://github.com/JacobiusMakes).
TDQS
Scored across 22 tools
Most tools have clearly distinct purposes, but the betting analytics cluster (best_line, find_ev, best_bets, verdict, parlay_verdict, consensus) has overlapping goals that could confuse selection despite descriptions. The descriptions do a good job of distinguishing single-bet vs discovery vs parlay, so only minor ambiguity remains.
All names share a consistent parlayapi_ prefix and snake_case, but the second part mixes verb_noun (get_odds, find_ev, list_sports) with noun phrases (best_line, source_quality, account_info) and bare verbs (signup). This is readable but not a single predictable pattern.
22 tools is on the heavy side for the domain, with several analytics tools that overlap in function. The set is comprehensive but could be trimmed; it sits in the borderline 16-25 range.
The surface covers account lifecycle, odds retrieval, live discovery, and a rich set of betting analytics (EV, arbitrage, middles, verdicts). Minor gaps exist, such as no explicit historical odds or event detail endpoint, but core workflows are fully supported.