Skip to main content
Glama
Fantasy Football Data MCP Server

Fantasy Football Data MCP Server

by bryan3eng

Fantasy Football Data MCP Server with Sportmicro API

A read-only Model Context Protocol server for fantasy-football research that exposes grounded football data from Sportmicro. It is designed for developers who want fantasy football MCP server workflows backed by documented Sportmicro endpoints instead of invented data.

The server uses the official @modelcontextprotocol/sdk with stdio transport and a typed Sportmicro football client. It validates inputs, keeps the API narrow, and returns source-shaped data for supported player, team, fixture, and statistics queries.

Sportmicro documentation used by this project: https://docs.sportmicro.com/

Features

  • Fantasy-data research MCP tools

  • Player, team, and fixture queries when documented

  • Typed source-data responses

  • Clear scope boundaries

  • Input validation

  • Read-only operation

Related MCP server: sleeper-mcp

What this server does

This project focuses on a small set of documented Sportmicro football resources:

  • players

  • teams

  • matches

  • players-statistics

  • player-projections

  • player-projections-week

  • player-projections-season

The server intentionally does not claim fantasy scoring, transfers, or broader football workflows unless they are directly backed by documented Sportmicro endpoints.

Prerequisites

  • Node.js 18 or newer

  • An API key from Sportmicro

Installation

npm install

Environment variables

Create a local .env file or export the environment variable directly:

SPORTMICRO_API_KEY=your_key_here

A template is included in .env.example.

Run

Build the project and start the MCP server via stdio:

npm run build
node dist/index.js

The process is intended to be launched by an MCP client that connects over stdio.

Available MCP tools

This repository exposes narrow read-only tools for Sportmicro football data:

  • sportmicro_get_players

  • sportmicro_get_teams

  • sportmicro_get_matches

  • sportmicro_get_player_statistics

  • sportmicro_get_player_projections

  • sportmicro_get_player_projections_week

  • sportmicro_get_player_projections_season

Each tool validates its input and returns structured results with a meta block that describes the query and record count.

Example usage

A client can request players for a team like this:

{
  "team_id": "123",
  "limit": 10
}

Example response shape:

{
  "items": [],
  "meta": {
    "resource": "players",
    "query": {
      "team_id": "123",
      "limit": 10
    },
    "count": 0,
    "empty": true
  }
}

Project structure

src/
  index.ts                MCP server entrypoint
  config.ts               Environment validation
  sportmicro/
    client.ts             Typed Sportmicro football client
    schemas.ts            Runtime validation and request schemas
    types.ts              Shared TypeScript types
  tools/
    registry.ts           MCP tool registration and handlers
    resource-format.ts    Normalized response helpers
  test/
    sportmicro-client.test.ts
    tool-contracts.test.ts

Build

npm run build

Test

npm test

Tests use mocked Sportmicro responses and verify the tool contracts without making live API calls.

API usage notes

Supported requests are limited to the documented Sportmicro football endpoints listed above. This repository does not invent endpoints or fields. If Sportmicro returns empty, partial, or unavailable data, the server preserves that state so clients can handle it explicitly.

Known limitations

  • Only the documented read-only football endpoints are supported.

  • The server does not implement fantasy scoring, transfers, or betting advice.

  • Live coverage is limited to the endpoints documented by Sportmicro.

  • Response fields are normalized only enough to provide safe, typed access without claiming undocumented semantics.

License

MIT

Available Tools

7 tools
sportmicro_get_matchesB

Get documented Sportmicro football matches with optional filters.

sportmicro_get_player_projectionsC

Get documented Sportmicro player projections.

sportmicro_get_player_projections_seasonC

Get documented Sportmicro season player projections.

sportmicro_get_player_projections_weekB

Get documented Sportmicro weekly player projections.

sportmicro_get_playersC

Get documented Sportmicro football players with optional filters.

sportmicro_get_player_statisticsC

Get documented Sportmicro player statistics.

sportmicro_get_teamsC

Get documented Sportmicro football teams with optional filters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 7 tools

    Disambiguation2/5

    Three projection tools (player_projections, player_projections_week, player_projections_season) overlap heavily and their boundaries are unclear from descriptions. No explanation of how a general projection tool differs from the week/season variants.

    Naming Consistency5/5

    All tools follow a consistent sportmicro_get_<resource> pattern with snake_case, which is predictable and readable.

    Tool Count5/5

    Seven tools is well-scoped for a data retrieval server, covering core entities without bloat.

    Completeness2/5

    Only read operations are present; no create/update/delete despite 'Data MCP Server' implying management. Also missing key fantasy entities like leagues, drafts, and matchups.

    Maintenance

    ActivitySlowing
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables read-only access to Sleeper fantasy sports data, including users, leagues, rosters, matchups, transactions, drafts, players, trending activity, playoff brackets, traded picks, and sport state via MCP tools.
      18
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides live football data from API-Football over HTTP, enabling queries for upcoming matches, recent results, current standings, injuries, live matches, and team search through MCP tools.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables agents to retrieve live NFL scores, Wire news, Scout player grades, start/sit recommendations, and rankings through read-only MCP tools.
      5
      1
      MIT