ParlayAPI
来自45+家体育博彩公司和90+项体育赛事的体育博彩赔率、球员道具及预测市场数据,提供判定、串关评级、套利、+EV、共识和中间值工具;22个工具中有9个可通过uvx parlayapi-mcp免密钥运行(创始人首次提交)。
文档
parlayapi-mcp
mcp-name: io.github.JacobiusMakes/parlayapi
MCP server for ParlayAPI. 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. 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. For a team review, run the sports data evidence workshop with a workflow, documentation or approval task.
Install in Claude Desktop
Open the latest desktop release
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/. Rebuild it with
npx @anthropic-ai/mcpb pack mcpb/.
Install (manual, any MCP client)
# 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
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:
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.
The Gemini CLI 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. The setup enables one tool over HTTPS. It works without a ParlayAPI key or a local Python process.
Claude Desktop and Cursor
Use the keyless config file 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 has its own release and setup instructions.
{
"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.
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.
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:
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:
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 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. 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
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.
License
MIT
Part of the ParlayAPI 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.