@sportmicro/sportmicro-mcp-server
v0.1.0
Published
Official Model Context Protocol (MCP) server for Sportmicro APIs
Maintainers
Readme
@sportmicro/sportmicro-mcp-server
Official Model Context Protocol server for Sportmicro APIs.
This package exposes a local stdio MCP server so AI tools can call live Sportmicro endpoints directly instead of only reading docs and generating code. It is designed for Claude Code, Claude Desktop, Cursor, and other MCP-compatible clients.
What it exposes
Tools:
list_supported_sportsget_server_overviewget_sport_docslist_sport_endpointscall_sport_endpointget_countriesget_leaguesget_tournaments_by_leagueget_seasons_by_leagueget_live_matchesget_matchget_matches_by_dateget_matches_by_date_leagueget_standingsget_teams_by_leagueget_teams_by_seasonget_players_by_teamget_match_related_data
Prompts:
daily_scheduleleague_overviewmatch_previewteam_overviewintegration_brief
Resources:
sportmicro://documentationsportmicro://llmssportmicro://llms-fullsportmicro://endpoint-summarysportmicro://endpoint-indexsportmicro://endpoint-index-jsonsportmicro://sport/{sport}/endpointssportmicro://openapi/{sport}
Scope
The server is deliberately split into two layers:
- Curated high-traffic tools for common workflows such as live matches, standings, teams, players, leagues, seasons, and match detail views.
- A validated generic endpoint tool,
call_sport_endpoint, for the broader Sportmicro API surface. It checks the route against the published endpoint catalog before calling it.
That keeps the MCP surface compact while still letting clients reach the full documented API.
Environment variables
Required:
SPORTMICRO_API_KEY=your_api_keyOptional:
SPORTMICRO_DOCS_BASE_URL=https://docs.sportmicro.com
SPORTMICRO_API_SCHEME=https
SPORTMICRO_API_DOMAIN_SUFFIX=sportmicro.com
SPORTMICRO_HTTP_TIMEOUT_SECONDS=30
SPORTMICRO_DEBUG_URLS=1Development
npm install
npm run build
npm run devRun the compiled server directly:
node dist/index.jsRun the source version during development:
npx tsx src/index.tsLocal MCP setup
Claude Code
Use the local repo before publishing:
claude mcp add sportmicro \
--env SPORTMICRO_API_KEY="your_api_key" \
-- node /absolute/path/to/sportmicro-mcp-server/dist/index.jsOnce the package is published to npm, the install command becomes:
claude mcp add sportmicro \
--env SPORTMICRO_API_KEY="your_api_key" \
-- npx -y @sportmicro/sportmicro-mcp-serverClaude Desktop
Add this to your MCP config:
{
"mcpServers": {
"sportmicro": {
"command": "node",
"args": ["/absolute/path/to/sportmicro-mcp-server/dist/index.js"],
"env": {
"SPORTMICRO_API_KEY": "your_api_key"
}
}
}
}After npm publish you can swap command and args to:
{
"mcpServers": {
"sportmicro": {
"command": "npx",
"args": ["-y", "@sportmicro/sportmicro-mcp-server"],
"env": {
"SPORTMICRO_API_KEY": "your_api_key"
}
}
}
}Cursor
Either add a global MCP server in Cursor settings or use .cursor/mcp.json in a project:
{
"mcpServers": {
"sportmicro": {
"command": "node",
"args": ["/absolute/path/to/sportmicro-mcp-server/dist/index.js"],
"env": {
"SPORTMICRO_API_KEY": "your_api_key"
}
}
}
}After publish, use:
{
"mcpServers": {
"sportmicro": {
"command": "npx",
"args": ["-y", "@sportmicro/sportmicro-mcp-server"],
"env": {
"SPORTMICRO_API_KEY": "your_api_key"
}
}
}
}Example prompts
List the supported Sportmicro sportsShow me live football matches from SportmicroGet basketball standings for league 1748 and season 4176List the documented football endpoints that mention matchesCall the /moneyline endpoint for hockey with query_json {"match_id":"eq.12345","limit":10}Run the integration_brief prompt for football and a live scores dashboard
Publish checklist
- Create the public repo remote and connect it to this local Git repo.
- Confirm the npm package name
@sportmicro/sportmicro-mcp-serveris available. - Set any final repository metadata in
package.jsonif you want npm to show source links. - Run
npm run build. - Run
npm pack --dry-run. - Publish with
npm publish --access public. - Update the public docs so the MCP setup page can switch from availability-only language to real install instructions.
