Ermöglicht es einem AI Agent, Echtzeit-Warteschlangen-Verteilungen und Bedingungen abzufragen, um zu entscheiden, ob LLM-Jobs synchron oder über Batch-Queues ausgeführt werden sollen.
Auch bekannt als batchwatch/client
- Stars
- 0
- Tools
- 6
- Downloads, 30 Tage
- —
- Neueste Version
- 0.1.1
- Letzter Commit
- 31. Aug. 2026
- Lizenz
- —
Was ist batchwatch MCP?
batchwatch ist ein MCP server. Ermöglicht es einem AI Agent, Echtzeit-Warteschlangen-Verteilungen und Bedingungen abzufragen, um zu entscheiden, ob LLM-Jobs synchron oder über Batch-Queues ausgeführt werden sollen. Er stellt 6 Tools bereit, etwa should_i_batch, estimate_batchtime, conditions.
Zusammenfassung generiert aus dem README des Projekts
Über batchwatch MCP server
batchwatch-mcp ermöglicht es Entwicklern, die AI Agents wie Claude, Cursor oder Cline nutzen, zu entscheiden, ob LLM-Jobs synchron oder über Batch-Queues laufen sollen. Anstatt zu raten, kann ein Agent Echtzeit-Warteschlangen-Verteilungen und aktuelle Bedingungen abfragen, um fundierte Routing-Entscheidungen zu treffen. Der Server fungiert als zuverlässiger Proxy, der die rohen JSON-Daten der batchwatch API durchreicht – inklusive Metriken wie confidence, basis und freshness –, ohne Zahlen zu erfinden oder ETAs zu fälschen.
Nutzer verbinden den Server über stdio mit ihrem MCP-kompatiblen Client. Für Live-Daten ist ein BATCHWATCH_TOKEN erforderlich, allerdings werden auch ohne Token öffentliche Daten mit einer Verzögerung von 15 Minuten bereitgestellt. Der Server enthält spezifische Tools wie should_i_batch, um zu prüfen, ob eine Queue eine maximale Wartezeit einhält, estimate_batchtime, um Warteverteilungen einzusehen, und conditions, um aktuelle Zustände mit den jüngsten Normen zu vergleichen. Zur Steuerung der API-Kommunikation nutzt er die Einstellungen BATCHWATCH_URL und BATCHWATCH_TIMEOUT_MS.
Was du damit machen kannst
- 1Optimales Job-Routing bestimmenLass einen Agenten entscheiden, ob ein spezifischer Model-Job an eine Batch-Queue gesendet oder synchron ausgeführt werden soll.
- 2Potenzielle Wartezeiten schätzenFrage eine Verteilung darüber ab, wie lange ein spezifischer Job voraussichtlich in der Queue warten wird.
- 3Queue-Health überwachenPrüfe, ob die aktuellen Queue-Bedingungen von der jüngsten Norm abweichen.
- 4Verfügbarkeit der Provider verifizierenIdentifiziere, welche Kombinationen aus Provider und Model aktuell verfügbare Daten liefern.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du batchwatch MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenbatchwatch MCP in Claude Code installieren
$ claude mcp add batchwatch-mcp -- npx -y batchwatch-mcpbatchwatch MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"batchwatch-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"batchwatch-mcp","type":"stdio","command":"npx","args":["-y","batchwatch-mcp"]}'batchwatch MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP in Codex installieren
$ codex mcp add batchwatch-mcp -- npx -y batchwatch-mcpbatchwatch MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.batchwatch-mcp] command = "npx" args = ["-y", "batchwatch-mcp"]
batchwatch MCP in Gemini CLI installieren
$ gemini mcp add -s user batchwatch-mcp npx -- -y batchwatch-mcpbatchwatch MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP tools 6
Erkannt aus dem READMEshould_i_batchestimate_batchtimeconditionsdistributioncoveragewait
| should_i_batch | — | |
| estimate_batchtime | — | |
| conditions | — | |
| distribution | — | |
| coverage | — | |
| wait | — |
Konfiguration
BATCHWATCH_LIVEBATCHWATCH_TOKEN
| Name | Beschreibung | Typ |
|---|---|---|
| BATCHWATCH_LIVE | — | |
| BATCHWATCH_TOKEN | — |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarbatchwatch/client is public and reachablegithub.com/batchwatch/client ↗Bestanden
- Paket nennt dieses Repository als Quellebatchwatch-mcp names batchwatch/client as sourcenpmjs.com/package/batchwatch-mcp ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)No licenseBefund
- Commit oder Release im letzten JahrLast commit or release 2026-08-31github.com/batchwatch/client ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from batchwatch-mcpBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten99 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell6 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNo tool named like delete, drop or execBestanden
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenbatchwatch MCP server
Let an AI agent ask batchwatch "should I batch this job?" instead of guessing.
When a developer asks Claude, Cursor, Cline or any MCP-speaking agent "should I send this to the batch queue or run it synchronously?", this server lets the agent call batchwatch and get the real queue evidence — the measured wait distribution, the current conditions, a graded confidence, and how fresh the data is.
It wraps batchwatch's existing read routes as MCP tools. It is a thin,
faithful proxy: it makes no decision and invents no numbers. Every answer
is the provider's own JSON, passed through verbatim, carrying the n,
confidence, why, basis and freshness the API already returns. If the API
is down or slow, the tool returns an error — never a fabricated figure.
Access & tiers — the same gate as the rest of batchwatch
Because it is a faithful proxy, the server runs on the same tiers as the
batchwatch API — there is no separate MCP plan and no MCP fast lane. Each
tool carries your BATCHWATCH_TOKEN and earns exactly the tier that key earns
anywhere else:
- No token → you read the public data, delayed 15 minutes. You still get every answer — the distribution, the conditions, the verdict — as fresh as the open API serves them.
- A token → the agent earns that key's tier and its freshness, volume and
livebehaviour. Live figures are what let an agent route real traffic on the answer, and they are bought here the same way they are bought at the API.
One access model, gated in one place — the batchwatch tier system (see the
Tiers, delay, quota and the free trial reference in the batchwatch API docs).
Tools
Each tool maps to a real route in src/index.js (there is deliberately no
tradeoff tool — /v1/tradeoff is named in the KRAVSPEC but not built yet, and
a tool for a route that does not answer would be exactly the fabricated
capability this project refuses to ship).
| Tool | Route | What it answers |
|---|---|---|
should_i_batch |
GET /v1/should-i-batch |
Given a model and your own max_wait, does the batch queue currently honour it? The verdict. |
estimate_batchtime |
GET /v1/estimate-batchtime |
How long is my job likely to wait? A distribution, never a single ETA. |
conditions |
GET /v1/conditions |
Current conditions vs the recent norm — "is it me or them?" |
distribution |
GET /v1/distribution |
The full measured wait distribution (the raw evidence). |
coverage |
GET /v1/coverage |
Which provider+model combos have data, and how answerable each is. |
wait |
GET /v1/wait |
The public "is the queue moving now?" reading (delayed without a key). |
batchwatch reports distributions and current conditions, not point ETAs. A personal history of 3-minute medians once produced a 480-minute job; "your job finishes at 14:32" is a lie the one time it matters. The tools' descriptions say so, so the calling model uses the answer correctly.
Install & run
cd mcp
npm install
node index.js # speaks MCP over stdio
Requires Node ≥ 18 (uses the built-in fetch).
Configuration (environment)
| Var | Default | Meaning |
|---|---|---|
BATCHWATCH_URL |
https://batchwatch.dev |
API base. |
BATCHWATCH_TOKEN |
(unset) | Optional API key. Without it the data is delayed, not absent — you still get answers, just older ones. |
BATCHWATCH_TIMEOUT_MS |
8000 |
Per-call timeout. On timeout the tool errors; it never guesses. |
Wiring into a client
Claude Desktop / Cursor / Cline mcpServers entry:
{
"mcpServers": {
"batchwatch": {
"command": "node",
"args": ["/absolute/path/to/batchwatch/mcp/index.js"],
"env": { "BATCHWATCH_TOKEN": "tk_your_key_optional" }
}
}
}
Tests
npm test # offline unit tests (mocked fetch) — deterministic
BATCHWATCH_LIVE=1 npm test # also runs the live smoke against BATCHWATCH_URL
The unit tests assert the load-bearing properties: omitted numeric fields are
never sent as 0; the provider JSON is passed through unchanged; only the real
routes are exposed (no tradeoff); and an API error yields an error, never a
number.
Publishing (registry reach — the point of #57)
The highest-leverage distribution channel for a 2026 dev tool is being the
answer an agent reaches for by default. Once this is published so agents can
install it, batchwatch wins the call instead of merely being mentioned. Targets:
the Anthropic MCP registry, Smithery, and
mcp.so. The package is publish-ready (bin: batchwatch-mcp,
zero build step); registry submission is tracked on Vikunja task #57.
Why this exists
batchwatch measures how long jobs actually wait in LLM providers' async batch queues. Batch is half price, but "done within 24 hours" cannot be planned around, so most callers pay full price out of habit. This server puts the queue evidence one tool-call away from the agent that is about to make that choice.
batchwatch MCP Fragen
Wie füge ich batchwatch MCP zu Claude Code hinzu?
Führe claude mcp add batchwatch-mcp -- npx -y batchwatch-mcp in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich batchwatch MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Tools bietet batchwatch MCP?
Er stellt 6 Tools bereit, darunter should_i_batch, estimate_batchtime, conditions, distribution, coverage.
Benötige ich einen API-Key, um batchwatch zu nutzen?
Nein, du kannst es ohne Token nutzen, um öffentliche Daten zu lesen, allerdings sind die Daten dann um 15 Minuten verzögert.
Liefert der Server spezifische ETAs für den Abschluss eines Jobs?
Nein, der Server meldet gemessene Warteverteilungen und aktuelle Bedingungen anstatt einzelner ETAs, um die Genauigkeit zu gewährleisten.
Was passiert, wenn die batchwatch API nicht verfügbar ist?
Das Tool gibt einen Fehler zurück, anstatt erfundene oder geschätzte Werte zu liefern.