Skip to main content
Glama
jmolinasoler

vbl-mcp

by jmolinasoler

vbl-mcp

License: MIT

MCP (Model Context Protocol) server for the public Basketball Vlaanderen (VBL) API — the vblcb.wisseq.eu backend used by basketbal.vlaanderen. Read-only.

Repository: github.com/jmolinasoler/vbl_mcp

Official API documentation: ApiDocV2.pdf (source).

Terms of use (from the official document): the APIs may only be used to integrate match calendars, results and standings on websites of clubs affiliated with Basketbal Vlaanderen vzw. Any other party or use requires contacting info@basketbal.vlaanderen.

Features

  • Two transports: stdio (local MCP clients) and Streamable HTTP (/mcp) for deployments.

  • Status dashboard at / (HTTP mode): uptime, active sessions with client name/IP/last activity, tool-usage counters and a recent-calls log — so you can see who is using the server. Auto-refreshes every 15 s; stats are in-memory and reset on restart.

  • Health endpoint at /health: JSON with uptime, session/call counters and a cached (60 s) reachability check of the upstream VBL API.

  • Optional bearer auth: set MCP_AUTH_TOKEN to require Authorization: Bearer <token> on /mcp (the dashboard and /health stay open).

Related MCP server: College Basketball Stats MCP Server

Tools

Tool

VBL endpoint

Description

list_clubs

OrgList?p=1

All clubs, with optional filter on name/city/region/stam number

get_club

OrgDetailByGuid

Club detail: teams and their poules, website, address, venues (accomms), board (bestuur)

get_club_members

RelatiesByOrgGuid

Registered members of a club (players, coaches, …)

get_club_matches

OrgMatchesByGuid

All matches of all teams of a club

get_team

TeamDetailByGuid

Team detail: official standings of its poules, roster (spelers) and staff (tvlijst)

get_team_matches

TeamMatchesByGuid

Calendar and results of one team

get_poule_matches

PouleMatchesByGuid

Full calendar and results of a poule (series)

get_poule_standings

TeamDetailByGuid

Official standings of a poule (rangNr, wedPunt, ptVoor/ptTegen, …); falls back to standings computed from played matches

get_match

MatchesByWedGuid

Full match detail (rescheduling history optional)

get_match_lineup

DwfDeelByWedGuid (PUT)

Digital scoresheet (DWF) lineups; null when not yet available

Local development

git clone https://github.com/jmolinasoler/vbl_mcp.git
cd vbl_mcp
npm install
npm run build

# stdio mode (default) — for Claude Code / Claude Desktop
npm start

# HTTP mode — dashboard on http://localhost:3000
npm run start:http

Claude Code

The repo ships a .mcp.json, so opening this directory with Claude Code registers the server automatically (stdio). To register it globally:

claude mcp add vbl -- node /path/to/vbl_mcp/dist/index.js

To use a deployed instance over HTTP instead:

claude mcp add --transport http vbl https://your-domain.example/mcp
# with auth:
claude mcp add --transport http vbl https://your-domain.example/mcp --header "Authorization: Bearer <token>"

Claude Desktop

{
  "mcpServers": {
    "vbl": {
      "command": "node",
      "args": ["/path/to/vbl_mcp/dist/index.js"]
    }
  }
}

Docker

Build the image:

git clone https://github.com/jmolinasoler/vbl_mcp.git
cd vbl_mcp
docker build -t vbl-mcp .

Run it:

docker run -d --name vbl-mcp -p 3000:3000 vbl-mcp
# optionally protect the MCP endpoint:
docker run -d --name vbl-mcp -p 3000:3000 -e MCP_AUTH_TOKEN=change-me vbl-mcp

Verify:

curl http://localhost:3000/health   # health JSON
open http://localhost:3000/         # status dashboard

The image is a multi-stage build (Node 22 alpine, dev dependencies pruned, runs as the non-root node user) and declares a Docker HEALTHCHECK against /health.

