Skip to main content
Glama

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 outputs

Tools exposed:

Tool

Input

Returns

sample_size

design (means / proportions / noninferiority) + the usual α, power, ratio, attrition

per-group n, total, attrition-adjusted recruitment target (text + structured)

forest_plot

studies [{name, effect, ciLower, ciUpper}], measure OR/RR/MD/SMD, model

fixed-effect + DerSimonian–Laird pooling, Q / I² / τ², forest-plot SVG; MCP Apps UI in supporting hosts

rob_traffic_light

studies with 5 RoB 2 domain judgements (+ optional N, overall override), weighted flag

robvis-style traffic-light SVG + summary bar SVG; overall per the RoB 2 rule, 2+-domain "some concerns" flagged †

prisma_diagram

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_plot is 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/read with a restrictive CSP (no external domains) and implements the app bridge: it sends ui/initialize, then renders each ui/notifications/tool-result's structuredContent with its own renderer. Open app/forest-plot.html?demo=1 in 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-mcp

claude.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: initialize shows the server declaring the UI extension; forest_plot's _meta carries the resource URI; resources/read returns the app HTML with the correct MIME type.

Available Tools

4 tools
forest_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

    A4.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI-assisted meta-analysis workflows following Cochrane methodological standards, including importing RevMan data, validation, meta-analysis, forest plots, publication bias assessment, and report generation.
      6
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets Claude run validated, auditable HEOR analyses (cohort construction, outcome computation, overlap-weighted comparison) as deterministic tools on synthetic healthcare data.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects 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.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Gives 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