vbl-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vbl-mcplist clubs in Antwerp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vbl-mcp
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 · Docker image: jmolinaso/vbl-mcp · Public instance: vblmcp.valvestudio.io
See examples/ for ready-made MCP client configurations (Claude Code, Hermes, stdio-only clients via mcp-remote), a Coolify Docker Compose file, and a /vbl Agent Skill that runs the right queries from a single slash command. See the API key guide for provisioning, client configuration, rotation, and troubleshooting.
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.Login-protected dashboard: a username/password account (seeded from
ADMIN_USERNAME/ADMIN_PASSWORD) guards the status page and the admin API. Passwords are scrypt-hashed, sessions are HTTP-onlySameSite=Strictcookies persisted across restarts, and repeated failed logins are rate-limited./healthstays public for container health checks.Multiple accounts with roles: the seeded account is an admin and is the only one that can create further accounts (dashboard Users panel or
POST /admin/users) — there is no self-service signup. A plain user holds at most 3 active API keys and only sees and revokes their own; an admin has unlimited keys and can revoke anyone's.API key management from the app: create and revoke keys from the dashboard once signed in (or via
/admin/keys). Keys can also be seeded viaMCP_API_KEYS(hermes:key1,claude:key2); all of them require theX-API-Keyheader on/mcp.Usage metering per request: every tool call records estimated tokens in/out (≈ characters ÷ 4) and duration. Aggregates per key and per tool are persisted to disk as the basis for usage-based billing; the dashboard shows per-request consumption and per-key totals.
Related MCP server: nba-mcp
Tools
Tool | VBL endpoint | Description |
|
| All clubs, with optional filter on name/city/region/stam number |
|
| Club detail: teams and their poules, website, address, venues ( |
|
| Registered members of a club (players, coaches, …) |
|
| All matches of all teams of a club |
|
| Team detail: official standings of its poules, roster ( |
|
| Calendar and results of one team |
|
| Full calendar and results of a poule (series) |
|
| Official standings of a poule (rangNr, wedPunt, ptVoor/ptTegen, …); falls back to standings computed from played matches |
|
| Full match detail (rescheduling history optional) |
|
| Digital scoresheet (DWF) lineups; |
Local development
The project is developed test-first — see the testing & TDD guide for the workflow and the test harness (fake VBL upstream, in-memory MCP client, isolated HTTP app).
npm run test:watch # red-green-refactor loop
npm run check # typecheck + full suite, same as CIgit 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:httpClaude 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.jsTo 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 "X-API-Key: <key>"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 \
-v vbl-mcp-data:/app/data \
-e ADMIN_USERNAME=admin -e ADMIN_PASSWORD=change-me \
vbl-mcpThen open http://localhost:3000/, sign in, and create your first API key from the dashboard. The /app/data volume keeps users, sessions, keys and usage metering across restarts. You can also seed keys via -e MCP_API_KEYS="hermes:change-me".
Verify:
curl http://localhost:3000/health # health JSON
open http://localhost:3000/ # status dashboardThe 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 |
|
| HTTP listen port |
| – | Set to |
| – | Seed API keys, comma-separated and optionally labeled: |
| – | Dashboard account, created on first start. Unset = the dashboard stays public |
| – | Password for that account. Only used to create it; changing it later from the UI wins over the variable |
|
| Login session lifetime |
| – | Optional |
|
| Where API keys and usage metering are persisted ( |
Dashboard login
Set ADMIN_USERNAME and ADMIN_PASSWORD and the account is created on first start; from then on / asks for a login and the admin API accepts that session. The password is only read to create the account — changing it from the UI is permanent, and restarting with the old variable does not reset it.
Passwords are hashed with scrypt and a per-password salt; the plaintext is never stored.
Sessions are opaque, HTTP-only,
SameSite=Strictcookies (which is also the CSRF defence for the admin endpoints),Securewhen the request arrives over HTTPS. They live in the store, so a restart does not sign you out.Changing your password signs every browser out, including the current one.
After 10 failed attempts for a username+IP, logins are refused for 15 minutes.
Leaving
ADMIN_USERNAMEunset keeps the dashboard public, as it was before this feature, so upgrading an existing deployment cannot lock you out. The page then shows a warning banner — the dashboard exposes client IPs and usage, so configure an account on any public instance.
Accounts & roles
The seeded ADMIN_USERNAME account is an admin. Admins create every other account from the dashboard's Users panel or the API; users cannot register themselves.
admin | user | |
Create / list / delete accounts | yes | no |
API keys | unlimited | max 3 active |
Keys it can see and revoke | all, with their owner | only its own |
Sessions, client IPs, call log | yes | no |
# create a normal user (admin session or X-Admin-Token)
curl -X POST https://your-domain/admin/users \
-H "X-Admin-Token: $ADMIN_TOKEN" -H "Content-Type: application/json" \
-d '{"username":"player","password":"at-least-8-characters"}'
# add "role":"admin" for another operator
curl https://your-domain/admin/users -H "X-Admin-Token: $ADMIN_TOKEN" # list
curl -X DELETE https://your-domain/admin/users/<id> -H "X-Admin-Token: $ADMIN_TOKEN"Deleting an account signs it out and revokes its keys (usage stays for billing); an admin cannot delete itself. Accounts created before roles existed are treated as admins on upgrade, so nobody gets locked out. See the API key guide for the full permission matrix.
API keys & usage metering
Sign in and the dashboard gains a key-management panel: give the key a label (one per client) and hit Create API key — the full key is shown only once. Revoking a key immediately returns 401 to its clients. A non-admin sees its own keys and its remaining quota (3 active keys); creating a fourth returns 403 until one is revoked.
The same operations are available as an admin API, authorized by your login cookie or by X-Admin-Token if you set ADMIN_TOKEN for scripts:
# create
curl -X POST https://your-domain/admin/keys \
-H "X-Admin-Token: $ADMIN_TOKEN" -H "Content-Type: application/json" \
-d '{"label":"hermes"}'
# list with usage (requests, errors, tokens in/out, per-tool breakdown)
curl https://your-domain/admin/keys -H "X-Admin-Token: $ADMIN_TOKEN"
# revoke
curl -X DELETE https://your-domain/admin/keys/<id> -H "X-Admin-Token: $ADMIN_TOKEN"Every tool call is metered: estimated tokens in (arguments) and out (response), computed as ≈ characters ÷ 4, plus duration and error flag. Aggregates per key and per tool are persisted in DATA_DIR/store.json — GET /admin/keys is effectively the billing export (scoped to your own keys unless you are an admin). The dashboard additionally shows the last 50 calls with their individual consumption.
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:
On Docker Hub, create the repository (published as
jmolinaso/vbl-mcp) and an access token (Account Settings → Personal access tokens, Read & Write).On GitHub (Settings → Secrets and variables → Actions), add two repository secrets:
DOCKERHUB_USERNAME— your Docker Hub usernameDOCKERHUB_TOKEN— the access token
Push to
main(publishes:latestand:sha-…) or tag a release (git tag v0.2.0 && git push --tagspublishes:0.2.0and:0.2).
Manually
docker login
docker build -t jmolinaso/vbl-mcp:latest .
docker push jmolinaso/vbl-mcp:latestDeploying on Coolify
Option A — from Docker Hub (recommended once published)
In Coolify: + New → Docker Image and enter the image name:
jmolinaso/vbl-mcp:latest.Ports Exposes:
3000.Add
ADMIN_USERNAMEandADMIN_PASSWORDso the dashboard requires a login, then create per-client API keys from it (or seed them withMCP_API_KEYS).In Persistent Storage, add a volume mounted at
/app/dataso users, sessions, API keys and usage metering survive redeploys.(Optional) In Health Checks, set the path to
/healthon port3000— or rely on the image's built-in DockerHEALTHCHECK.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
In Coolify: + New → Application, choose Public Repository and enter
https://github.com/jmolinasoler/vbl_mcp(branchmain).Build Pack:
Dockerfile(Coolify detects theDockerfileat the repo root automatically).Continue with steps 2-6 of Option A (port
3000,ADMIN_TOKEN, persistent storage on/app/data, health check, domain).
Option C — Docker Compose
A ready-made compose file lives at examples/docker-compose.coolify.yml: pick Build Pack: Docker Compose with that file as Docker Compose Location, or paste it into + New → Docker Compose Empty. It pulls the Docker Hub image (or optionally builds from the repo), wires the domain via Coolify's SERVICE_FQDN magic variable and includes the /health container health check.
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.https://your-domain/admin/users— accounts (admin only);https://your-domain/admin/keys— API keys and usage.
GUIDs
Club:
BVBL1004(Antwerp Giants)Team:
BVBL1004HSE 2— team GUIDs contain two spaces; pass them exactly as returned byget_clubPoule:
BVBL26279180NAHSE11A(Top Division Men 1, season 2026-27; the 4 digits afterBVBLencode 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,MatchesByWedGuidand 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB.410226MIT
- AlicenseAqualityCmaintenanceMCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.15131MIT
- Flicense-qualityCmaintenanceMCP server exposing ProCyclingStats teams, riders, and races data by scraping site pages, enabling custom rankings and historical result analysis.
- FlicenseBqualityDmaintenanceRead-only MCP server for the Palloliitto's result service API, enabling AI applications to search and inspect football & futsal data including clubs, teams, matches, competitions, and league tables.12
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
The hockey data API. Stats, odds, and everything between. REST API and MCP server.
OpenLigaDB MCP — community-run, keyless football / soccer match data.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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