jk-mcp-mls
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., "@jk-mcp-mlsWhat are the current MLS standings?"
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.
jk-mcp-mls
MCP server that gives Claude live access to Major League Soccer data — teams, matches, standings, rosters, and schedule-strength analytics — via the ESPN public API.
Table of Contents
Related MCP server: ESPN Fantasy Basketball MCP Server
Overview
AI assistants like Claude are knowledgeable, but they have a hard cutoff date — they cannot tell you today's MLS standings, last night's scores, or which teams are currently in a playoff position. This project fixes that.
It is an MCP server — a plugin that gives Claude direct access to live MLS data: scores, standings, rosters, and derived schedule-strength analytics. Once installed, you can ask Claude natural-language questions about Major League Soccer and get accurate, up-to-date answers. No subscription, no API key, and no programming required to use it.
This is the v1 scaffold — it wraps the ESPN public API only. Richer sources (mlssoccer.com's Opta-powered feed, official CMS award articles, Leagues Cup, U.S. Open Cup, Concacaf Champions Cup) are on the roadmap.
Features
The v1 surface is eleven read-only, idempotent tools split across two tiers.
ESPN-backed (8)
Tool | Description |
| List all 30 MLS clubs with IDs and abbreviations |
| Details for a specific team |
| Team's active roster — jersey, position, age, citizenship |
| Match scores for a single day, a date range, or the current matchweek |
| Every match for a team in the current season — past + upcoming |
| One match's full details — score, venue, attendance, goals, cards, subs |
| Current standings grouped by Eastern and Western Conferences |
| Recent MLS news articles |
Derived analytics (3)
Pure functions over live standings + team schedules, exposing schedule-strength context the raw table does not.
Tool | Description |
| Team's average opponent points-per-game across matches already played |
| Team's W-L-T split across current top / middle / bottom standings tiers |
| Team's raw PPG alongside an opponent-quality-adjusted PPG |
Roadmap
Not in v1; probed and shown to be viable at the ESPN API:
Leagues Cup (
concacaf.leagues.cup), U.S. Open Cup (usa.open), Concacaf Champions Cup, Campeones CupPlayer leaderboards and team season aggregates once a stable MLS Opta feed is identified
Award articles via
mlssoccer.comCMSPlayoff bracket for the MLS Cup Playoffs
Requirements
Installation
git clone https://github.com/jedi-knights/jk-mcp-mls.git
cd jk-mcp-mls
uv syncUsage
Run the server in stdio mode (the default — used by Claude Code and Claude Desktop):
uv run python -m mls.serverRun in HTTP mode (for networked or deployed access):
MCP_TRANSPORT=streamable-http uv run python -m mls.serverExample prompts
Standings, scores, rosters:
Who is leading the MLS Eastern Conference right now?
Show me every MLS result from this past weekend.
Who is on Atlanta United's roster?
When does LAFC play next?
Schedule strength:
Which MLS team has played the toughest schedule so far?
Show me Atlanta United's record against the current top 5 teams.
Compare Inter Miami and Seattle Sounders on adjusted points-per-game.
Configuration
All configuration is via environment variables. None are required for local use.
Variable | Default | Description |
|
| Transport mode: |
|
| Bind address (HTTP transport only) |
|
| TCP port (HTTP transport only) |
|
| URL path (HTTP transport only) |
|
| ESPN API base URL |
|
|
|
| unset | Bootstrap the OpenTelemetry SDK |
| unset | Require RS256 bearer tokens on streamable-http |
| unset | Auth-server origin (required when auth is on) |
| unset | This server's public URL for the |
Claude Code
Install from your local clone globally so the server is available in every project:
claude mcp add --scope user mls -- uv run --directory /path/to/jk-mcp-mls python -m mls.serverReplace /path/to/jk-mcp-mls with the absolute path to your clone. Verify with claude mcp list.
Drop --scope user to register only for the current project, or commit a .mcp.json to the repo root for collaborators:
{
"mcpServers": {
"mls": {
"command": "uv",
"args": ["run", "--directory", "/path/to/jk-mcp-mls", "python", "-m", "mls.server"]
}
}
}Claude Desktop
Add the following to your Claude Desktop configuration file.
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mls": {
"command": "uv",
"args": [
"run",
"--directory", "/path/to/jk-mcp-mls",
"python", "-m", "mls.server"
]
}
}
}If uv is not on Claude Desktop's PATH, use the absolute path (which uv will show it). Fully quit and relaunch Claude Desktop after saving — a window close is not enough.
Docker
Build the image:
docker build -t jk-mcp-mls:latest .Run in stdio mode (for MCP clients that spawn a subprocess):
docker run -i --rm jk-mcp-mls:latestRun in HTTP mode:
docker run --rm -p 8000:8000 \
-e MCP_TRANSPORT=streamable-http \
jk-mcp-mls:latestDevelopment
Install
uv syncInvoke tasks
All common workflows are invoke tasks. Run uv run inv --list to see everything.
Task | Alias | Description |
|
| Run ruff linter and format check |
|
| Auto-fix lint violations and reformat |
|
| Run the full test suite |
|
| Run tests with coverage report (threshold: 90%) |
|
| Check cyclomatic complexity (max 7) |
|
| Build wheel and sdist into |
|
| Build the Docker image |
|
| Remove build and coverage artifacts |
Project structure
src/mls/
├── server.py # entry point, transport selection, logging setup
├── adapters/
│ ├── inbound/
│ │ ├── mcp_adapter.py # FastMCP server, health endpoints, tool registration
│ │ ├── formatters.py # domain → LLM-readable text
│ │ ├── authorization.py # inbound authz port implementations
│ │ └── tools/
│ │ ├── espn.py # 8 ESPN-backed tools
│ │ └── analytics.py # 3 schedule-strength analytics tools
│ └── outbound/
│ ├── espn_adapter.py # ESPN HTTP client
│ ├── parsers.py # ESPN JSON → domain models
│ ├── retry_adapter.py # transient-failure retry decorator
│ └── caching_adapter.py # in-process TTL cache
├── application/
│ ├── service.py # MLSService — use cases, orchestration
│ ├── _helpers.py # input validation
│ └── _analytics_helpers.py # pure math for schedule-strength tools
├── domain/
│ ├── models.py # Team, Match, Standing (with conference), etc.
│ └── exceptions.py # MLSNotFoundError, UpstreamAPIError
├── ports/
│ ├── inbound.py # Authorizer protocol
│ └── outbound.py # MLSAPIPort protocol
├── observability/ # OpenTelemetry bootstrap (opt-in)
└── security/ # JWKS token verifierThe dependency direction flows inward: adapters → ports → domain. Nothing in domain/ imports from adapters or a framework.
Contributing
Fork the repository and clone your fork
Create a feature branch:
git checkout -b feature/your-featureMake your changes following the existing patterns (hexagonal architecture, TDD, conventional commits)
Verify the full check suite passes:
uv run inv lint && uv run inv check-complexity && uv run inv coverageOpen a pull request against
main
All CI checks (lint, complexity, tests, coverage ≥ 90%) must pass before merge.
License
MIT — see LICENSE.
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
- Flicense-qualityDmaintenanceAn MCP server that enables agents to interact with soccer data including scores, matches, players, and teams using the sportsdata.io Soccer V3 Scores API.Last updated
- AlicenseAqualityDmaintenanceAn MCP server that provides access to ESPN Fantasy Basketball APIs, enabling Claude and other MCP clients to fetch league teams, rosters, free agents, matchups, NBA schedules, and live draft assistant tools.Last updated141MIT
- Flicense-qualityDmaintenanceAn MCP server that connects Claude Desktop to The Odds API, giving Claude real-time access to sports odds, scores, and schedules across 80+ sports and leagues worldwide.Last updated
- Flicense-qualityDmaintenanceMCP server that enables Claude Desktop to access real-time sports data including live scores, fixtures, standings, and NBA statistics using free APIs.Last updated
Related MCP Connectors
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
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/jedi-knights/jk-mcp-mls'
If you have feedback or need assistance with the MCP directory API, please join our Discord server