
methods-mcp
io.github.FlynnLachendroPublished by GitHub account FlynnLachendrov0.1.7Updated Oct 27, 2026
MCP server for structured methods extraction + reproducibility heuristics on academic papers.
Overview
Local MCP server that turns an academic paper URL, arXiv ID or DOI into structured methods, code repo discovery and a heuristic reproducibility verdict.
- What you can do
- Resolve papers and fetch text: look up canonical metadata from a URL, arXiv ID or DOI, and retrieve full text with section splits (ar5iv HTML or PDF fallback)
- Extract and summarize: LLM-driven, schema-validated methods extraction (steps, reagents, equipment, analyses, confidence) and summaries at three depths
- Find code and judge reproducibility: discover a paper's code repository and score it from GitHub metadata without cloning or running anything
- Run a composite review: one call returning metadata, methods, repo and reproducibility assessment with a plain-English narrative and status
- Check server health and configuration
- When to use it
- Useful when you want an assistant to triage research papers quickly: pull out method steps, locate the authors' code, and get a fast signal on whether a repository looks reproducible, without cloning or executing anything.
- Requirements
- Runs locally over stdio, installed from PyPI with uvx, uv or pip. ANTHROPIC_API_KEY is required for the LLM tools (extract_methods, summarize_paper, methods_repro_review). GITHUB_TOKEN is optional but recommended to raise GitHub rate limits. METHODS_MCP_MODEL optionally overrides the default Claude model. Network access to arXiv, GitHub, Papers With Code and the Anthropic API.
Installation
In SourceWeft
- Open methods-mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
methods-mcp
[PyPI] [Python] [License: MIT]
Lightweight, on-demand MCP server for structured methods extraction + reproducibility heuristics on academic papers. Built for the Worldwide AI Science Fellowship build challenge.
⚠️ Status: alpha (0.1.x). The tool surface and output shapes may shift between minor versions. Pin to an exact version in production. Bug reports very welcome via GitHub Issues.
Quick demo
methods-mcp is a small, sharply-scoped Model Context Protocol server. It gives any AI agent (Claude Code, Claude Desktop, your Agent SDK script, etc.) eight tools that turn an academic paper URL into:
- canonical metadata,
- best-effort full text + section split,
- a Pydantic-validated structured methods object (steps / reagents / equipment / analyses),
- the paper's associated code repository (best-effort discovery),
- a no-execution-required reproducibility verdict for that repo, and
- a multi-mode summary.
The wedge: heavyweight pipelines like Paper2Agent (Stanford) take 30 minutes to hours to digest a paper into agent-ready tools. methods-mcp is the agent-callable, on-demand complement — every tool returns in seconds, no clone, no execution.
Install
API keys
For best performance, set both:
Neither key is logged or persisted — they're sent only to api.anthropic.com and api.github.com respectively. See SECURITY.md.
Use it from Claude Code
Then in any Claude Code chat:
Take https://arxiv.org/abs/2509.06917 and run
methods_repro_review. Summarise what the paper does, the methods steps, and how reproducible the repo looks.
Use it from the Claude Agent SDK
Tools
All tools return Pydantic v2 models (validated, JSON-serialisable). See src/methods_mcp/schemas.py for the full type surface.
Design notes
extract_methodsuses Anthropic tool-use to coerce the model into emitting an instance of theMethodsStructuredPydantic schema. On validation failure we send one repair message with the validation error and try again before raising.assess_repo_reproducibilitydoes not clone or execute anything. It scores the repo from publicly-readable GitHub metadata + the recursive tree listing. This is the deliberate wedge against batch tools that try to actually rerun the paper.fetch_paper_textprefers ar5iv HTML over PDF parsing for arXiv papers. Falls back topypdffor non-arXiv inputs.- The default model is
claude-sonnet-4-6. Override viaMETHODS_MCP_MODELenv var or per-callmodel=arg. methods_repro_reviewreturns a self-describing response. Every call sets a top-levelstatus("ok"/"partial"/"empty") and anarrativestring that summarises everything retrieved in plain English — including every numeric score in context. A reader who reads onlynarrative+statusgets the full picture without needing to learn the sub-object shapes. Sub-objects can benullwhen unavailable (e.g.repro_assessment: nullon a paper with no detected repo —statusstays"ok"because "no repo" isn't a failure). Failed sub-steps contribute a structured entry toerrorswith{step, error_type, message, hint}, wherehintis an actionable plain-English suggestion for recognised patterns (missing API keys, rate-limits, 404s, timeouts, etc.) andnullotherwise.
Scores & verdicts explained
Tool outputs contain three numeric fields that look similar but mean very different things. They are triage signals for an agent deciding whether a paper is worth digging into, not calibrated claims about correctness.
Verdict buckets (repro_assessment.verdict) are thresholds on overall_score:
Enum values you'll see in outputs:
code_repo.detection_method:paper-text|abstract-link|papers-with-code|metadata|nonemetadata.source:arxiv|biorxiv|doi|url|unknown
Security & limitations
What this server actually does when you install and run it:
- Network calls only to:
export.arxiv.org,ar5iv.labs.arxiv.org,arxiv.org(PDFs),api.github.com,paperswithcode.com,api.anthropic.com. No telemetry, no analytics, no phone-home. - Reads
ANTHROPIC_API_KEY(required for LLM tools) and optionallyGITHUB_TOKENfrom environment variables. These are sent only to Anthropic / GitHub respectively. Never logged, never persisted to disk. - Writes nothing to your filesystem. No cache directories, no downloaded PDFs, no temp files.
- Executes no user-supplied code. No
eval,exec,subprocess,pickle.loads, or shell-outs. The reproducibility tool deliberately does not clone or run repositories — it scores from the GitHub REST API only.
Limitations to be aware of:
- Adversarial papers may produce misleading structured output. The
extract_methodstool sends paper text to Claude. A paper containing prompt-injection content could yield wrong (but schema-valid) structured methods. Treat the output as a research aid, not ground truth. - The reproducibility verdict is a heuristic, not a proof. A high score means the repo looks well-structured for reproduction; it does not guarantee that running the code reproduces the paper. For full validation see Paper2Agent.
- Intended for local stdio use. The HTTP/SSE transports are provided for development convenience but should only be exposed on trusted networks (no SSRF protection beyond what httpx provides).
Reporting issues:
Security issues: please email [email protected] (also see SECURITY.md). Functional bugs: open a GitHub issue.
Pair with paper-mcp
For broader paper search / citation graph tooling, run paper-mcp (Bhvaik) alongside in the same Claude Code session. paper-mcp does title-keyed search, full-text fetch, citations, and references; methods-mcp adds the structured-methods + reproducibility layer on top. The two were intentionally designed to compose.
Develop locally
License
MIT — see LICENSE.
Acknowledgements
Built for the Worldwide AI Science Fellowship inaugural cohort. Thanks to Michael Raspuzzi for the open-ended brief.
Built on:
- FastMCP 3.x — the MCP server scaffold.
- Claude Agent SDK — the agent loop in the demo.
- ar5iv.labs.arxiv.org — clean HTML for arXiv papers.
- Anthropic Claude — the LLM behind structured extraction.
Source: README.md at commit c3e4794
Tools
0Version history
1- v0.1.7LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts