BALLDONTLIE Sports MCP Server
Supports DataDog APM tracing and profiling for monitoring and observability of the MCP server performance
Provides community support through a Discord server for users of the BALLDONTLIE API and MCP server
Enables retrieval of MLB team and player information, game data, season statistics, standings, and injury reports through the BALLDONTLIE API
Provides comprehensive access to NBA data including teams, players, games, statistics, standings, injuries, box scores, and betting odds through the BALLDONTLIE API
Offers access to NHL teams, players, games, season statistics, standings, and box scores through the BALLDONTLIE API
Distributes the MCP server package through npm for easy installation and dependency management
Built with TypeScript providing full type safety and IntelliSense support for all sports data endpoints
Click on "Install 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., "@BALLDONTLIE Sports MCP Servershow me LeBron James' season stats"
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.
BALLDONTLIE MCP Server
Remote Model Context Protocol server for the BALLDONTLIE sports API. The tool catalog is generated from the vendored public OpenAPI specifications so endpoint methods, paths, parameters, and constraints stay aligned with the API source.
The current generated surface contains 505 tools from 27 specifications: Account, ATP, Bundesliga, college baseball, Counter-Strike, Dota 2, EPL, F1, FIFA World Cup, La Liga, Ligue 1, League of Legends, MLB, MLS, MMA, NBA, NCAAB, NCAAF, NCAAW, NFL, NHL, PGA, Serie A, UCL, Valorant, WNBA, and WTA. /health reports the authoritative runtime count and deployed revision.
Authentication
Every MCP request requires a BALLDONTLIE API key:
Authorization: Bearer YOUR_API_KEYInitialization, tool listing, authenticated documentation, and API operations that are public outside the MCP validate the supplied key before proceeding. Other tool calls forward only the Authorization header to the corresponding authenticated BALLDONTLIE endpoint.
Public service metadata is limited to /health and /.well-known/mcp-config. /api/docs requires a valid API key.
Related MCP server: NHL MCP Server
Sensitive Account tools
The complete Account API surface is registered, but the following tools are disabled by default:
account_signupaccount_rotate_api_keyaccount_change_subscriptionaccount_cancel_subscriptionaccount_create_checkoutaccount_get_billing_portal
They can create credentials, change billing state, or return sensitive hosted billing-session URLs. A deployment must set ENABLE_SENSITIVE_ACCOUNT_TOOLS=true exactly to enable them. Enabling the flag means those values may intentionally enter the authenticated caller's MCP transcript. Other spellings, casing, or whitespace fail closed.
account_get_me remains available but always omits the api_key response field.
MCP request example
curl https://mcp.balldontlie.io/mcp \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "nba_get_teams",
"arguments": {}
}
}'Use tools/list to retrieve the current catalog, input schemas, and MCP read-only/destructive annotations.
Development
npm ci
npm run check:openapi
npm test
npm run buildThe tests independently compare every generated operation and input against all vendored specifications. They also cover legacy tool-name compatibility, exact array query serialization, path/body dispatch, credential-safe errors and logs, API-key validation limits, and Account safety controls. Tests never call a live Account mutation.
Updating from the API source
Copy
balldontlie-2/marketing/public/openapi.ymltoopenapi.yml.Copy every
balldontlie-2/marketing/public/openapi/*.ymlfile intoopenapi/.Update
scripts/openapi-source.jsonto the source API commit.Run
npm run generate:openapi.Run
npm testandnpm run build.
Generated src/tools/*.ts, src/schemas/*.ts, and registry files are checked in and must not be edited manually. Runtime does not parse YAML and has no production YAML-parser dependency.
Configuration
Variable | Default | Purpose |
|
| HTTP port |
|
| BALLDONTLIE API base URL |
|
| Upstream timeout in milliseconds |
|
| Logs only method, query-free path, and query-field count |
|
| Enables sensitive Account tools only when exactly |
|
| Validated trusted proxy hop count; only |
|
| Enables Datadog tracing when an agent host is configured |
Authorization values, query values, request bodies, raw upstream errors, API-key responses, and hosted billing-session URLs are excluded from server logs and tracing tags.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides comprehensive access to ESPN's sports APIs for live scores, team information, news, and statistics across NFL, NBA, MLB, NHL, college sports, and major soccer leagues with advanced filtering and real-time updates.19
- AlicenseNot gradedqualityDmaintenanceProvides access to live NHL game data, team and player statistics, standings, schedules, playoff information, and head-to-head comparisons through natural language queries using official NHL APIs.MIT
- AlicenseAqualityDmaintenanceEnables access to live ESPN sports data for NFL, NHL, and NBA leagues, including standings, scores, schedules, team info, and playoffs through natural language queries.6191MIT
- 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
Related MCP Connectors
Live odds, cross-book +EV and graded player-prop results across 24 books. Hosted endpoint included.
Schedules, scores, odds, splits & explainable AI bet confidence — 8+ sports, free instant key.
Sports MCP — wraps TheSportsDB API (free tier, test key 3, no auth required)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/balldontlie-api/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server