Skip to main content
Glama
stevenyuser

NBA MCP Server

by stevenyuser

get_today_scoreboard

Retrieve live NBA game scores, team information, and game statuses for today's matchups. This tool provides current basketball data to track ongoing games and results.

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

  • Handler function that fetches and returns the current NBA scoreboard for today's games using the nba_api scoreboard endpoint.
    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)}
  • server.py:139-139 (registration)
    Registers the get_today_scoreboard tool using the FastMCP @mcp.tool decorator.
    @mcp.tool

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