Skip to main content

MCP server for ParlayAPI: sports odds + prediction-market data + frictionless agent signup

Project description

parlayapi-mcp

MCP server for ParlayAPI. Exposes sports odds, prediction-market data, and frictionless agent signup as native tools for any MCP-compatible client (Claude Desktop, Cursor, custom assistants).

Why use it

Without MCP, an agent that wants to use ParlayAPI has to:

  • Tell the user to go sign up via a browser
  • Wait for them to copy-paste the key
  • Construct HTTP requests by hand

With this MCP server, the agent just calls parlayapi_signup(email) and gets back a working API key, claim URL for the dashboard, and a Stripe upgrade URL the user can click. Then it calls parlayapi_get_odds(), parlayapi_get_props(), etc. directly.

Install

# Quickest path, no venv:
uvx parlayapi-mcp --help

# Or install globally with pip:
pip install parlayapi-mcp

Configure your MCP client

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (%APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "parlayapi": {
      "command": "uvx",
      "args": ["parlayapi-mcp"],
      "env": {
        "PARLAYAPI_KEY": "your_key_here"
      }
    }
  }
}

If you don't have a key yet, omit env entirely. The signup tool will work without a key; everything else will return an error telling you to set one. After signup, paste your new key into env and restart Claude Desktop.

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "parlayapi": {
      "command": "uvx",
      "args": ["parlayapi-mcp"],
      "env": { "PARLAYAPI_KEY": "your_key_here" }
    }
  }
}

Tools exposed

Tool Auth Purpose
parlayapi_signup none Create a free-tier account, return API key + claim URL + upgrade URL
parlayapi_checkout_link none Stripe upgrade URL for any tier
parlayapi_magic_link none Email a passwordless login link
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_account_info key Tier, credits remaining, billing period

Resources

parlayapi://docs/quickstart — Python and JS code samples.

Local development

git clone https://github.com/JacobiusMakes/ParlayAPI
cd ParlayAPI/mcp-server
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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parlayapi_mcp-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parlayapi_mcp-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file parlayapi_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: parlayapi_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for parlayapi_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71989f75ceb2012cb8b8bbd7952a1943289ff07725222685cb13473d433d98f4
MD5 18b979d3bc5ca628f27e9b9abf52eea6
BLAKE2b-256 9348d23de29721c4e16553aee2798466d106bae8d9d5cc7d14b8aaee28c904f9

See more details on using hashes here.

File details

Details for the file parlayapi_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: parlayapi_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for parlayapi_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42c5c9f9e78c561edcc2dd07c13a368b79696f401d530a69841ccdd59f47ee37
MD5 c5fedfe9ee0795ee96da80acbf3f2842
BLAKE2b-256 8cf875473592b0e4433225cbf658a534742d1ba8186c4347103a99c4f1a57a02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page