Skip to main content
Glama
Sports Data MCP Server

Sports Data MCP Server

by hagifagi234
README.md
<!-- campaign-validation-warning:start -->
> **Validation warning:** Automated build or test validation did not pass before publication. This project may not work as intended; review and fix it before relying on it. Any claims below that it works or its tests pass may be outdated.
<!-- campaign-validation-warning:end -->

# Sports Data MCP Server with Sportmicro API\n\n## Overview\nOpen-source sports data MCP server powered by the [Sportmicro](https://sportmicro.com) API. Explore multi-sport data through a practical developer-focused example.\n\n## Project Goal\nBuild a clean, production-style sports data MCP server that demonstrates how developers can use Sportmicro sports data in real applications.\n\n## Features\n- Fetch data from Sportmicro\n- Responsive developer-friendly interface\n- Filtering and search where applicable\n- Loading and empty states\n- API error handling\n- Environment-based configuration\n- Reusable data access layer\n- Typed API client\n- Modular service architecture\n- Developer documentation\n\n## Technical Requirements\n- Use a dedicated Sportmicro API client\n- Use `SPORTMICRO_API_KEY` environment variable\n- Never hardcode API keys\n- Implement graceful API error handling\n- Keep the project easy to understand and extend\n- The project must run or build successfully\n- Use TypeScript types for API responses\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/<publisher>/sports-data-sportmicro-mcp-server.git\n   cd sports-data-sportmicro-mcp-server\n   ```\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Create a `.env` file based on `.env.example` and set your `SPORTMICRO_API_KEY`.\n4. Run the development server:\n   ```bash\n   npm run dev\n   ```\n\n## Environment Variables\n- `SPORTMICRO_API_KEY`: Your API key for accessing Sportmicro data.\n\n## API Usage\nThis server will interact with various endpoints provided by the Sportmicro API. Here are a few example usages:\n- Fetch player projections: `GET /player-projections?player_id=eq.{player_id}`\n- Get teams by league: `GET /teams-by-league?league_id=eq.{league_id}`\n\n## Project Structure\n- `src/`: Source code for the server.\n- `tests/`: Directory containing tests for the application.\n- `README.md`: Project documentation.\n- `.env.example`: Example environment variables.\n- `package.json`: Project dependencies and scripts.\n- `LICENSE`: License information.\n\n## Contributing\nIf you'd like to contribute to the project, please fork the repository and submit a pull request.\n\n## License\nThis project is licensed under the MIT License.