Nba
БесплатноНе проверенMCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.
Описание
MCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.
README
Node.js / TypeScript MCP server for NBA live data and stats from NBA.com.
This server exposes a focused set of read-only Model Context Protocol tools over stdio. It uses NBA.com's public website endpoints:
- Live data:
https://cdn.nba.com/static/json/liveData/... - Stats data:
https://stats.nba.com/stats/{endpoint}
NBA.com does not treat these as a formally supported public developer API, so endpoints, required parameters, headers, rate limits, and network access can change without notice.
Install
npm install -g nba-mcp
Run
Use the published npm package directly from MCP clients:
{
"mcpServers": {
"nba": {
"command": "npx",
"args": ["-y", "nba-mcp"]
}
}
}
Or run the installed binary:
nba-mcp
For local development from a checkout:
npm install
npm run build
npm start
Local MCP clients can also use the built stdio entrypoint:
{
"mcpServers": {
"nba": {
"command": "node",
"args": ["/absolute/path/to/nba-mcp/dist/index.js"]
}
}
}
During development:
npm run dev
Tools
nba_stats_endpoint- advanced raw caller for documentedstats.nba.comendpointsnba_search_teams- local static NBA team lookupnba_live_scoreboard- today's live scoreboardnba_live_boxscore- live box score bygameIdnba_live_play_by_play- live play-by-play bygameIdnba_live_odds- today's live odds when availablenba_schedule_by_date- schedule and scores for a datenba_search_players- player search viaplayerindexnba_player_info- player bio and headline statsnba_player_career_stats- player career and season totalsnba_player_game_log- player game log for a seasonnba_team_game_log- team game log for a seasonnba_league_standings- standings by seasonnba_league_player_stats- league-wide player dashboard statsnba_league_team_stats- league-wide team dashboard stats
Environment
NBA_STATS_BASE_URL=https://stats.nba.com/stats
NBA_LIVE_BASE_URL=https://cdn.nba.com/static/json/liveData
NBA_STATS_TIMEOUT_MS=30000
NBA_LIVE_TIMEOUT_MS=10000
NBA_MAX_RETRIES=2
NBA_STATS_RATE_LIMIT_MS=650
NBA_USER_AGENT="Mozilla/5.0 ..."
NBA_STATS_BASE_URL and NBA_LIVE_BASE_URL are intentionally configurable so deployments can route through a trusted internal proxy when NBA.com blocks direct server-side requests.
Network Notes
stats.nba.com and sometimes cdn.nba.com can reject requests from cloud, datacenter, VPN, or non-browser TLS fingerprints. In those cases tools return an MCP error with the URL, status code, and response body preview. Run from a residential network or proxy through a service that can reach NBA.com.
Development
npm run typecheck
npm run build
Publish
The package is configured for public npm publishing.
npm login --registry https://registry.npmjs.org
npm publish --dry-run --registry https://registry.npmjs.org
npm publish --registry https://registry.npmjs.org
prepublishOnly runs typecheck and prepack builds dist/.
Smoke test the MCP protocol layer:
node --input-type=module -e "import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'; const client = new Client({ name: 'smoke-test', version: '0.0.0' }); const transport = new StdioClientTransport({ command: 'node', args: ['dist/index.js'] }); await client.connect(transport); console.log((await client.listTools()).tools.map(t => t.name)); await client.close();"
Установить Nba в Claude Desktop, Claude Code, Cursor
unyly install nba-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add nba-mcp -- npx -y nba-mcpFAQ
Nba MCP бесплатный?
Да, Nba MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Nba?
Нет, Nba работает без API-ключей и переменных окружения.
Nba — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Nba в Claude Desktop, Claude Code или Cursor?
Открой Nba на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Nba with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
