Skip to main content
Glama
stevenyuser

NBA MCP Server

by stevenyuser

get_today_scoreboard

Retrieve today's NBA scoreboard with live game data, including scores, statuses, and team details via the NBA MCP Server.

Instructions

Get the current NBA scoreboard for today's games. The NBA scoreboard provides live data for games, including scores, game statuses, and team information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function decorated with @mcp.tool that implements the get_today_scoreboard tool. It retrieves the live NBA scoreboard for today's games using the nba_api.stats.endpoints.scoreboard module.
    @mcp.tool def get_today_scoreboard() -> dict: """ Get the current NBA scoreboard for today's games. The NBA scoreboard provides live data for games, including scores, game statuses, and team information. """ try: board = scoreboard.ScoreBoard() print(board.games) if not board.games or not board.games.get_dict(): raise ValueError("No games found for today.") return board.games.get_dict() except Exception as e: return {"error": str(e)}

Latest Blog Posts

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/stevenyuser/nba_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server