Connect your agent
The StatMuse MCP server puts the sports answers behind statmuse.com directly into your agent as Model Context Protocol tools any agent can call for player and team search, stats queries, MLB pitch tracking, schedules, box scores, scheduled-game betting odds, play-by-play, standings, injuries, NFL fantasy projections, news and a season briefing that grounds the agent in what’s happening right now. Add StatMuse to your AI assistant or AI agent, then ask in plain English; no code required.
- Endpoint:
https://api.statmuse.com/mcp(streamable HTTP) - Auth: sign in with your
statmuse.comaccount - Quota: tool calls draw from the same monthly quota as your REST requests, so one quota covers both. See Rate Limits & Quotas.
Tools
Fifteen tools cover everything StatMuse answers. You don’t call them yourself. Your agent picks and chains them, and it receives full instructions for each tool automatically when it connects.
search_player: look up players by name and get the player IDs the other tools use.search_team: resolve a team by name, mascot or abbreviation to its team ID.get_stats: run a stats query: leaders, splits, game logs, season and career totals, plus pitch tracking from 2020 on, such as velocity, spin, movement and exit velocity (MLB only).get_stats_guide: league-specific stat keys and query examples, plus a pitch tracking topic (MLB only); agents load the stats guide before their first stats query.get_games: a team’s schedule, or every game in a league across a date range, with scores and status.get_game_details: box scores, lineups, venue details and weather, plus betting odds for scheduled games when available (except CFB), batched across games.get_game_plays: a single game’s play-by-play: a curated recap or the play log, filterable by period, team or scoring plays.get_standings: win/loss records, ranks, games behind and clinched status for any season.get_news: recent article summaries, league-wide or scoped to a player or team, each linking the full article on statmuse.com.get_player_detail: player cards: bio, draft, awards and recent news.get_player_injuries: the current injury report for a league or specific teams (every sport except CFB and FC).get_team_roster: a team’s roster for a given season: each player’s number, position, height, weight and age.get_season_briefing: the present-day snapshot of a league: current season, the games around today, standings, recent news and the next scheduled game.get_projections: fantasy point and stat projections for players and team defenses, by week or season (NFL only).submit_feedback: lets your agent report friction with these tools: errors, unclear descriptions or missing capabilities.
Single tools answer single questions; your agent chains them on its own:
- “What’s going on in the NBA right now?”:
get_season_briefing - “Compare Shai and Jokić’s seasons”:
search_player→get_stats_guide→get_stats - “What happened in the NBA last night?”:
get_games→get_game_details - “Catch me up on the Lakers”:
search_team→get_standings→get_news
Sign-in, not pasted secrets
Interactive MCP clients authenticate with OAuth: when you connect, your
client opens a sign-in page, you log in with your statmuse.com
account, and the client receives its own token. You never handle a
secret yourself (see Authentication).
This means your client must support remote MCP servers with OAuth. Most major clients do; see Connect MCP clients below.
Before you connect
You need active StatMuse API access. During the beta that comes with a StatMuse+ membership (see Get Started). Get access first, then connect: without it the connection itself is refused, which most clients surface as a generic authorization error. If your membership or subscription changes later, disconnect and reconnect the client.
Connect MCP clients
Step-by-step setup for common clients. Client UIs change often. If a step doesn’t match what you see, the client’s own documentation is the source of truth, and Other clients has everything a client needs to connect.
Let your agent connect itself
Paste this prompt into any agent that can read a web page:
Read https://developer.statmuse.com/skill.md and connect StatMuse to this client. If you cannot do it yourself, give me the steps.
You complete the sign-in in your browser either way.
Coding agents can install the skill instead:
npx skills add https://developer.statmuse.com
Claude (claude.ai and Claude Desktop)
Custom connectors are available on every Claude plan (the Free plan allows one). These steps work in both the claude.ai web app and Claude Desktop.
-
Open Settings → Connectors.
-
Click Add custom connector.
-
Name it
StatMuseand set the URL tohttps://api.statmuse.com/mcp. -
If the dialog asks how to authenticate, keep the options Claude detects for this server:
- Authentication: Sign in now. Every StatMuse tool needs your account, so there is nothing to use before signing in.
- OAuth client: Use Claude’s published identity. StatMuse supports Client ID Metadata Documents, so Claude identifies itself without registering a new OAuth client for each connection.
If your organization still sees a single-screen dialog with Advanced settings, leave the OAuth client ID and secret blank.
-
Click Add, then Connect, and sign in with your
statmuse.comaccount when the authorization page opens. -
In a chat, enable the StatMuse connector from the tools menu and ask a question.
See Claude’s own guide to custom connectors for details.
Claude Code
claude mcp add --transport http statmuse https://api.statmuse.com/mcp
Then, inside Claude Code, run /mcp, select statmuse and choose
Authenticate. Your browser opens the sign-in page. Once connected,
/mcp lists the available tools.
See the Claude Code MCP docs for scopes (user vs. project) and management commands.
ChatGPT
ChatGPT connects to MCP servers through custom plugins. Custom plugins are available on paid plans (Plus, Pro, Business, Enterprise and Edu) in the web app and Desktop; the mobile apps can use a plugin but not create one. In Business, Enterprise or Edu workspaces an admin may need to allow custom MCP servers first.
-
Open chatgpt.com/plugins.
-
Click Add and choose Add custom MCP server. If that option is missing, your plan or workspace doesn’t allow custom servers.
-
Name it
StatMuse, leave Connection on the server URL option and set it tohttps://api.statmuse.com/mcp. -
Set Description to the text below. ChatGPT decides which plugin answers a question from this description, so a description of the connection (“connects to the StatMuse MCP server”) sends sports questions to web search instead.
Answers NBA, NFL, MLB, NHL, WNBA, college football and soccer questions from StatMuse: player and team stats, leaders, records, splits, game logs, schedules, scores and box scores, standings, injuries, play-by-play, news and fantasy matchups. Use it for any sports stats question instead of web search. -
Leave Authentication on OAuth. Every StatMuse tool needs your account, so there is nothing to use without signing in.
-
Read the custom-server notice and click I understand and want to continue, then Create as a plugin.
-
The plugin appears in your personal plugins directory. Install it, then sign in with your
statmuse.comaccount when the authorization page opens. -
In a chat, switch the composer from Chat to Work, type
@StatMuse, and ask a question.
See OpenAI’s guide to connecting a custom MCP server for details.
Codex
Codex reads ~/.codex/config.toml. The Codex CLI, the ChatGPT desktop app
and the IDE extension share that configuration, so one setup serves all
three. The desktop app route adds the server for coding work. It is
separate from the plugin route in the ChatGPT section above.
Codex CLI. In a terminal:
codex mcp add statmuse --url https://api.statmuse.com/mcp
codex mcp login statmuse
The login command opens the sign-in page in your browser. Sign in with
your statmuse.com account. To add the server by file instead, put this
in ~/.codex/config.toml:
[mcp_servers.statmuse]
url = "https://api.statmuse.com/mcp"
ChatGPT desktop app.
- Open Settings, then MCP servers, and click Add server.
- Name it
StatMuse, choose Streamable HTTP and set the URL tohttps://api.statmuse.com/mcp. - Save the server, then click Restart.
- Click Authenticate and sign in with your
statmuse.comaccount.
IDE extension. Open the gear menu, then MCP servers, and add the
server as in the desktop app steps. Save it, then click Restart
extension. Click Authenticate and sign in with your statmuse.com
account.
See OpenAI’s guide to MCP in Codex for details.
Grok
Grok connects to custom MCP servers through connectors. In a Business or Enterprise team, an admin provisions the connector first.
- Open grok.com/connectors.
- Click New Connector, then choose Custom.
- Set the URL to
https://api.statmuse.com/mcp. - Complete the sign-in with your
statmuse.comaccount.
See xAI’s guide to connectors for details.
Cursor
Install StatMuse in Cursor
adds the server in one click. To add it by file, put this in
~/.cursor/mcp.json for every project, or in .cursor/mcp.json for one:
{
"mcpServers": {
"statmuse": {
"url": "https://api.statmuse.com/mcp"
}
}
}
Save the file and restart Cursor. Servers appear on the Customize
page. Complete the sign-in with your statmuse.com account. In Cursor
CLI, run agent mcp login statmuse.
See Cursor’s guide to Model Context Protocol for details.
OpenCode
In a terminal, run:
opencode mcp add statmuse --url https://api.statmuse.com/mcp
The command writes to the project configuration. Add --global to make
StatMuse available in every project. Then run
opencode mcp auth statmuse, or use /mcps inside OpenCode, to sign in
with your statmuse.com account. opencode mcp list shows the
connection.
OpenCode V2 file. To add the server by file instead, put this in
opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"statmuse": {
"type": "remote",
"url": "https://api.statmuse.com/mcp",
},
},
},
}
V2 puts each server under mcp.servers, not directly under mcp.
See OpenCode’s guide to MCP servers for details.
Hermes
Add StatMuse to ~/.hermes/config.yaml:
mcp_servers:
statmuse:
url: "https://api.statmuse.com/mcp"
auth: oauth
From a new terminal, run hermes mcp login statmuse and sign in with
your statmuse.com account. Then restart Hermes, or run /reload-mcp.
See Hermes’s guide to OAuth-authenticated HTTP servers for details, including sign-in when Hermes runs on another machine.
OpenClaw
The sign-in runs while the Gateway is stopped. In a terminal:
openclaw gateway stop
openclaw mcp add statmuse --url https://api.statmuse.com/mcp --transport streamable-http --auth oauth
openclaw mcp login statmuse
Sign in with your statmuse.com account, then start the Gateway again.
Start it again also when the add or the sign-in fails.
See OpenClaw’s guides to MCP servers and the MCP registry commands for details.
Goose
Install StatMuse in Goose adds the extension in one click. To add it by hand in the desktop app:
- Open Extensions and click Add custom extension.
- Choose the streamable HTTP type, name it StatMuse and set the URL to
https://api.statmuse.com/mcp. - Click Add, then sign in with your
statmuse.comaccount.
In a terminal, run goose configure, choose Add Extension, then
Remote Extension (Streamable HTTP), and enter the same URL.
See Goose’s guide to using extensions for details.
Other clients
Any client that speaks the streamable HTTP transport and OAuth can connect:
- Endpoint:
https://api.statmuse.com/mcp - Transport: streamable HTTP. The server is stateless: no session, no SSE stream.
- Auth: OAuth 2.1 with dynamic client registration. Clients discover
the authorization server automatically from the endpoint; there is
nothing to preconfigure. You sign in with your
statmuse.comaccount.
Clients configured by file typically need no more than:
{
"mcpServers": {
"statmuse": {
"url": "https://api.statmuse.com/mcp"
}
}
}
The exact shape varies by client, so check its documentation.
Managing access
Every client you connect appears as a connected agent on the portal’s Connected agents page, where you can review and disconnect it. Disconnecting revokes that agent’s access immediately; you can always reconnect from the client later.
Sport coverage
The MCP tools cover NBA, MLB, WNBA, NHL, NFL, CFB and FC. PGA is available through the REST API only.