MCP ExplorerExplorer

Nhl Go

@carsonjoneson 10 months ago
1 MIT
FreeCommunity
AI Systems
#cli#golang#mcp#mcp-server#nhl#nhl-api
"NHL API Client, MCP Server, and Command Line Tool Written in Go"

Overview

What is Nhl Go

nhl-go is an unofficial collection of NHL data tools, including an API client, a command-line interface (CLI), and a Model Context Protocol (MCP) server, all written in Go.

Use cases

Use cases include building sports analytics dashboards, creating chatbots that provide NHL information, and developing applications that require real-time NHL data.

How to use

To use nhl-go, build the binaries for the API client and MCP server using Go, and then you can interact with NHL data through command-line commands or integrate it with other applications via the MCP server.

Key features

Key features include an API client for accessing team rosters, player stats, schedules, and standings, a CLI for easy command execution, and an MCP server that exposes NHL API data for integration with large language models.

Where to use

nhl-go can be used in sports analytics, application development, and any project that requires access to NHL data, particularly in environments that utilize large language models.

Content

NHL Go

An unofficial collection of NHL data tools, written in Go 🏒

Features

NHL API Client

A client wrapper around the NHL web api, based on the reference spec defined here.

Supported Functionality

  • Teams (Rosters)
  • Players (Stats)
  • Schedule (by date, by team)
  • Standings

See roadmap.md for more details.

NHL CLI

See /examples for usage.

./nhl -player -name "Miro Heiskanen"

NHL MCP Server

Exposes NHL API data via the Model Context Protocol, allowing for easy integration with LLMs.

Installation

Build the nhl-mcp binary:

cd ./mcp && go build -o nhl-mcp

Add path to the nhl-mcp binary to your claude_desktop_config.json file:

"nhl": {
  "command": "/path/to/nhl-mcp"
}

Local Development

Prerequisites

Go version >= 1.23

Installation

Create a fork of this repository, then clone it.

git clone https://github.com/carsonjones/nhl-go.git
cd nhl-go

Commands

Build the nhl and nhl-mcp binaries:

go build -o nhl && cd ./mcp && go build -o ../nhl-mcp && cd ../

Debug MCP server:

npx @modelcontextprotocol/inspector ./nhl-mcp

Testing

go test -v './...'

HOCKEY!!!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers