
methods-mcp
io.github.FlynnLachendro由 GitHub 帳號 FlynnLachendro 發布v0.1.7更新於 Oct 27, 2026
MCP server for structured methods extraction + reproducibility heuristics on academic papers.
概覽
本機 MCP 伺服器,可將論文連結、arXiv ID 或 DOI 轉為結構化方法步驟、程式碼倉庫探索與啟發式可重現性評估。
- 可以做什麼
- 解析論文並取得全文:依連結、arXiv ID 或 DOI 取得標準中介資料,並抓取全文與章節切分(優先 ar5iv HTML,退回 PDF)
- 擷取與摘要:由大型語言模型驅動、經結構描述驗證的方法擷取(步驟、試劑、設備、分析、信心度),以及三種深度的摘要
- 尋找程式碼並評估可重現性:找出論文關聯的程式碼倉庫,並僅依 GitHub 中介資料評分,不複製、不執行
- 一鍵綜合檢視:單次呼叫回傳中介資料、方法、倉庫與可重現性評估,並附白話敘述與狀態
- 檢查伺服器運作狀態與設定
- 適用情境
- 適合需要快速篩選論文的場合:讓助理擷取方法步驟、找出作者程式碼,並快速判斷倉庫看起來是否可重現,全程無須複製或執行程式碼。
- 執行需求
- 以 stdio 方式在本機執行,可透過 uvx、uv 或 pip 從 PyPI 安裝。LLM 工具(extract_methods、summarize_paper、methods_repro_review)需要 ANTHROPIC_API_KEY;GITHUB_TOKEN 為選用但建議設定,以提高 GitHub 速率上限;METHODS_MCP_MODEL 可覆寫預設 Claude 模型。需能連線 arXiv、GitHub、Papers With Code 與 Anthropic API。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 methods-mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 c3e4794
工具
0版本歷史
1- v0.1.7最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分