DEV Community

R. Dong
R. Dong

Posted on

I Built an MCP Server That Gives Claude Six Meta-Analysis Tools

I'm a clinician who does meta-analyses. That means a large part of my research life is spent on a handful of repetitive, fiddly tasks: computing a sample size before a study starts, drawing a forest plot, colouring a risk-of-bias traffic light, assembling a PRISMA flow diagram, checking a funnel plot for asymmetry, and formatting a GRADE summary-of-findings table at the very end.

None of these tasks is intellectually hard. All of them are annoying. They live in different tools — a stats package here, a spreadsheet there, a diagram editor somewhere else — and each one has its own import format, its own quirks, and its own way of wasting twenty minutes. When I started using Claude heavily for research work, the obvious question was: why can't the assistant just do these steps, with the same rigour I'd apply by hand?

So I built metaworkbench-mcp: a Model Context Protocol server that exposes six meta-analysis tools to Claude (or any MCP client), running entirely on the user's own machine.

The six tools

  1. Sample size calculator — sample-size and power calculations for common study designs, so the "how many participants do we need?" question gets a defensible answer before data collection, not after.
  2. Forest plot — takes study-level effect estimates and returns a publication-style forest plot with weights, confidence intervals, and the pooled result.
  3. Risk-of-bias traffic light — generates the familiar red/yellow/green domain-by-domain plot used in RoB 2–style assessments.
  4. PRISMA flow diagram — builds the 2020-style flow diagram (identified → screened → included) from your counts, instead of from a drawing tool and a prayer.
  5. Funnel plot with Egger's test — plots effect size against precision and runs Egger's (and Begg's) tests for funnel-plot asymmetry, the standard small-study-effects check.
  6. GRADE summary-of-findings table — assembles the SoF table with the certainty ratings and footnotes that reviewers expect to see.

Each tool is deliberately narrow. The design goal was never "an AI that does your whole systematic review." It was: take the six mechanical steps I repeat in every project, and make each one a single, verifiable tool call.

The design decision that mattered most: everything is local

The server speaks MCP over stdio and computes everything in-process. There is no hosted backend, no account, no telemetry — and, most importantly for research data, no server of mine ever sees your numbers. Unpublished effect estimates, extraction sheets, and draft results stay on your machine; the only thing that travels is the conversation you already have with your model.

This was a hard constraint, not a preference. Meta-analysis work involves pre-publication data that researchers are rightly protective of, and "upload your dataset to our cloud" is a non-starter for a lot of clinical research. A local stdio server removes that whole category of concern: install it, point your MCP client at it, and the computation happens where the data already lives.

The second decision was to keep the statistics boring. Every calculation uses the standard textbook formulas — the same ones you'd find in the Cochrane Handbook tradition — rather than anything novel. Novel statistics in a tool like this would be a bug, not a feature.

Verification: trust, but cross-check against scipy

Because the outputs end up in manuscripts, "it looks right" is not a testing strategy. The server ships with a self-test suite covering all six tools, and the numerical results were cross-validated against reference implementations in numpy/scipy — pooled effects, heterogeneity statistics, Egger's regression, and the rest. The newest tool, the GRADE summary-of-findings generator, passes 93/93 self-tests, and the funnel-plot tool's Egger test was aligned against scipy on symmetric test data before release. If a number disagrees with the reference implementation, that's treated as a release-blocking defect, full stop.

How to use it

The fastest path is npm:

npx metaworkbench-mcp
Enter fullscreen mode Exit fullscreen mode

Then register it with your MCP client as a stdio server. The package is also listed in the official MCP Registry (as io.github.007-cloud-star/metaworkbench-mcp), so registry-aware clients can find it there. If you'd rather not install anything, the same six tools run as a free web workbench — everything computed in your browser, nothing uploaded:

https://007-cloud-star.github.io/metaworkbench/

The source is open, and the release is archived with a citable DOI, because research tools should be citable like research.

Limitations, honestly

This is a one-person project, maintained in the margins of a clinical job. The six tools cover the workflow steps I hit most often; they will not cover everyone's. The statistics are standard, which means they inherit the limitations of the standard methods — an Egger test on five studies is still an Egger test on five studies, and no tool can fix that. And while the test coverage is real, it is not a substitute for a statistician reviewing an analysis that matters.

Next on the list: more heterogeneity and subgroup helpers, and continued alignment checks as the underlying methods guidance evolves. Issues and pull requests are very welcome — especially from researchers who hit an edge case in a real review. That's exactly the feedback loop a tool like this needs.

— R. Dong

Top comments (0)