mcp
Verified Safeby balldontlie-api
Overview
This server acts as a Model Context Protocol (MCP) adapter, providing AI assistants with structured access to comprehensive sports data from the BALLDONTLIE API for various major sports.
Installation
npm startEnvironment Variables
- PORT
- BACKEND_API_URL
- API_TIMEOUT
- LOG_LEVEL
- NODE_ENV
- ENABLE_DEBUG
- ENABLE_TRACING
- DD_AGENT_HOST
- DD_PROFILING_ENABLED
- SERVICE_VERSION
Security Notes
The server correctly forwards API keys via the Authorization header and explicitly checks for its presence. Input parameters for API requests are encoded using `buildQueryString`, mitigating URL injection risks. Error handling intercepts and transforms upstream API errors, preventing raw backend error leakage. No hardcoded secrets were found, as configuration relies on environment variables. While `zod` schemas are defined for tools, explicit validation within the `tools/call` handler before arguments are processed is not directly visible in the provided code snippets, relying on the client or upstream API for validation. Overall, security practices are good for an API proxy.