metaworkbench-mcp
Meta Workbench — MCP server (+ MCP Apps UI)
The four Meta Workbench web tools (https://007-cloud-star.github.io/metaworkbench/)
are also an MCP server, applying Claude MCP Apps: the forest_plot tool is
bound to an MCP Apps UI resource that renders an interactive forest plot inside
Claude; hosts without MCP Apps support get the identical plot as SVG text plus
structured numbers, so nothing depends on the UI.
Install from npm: npx -y metaworkbench-mcp (see "Register the server" below).
mcp-name: io.github.007-cloud-star/metaworkbench-mcp
What was built
metaworkbench-mcp/
├── server.mjs # MCP server (stdio) — official @modelcontextprotocol/sdk
├── lib/
│ ├── sampleSize.mjs # ported from sample-size-calculator (verbatim cores)
│ ├── forest.mjs # ported from forest-plot-generator (DL pooling + SVG)
│ ├── rob.mjs # ported from rob-traffic-light-generator (RoB 2 + SVG)
│ └── prisma.mjs # ported from prisma-flow-diagram-generator (SVG)
├── app/
│ └── forest-plot.html # MCP Apps UI resource (ui://metaworkbench/forest-plot)
└── test/
├── selftest.mjs # stdio end-to-end test (drives the real server)
├── py_check.py # independent numpy/scipy reference computations
└── validate_svg.py # XML well-formedness check for the SVG outputsTools exposed:
Tool | Input | Returns |
| design ( | per-group n, total, attrition-adjusted recruitment target (text + structured) |
| studies | fixed-effect + DerSimonian–Laird pooling, Q / I² / τ², forest-plot SVG; MCP Apps UI in supporting hosts |
| studies with 5 RoB 2 domain judgements (+ optional N, overall override), | robvis-style traffic-light SVG + summary bar SVG; overall per the RoB 2 rule, 2+-domain "some concerns" flagged † |
| identification/screening counts (+ exclusion reasons) | PRISMA 2020 flow diagram SVG; derived counts computed for you |
MCP Apps wiring (per the extension spec, io.modelcontextprotocol/ui):
the server declares the extension capability with MIME type
text/html;profile=mcp-app;forest_plotis registered with_meta.ui.resourceUri = "ui://metaworkbench/forest-plot"(the legacy_meta["ui/resourceUri"]key is populated too, by the ext-apps SDK);the HTML is served via
resources/readwith a restrictive CSP (no external domains) and implements the app bridge: it sendsui/initialize, then renders eachui/notifications/tool-result'sstructuredContentwith its own renderer. Openapp/forest-plot.html?demo=1in a browser to preview it with the web tool's demo dataset.
Related MCP server: HEOR MCP Server
Register the server
Claude Desktop (macOS/Windows) — add to claude_desktop_config.json
(Settings → Developer → Edit Config):
{
"mcpServers": {
"metaworkbench": {
"command": "npx",
"args": ["-y", "metaworkbench-mcp"]
}
}
}Then restart Claude Desktop. (npx downloads the package and its dependencies —
@modelcontextprotocol/sdk, @modelcontextprotocol/ext-apps, zod — on first run.)
Claude Code:
claude mcp add metaworkbench -- npx -y metaworkbench-mcpclaude.ai — custom connectors on claude.ai require a remote MCP server reachable over HTTPS; a local stdio server like this one cannot be pasted in directly. Use it through Claude Desktop (same account), or deploy this server behind an HTTPS/streamable-HTTP endpoint later if a web-side connector is wanted.
Test results
npm test ( = node test/selftest.mjs) drives the server over stdio —
initialize, tools/list, tools/call for all four tools, resources/list +
resources/read — and cross-checks the numbers against an independent
numpy/scipy implementation (test/py_check.py); all five SVG outputs are
parsed as XML to confirm they are valid, well-formed SVG.
Result: 38/38 checks passed (2026-11-11). Highlights:
Sample size, textbook cases: means Δ=5, σ=10, 80% power → 63/group; proportions 20% vs 10% → 199/group (444 total after 10% attrition); non-inferiority binary case → 1706/group. All identical to scipy.
DL pooling, 4-study toy set: fixed OR 0.8153 [0.6736, 0.9868], random-effects OR 0.8118 [0.6409, 1.0283], Q = 4.446, I² = 32.5%, τ² = 0.01889 — every value matches the scipy implementation to ≤1e-9 relative error (Q p-value to 1e-6). The web tool's 6-study demo dataset also matches (DL OR 0.8020, I² = 46.2%).
RoB 2 rules verified: any High → overall High; two "some concerns" → Some + † flag; override honoured; weighted summary engages when N is supplied.
PRISMA derived counts verified: 1500 identified → 1175 screened → 125 sought → 110 assessed.
MCP Apps:
initializeshows the server declaring the UI extension;forest_plot's_metacarries the resource URI;resources/readreturns the app HTML with the correct MIME type.
Available Tools
4 toolsforest_plotForest plot with DerSimonian–Laird poolingA
Pool study-level effect sizes by inverse variance (fixed-effect and DerSimonian–Laird random-effects, with Q, I², τ²) and draw a forest plot as SVG. Standard errors are recovered from the 95% CIs. In MCP Apps hosts an interactive view renders inside the conversation; elsewhere the result carries the same plot as SVG text plus the pooled numbers.
Inputs: studies (required), model, measure.
prisma_diagramPRISMA 2020 flow diagramA
Draw a PRISMA 2020 flow diagram (SVG) for a review that searched databases and registers. Derived counts are computed for you: records screened = identified − removed before screening; reports sought = screened − excluded; reports assessed = sought − not retrieved.
Inputs: databases (required), studiesIncluded (required), registers, notRetrieved, +7 more.
rob_traffic_lightRoB 2 traffic-light plotA
Draw a robvis-style RoB 2 traffic-light plot (SVG) from per-domain judgements, plus the summary bar plot (SVG). The overall judgement follows the RoB 2 rule unless overridden per study. Studies with 'some concerns' in 2+ domains are flagged † (RoB 2 allows considering an overall High there; never applied silently).
Inputs: studies (required), weighted.
sample_sizeSample size calculatorA
Sample size for a two-group comparative study using normal approximations (same formulas as the Meta Workbench web calculator). design='means': two independent means (needs diff, sd1, sd2). design='proportions': two independent proportions, pooled-null variance, no continuity correction (needs p1, p2 as fractions). design='noninferiority': continuous (sd1/sd2, expectedDiff, margin) or binary (p1/p2, margin) endpoint. Returns per-group analysable n, total, and the attrition-adjusted recruitment target.
Inputs: design (required), p1, p2, sd1, +11 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct stage of the systematic-review workflow: sample-size planning, effect-size pooling/forest plotting, risk-of-bias visualization, and PRISMA flow diagramming. There is no resource or action overlap, and the names alone tell an agent which one to pick.
All four tools use consistent snake_case noun-phrase naming (sample_size, forest_plot, rob_traffic_light, prisma_diagram). No mixing of verb styles or casing conventions occurs.
Four tools is a tight, well-scoped surface where every tool covers a clearly separate deliverable of a meta-analysis workbench. Nothing feels padded or redundant.
The core arc (plan sample size, appraise bias, synthesize with a forest plot, report flow) is covered, but common meta-analysis operations such as funnel plot/publication-bias tests, subgroup or sensitivity analysis, meta-regression, and a GRADE/summary-of-findings output are absent. Agents would have to fall back on other tools for these routine steps.
Maintenance
Related MCP Connectors
Systematic reviews from chat: PRISMA 2020 diagrams, risk-of-bias figures, kappa and AI screening.
197 MCP tools for medical research: 168 deterministic engines + 26 AI writers; 46 by default.
Claude-powered AI tools: research, write, code, analyze, translate, debate, pitch, score, and more.
36 free private calculator tools for Claude. No accounts, no data leaves your session.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI-assisted meta-analysis workflows following Cochrane methodological standards, including importing RevMan data, validation, meta-analysis, forest plots, publication bias assessment, and report generation.61MIT
- AlicenseNot gradedqualityCmaintenanceLets Claude run validated, auditable HEOR analyses (cohort construction, outcome computation, overlap-weighted comparison) as deterministic tools on synthetic healthcare data.MIT
- AlicenseNot gradedqualityCmaintenanceConnects your own AI agent to a systematic review and meta-analysis workbench, exposing tools for protocol, search, deduplication, screening, full-text handling, data extraction, risk of bias, meta-analysis, GRADE and PRISMA. The agent drafts suggestions that you review and accept or dismiss in the app, keeping a human in the loop.1MIT
- AlicenseNot gradedqualityDmaintenanceGives Claude a statistics knowledge base covering 29 statistical tests and 34 R packages, with tools for choosing tests, checking assumptions, calculating power and effect sizes, and generating complete R analysis scripts. It also exposes read-only knowledge-base resources and workflow prompts that guide a research project from question to APA-reported results.MIT