Environment variables

Variable

Default

Purpose

PORT

3000

HTTP listen port

MCP_TRANSPORT

Set to http to force HTTP mode (the container CMD already passes --http)

MCP_AUTH_TOKEN

If set, /mcp requires Authorization: Bearer <token>

Publishing to Docker Hub

Automatically (GitHub Actions)

The repo ships a workflow (.github/workflows/docker-publish.yml) that builds a multi-arch image (linux/amd64 + linux/arm64) and pushes it to Docker Hub on every push to main and on version tags (v*). One-time setup:

  1. On Docker Hub, create the repository <your-dockerhub-user>/vbl-mcp and an access token (Account Settings → Personal access tokens, Read & Write).

  2. On GitHub (Settings → Secrets and variables → Actions), add two repository secrets:

    • DOCKERHUB_USERNAME — your Docker Hub username

    • DOCKERHUB_TOKEN — the access token

  3. Push to main (publishes :latest and :sha-…) or tag a release (git tag v0.2.0 && git push --tags publishes :0.2.0 and :0.2).

Manually

docker login
docker build -t <your-dockerhub-user>/vbl-mcp:latest .
docker push <your-dockerhub-user>/vbl-mcp:latest

Deploying on Coolify

  1. In Coolify: + New → Docker Image and enter the image name, e.g. <your-dockerhub-user>/vbl-mcp:latest.

  2. Ports Exposes: 3000.

  3. (Recommended) Add the environment variable MCP_AUTH_TOKEN with a strong secret so only your clients can call /mcp.

  4. (Optional) In Health Checks, set the path to /health on port 3000 — or rely on the image's built-in Docker HEALTHCHECK.

  5. Assign a domain and deploy. Coolify handles HTTPS via its proxy.

To pick up a new version, push the updated image and hit Redeploy (with the :latest tag Coolify re-pulls the image; pin a version tag like :0.2.0 if you prefer explicit upgrades).

Option B — build from the Git repository

  1. In Coolify: + New → Application, choose Public Repository and enter https://github.com/jmolinasoler/vbl_mcp (branch main).

  2. Build Pack: Dockerfile (Coolify detects the Dockerfile at the repo root automatically).

  3. Continue with steps 2-5 of Option A (port 3000, MCP_AUTH_TOKEN, health check, domain).

After deploying:

  • https://your-domain/ — status dashboard (who is connected, tool usage).

  • https://your-domain/health — health check (JSON, includes upstream VBL API reachability).

  • https://your-domain/mcp — MCP Streamable HTTP endpoint for clients.

GUIDs

  • Club: BVBL1004 (Antwerp Giants)

  • Team: BVBL1004HSE 2 — team GUIDs contain two spaces; pass them exactly as returned by get_club

  • Poule: BVBL26279180NAHSE11A (Top Division Men 1, season 2026-27; the 4 digits after BVBL encode the season)

  • Match: BVBL26279180NAHSE11AAB

Notes

  • The API only serves current-season data; past seasons are purged.

  • Field names are Dutch (naam = name, plaats = city, uitslag = result, gespeeld = played, tT/tU = home/away team, wedPunt = competition points, ptVoor/ptTegen = points for/against).

  • The officially documented endpoints are the five wisseq methods in the table (OrgDetailByGuid, OrgMatchesByGuid, RelatiesByOrgGuid, TeamDetailByGuid, TeamMatchesByGuid). OrgList, PouleMatchesByGuid, MatchesByWedGuid and the DWF endpoints live on the same backend and are used by the official website, but are not part of the PDF.

  • Errors use standard HTTP status codes (400, 404, 500, …) per the official document.

License

MIT — © 2026 Julio Molina Soler. Note that the license covers this server's code only; usage of the VBL API itself is subject to the terms quoted at the top of this README.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/jmolinasoler/vbl_mcp'

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