npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nicobuchet/ffhb-mcp

v0.1.0

Published

MCP server for indexing and exposing data from the FFHandball website.

Readme

FFHB MCP

TypeScript MCP server for helping AI agents fetch, index, and search content from the FFHandball website.

Architecture

  • src/index.ts: stdio entrypoint for local MCP clients.
  • src/mcp/: MCP server creation plus tool/resource registration.
  • src/config/: environment-driven runtime configuration.
  • src/ffhb/: FFHandball website client and HTML parsing.
  • src/indexing/: page indexing and search use cases.
  • src/storage/: persistence implementations for indexed pages.
  • src/domain/: shared domain types and URL policy.
  • data/index/: default local JSON index location.
  • data/cache/: reserved for future HTTP/page cache implementations.

MCP Surface

Tools:

  • ffhb_list_seasons: list live FFHandball seasons and the competition type URLs available under each one.
  • ffhb_search_competitions: search live FFHandball competitions with optional query, season URL, competition type, and limit filters.
  • ffhb_get_competition: inspect one competition and expose metadata plus available phase navigation items.
  • ffhb_list_poules: list poules for a competition, optionally restricted to a phase URL returned by ffhb_get_competition.
  • ffhb_list_journees: list journees for a poule URL returned by ffhb_list_poules.
  • ffhb_get_standings: get normalized standings for a poule URL returned by ffhb_list_poules.
  • ffhb_list_matches: list matches for a poule, optionally restricted to a journee URL returned by ffhb_list_journees.
  • ffhb_get_match: get structured match details from a canonical matchUrl, using the match sheet PDF when available and HTML as fallback. Both players and staff are grouped as { "home": [...], "away": [...] }; each side is an empty array when no entries are available. Entries retain their teamSide fields and player IDs.
  • ffhb_fetch_page: fetch and parse a single FFHandball page.
  • ffhb_index_url: fetch one page and optionally shallow-index same-site links found on it.
  • ffhb_search_index: search the local page index.

Player entries use firstName for the given name and lastName for the family name. HTML name fields take precedence over display labels; PDF names are split using FFHB's uppercase-family-name convention. If a display name has no reliable split, it is preserved in firstName and lastName is empty. Search includes both fields.

Resources:

  • ffhb://index/stats: index metadata and counts.
  • ffhb://page/{encodedUrl}: indexed page content by encoded URL.

Prompt:

  • ffhb-research-plan: starts a focused research workflow around the indexed FFHandball data.

Setup

Requires Node.js 24.12.0 or newer within the Node.js 24 release line, with npm.

npm ci
npm run build

Run as a local stdio MCP server:

npm run dev

For MCP clients that accept a command, use:

node /absolute/path/to/ffhb-mcp/dist/src/index.js

Configuration

Copy .env.example values into your MCP client environment as needed:

  • FFHB_BASE_URL: default FFHandball base URL.
  • FFHB_ALLOWED_HOSTS: comma-separated host allowlist.
  • FFHB_USER_AGENT: HTTP user agent used by the fetch client.
  • FFHB_REQUEST_TIMEOUT_MS: request timeout.
  • FFHB_INDEX_PATH: JSON file used by the local index store.

Development

npm run test

The first implementation intentionally uses a JSON-file store. That keeps the MCP usable immediately while leaving a clear boundary for replacing storage with SQLite, Meilisearch, Typesense, or another search backend later.

Packaging

The npm package is named @nicobuchet/ffhb-mcp and exposes the ffhb-mcp executable. Run npm pack to create a local package archive. The prepack hook builds the application automatically; the archive includes dist/src, package metadata, the MIT licence, and this README. Tests, fixtures, and local index data are excluded.

Licence

MIT.