- Language
- TypeScript
- Last commit
- 1h ago
- Forks
- 0
- Open issues
- 0
- Registry update
- Oct 15, 2026
Connect
remote$claude mcp add --transport http research-methods-mcp https://mcp.research-methods.deno.net/mcpHeaders
Nothing to configure — it works as is.
Security review
Review passedReviewed 59m ago.
- tools
- 6 tools scanned
- metadata
- scanned
No findings.
Tools
6search
Search sections of open books and an R package on research methods: causal inference (difference-in-differences, synthetic control, regression discontinuity, instrumental variables, matching, double machine learning), econometrics, experiments, regression, marketing research, credit scoring, machine learning, and AI. Returns matching sections with a link, a snippet, the code languages they contain, and a citation. Read a result in full with fetch.
fetch
Read one section of the library by its id (from search, get_code, or choose_method). Returns the section in Markdown with its code, the section URL, and the citation of the work it comes from. Long sections come in parts; the text names the id of the next part.
choose_method
Recommend statistical, econometric, causal inference, or machine learning methods for a research question. Describe the question, the data (cross-section, panel, time series, experiment), how the treatment or exposure was assigned, and the outcome. Returns candidate methods with when to use each, key assumptions, R and Python packages, and the library sections that teach them.
get_code
Get runnable code from the library for a statistical, econometric, causal inference, or machine learning task, in R, Python, or Julia. Returns code blocks with the section they come from, the packages they use, a link, and a citation.
cite
Format references for works in the library in APA, Chicago, MLA, Harvard, BibTeX, or RIS. Pass the ids of the sections you used to get a deduplicated reference list plus the section links, or pass source ids to cite whole works. With no ids, returns a reference for every work in the library.
list_sources
List the books and packages in the library with their topics, code languages, licenses, links, and how to cite each one.
![]()
Research Methods Library
A Model Context Protocol server that grounds AI assistants in methodological texts: study design recommendations, identifying assumptions, runnable R and Python code, and a citation for every source.
The Research Methods Library is a Model Context Protocol (MCP) server. Given a research question, it recommends candidate designs, states their identifying assumptions, returns runnable R and Python code, and supplies a formatted citation for every source consulted. Its index contains approximately 13,000 sections from four textbooks and one R package (listed under Sources) covering causal inference, econometrics, experimental design, marketing research, credit scoring, machine learning, and artificial intelligence.
The server works with Claude, ChatGPT, Cursor, Visual Studio Code, and any other MCP-compatible client. Access is free and requires no account or API key.
Installation
Endpoint: https://mcp.research-methods.deno.net/mcp. Access is free and requires no account or API key.
| Client | Configuration |
|---|---|
| Claude (web, desktop, and mobile) | Settings → Connectors → Add custom connector; enter the endpoint |
| Claude Code | claude mcp add --transport http research-methods https://mcp.research-methods.deno.net/mcp |
| ChatGPT | Settings → enable developer mode → add a custom connector of type MCP server with the endpoint and no authentication |
| Cursor, Visual Studio Code | Use the buttons above |
| Windsurf, Cline, Zed, and other clients | Add the following JSON to the client's MCP configuration |
{
"mcpServers": {
"research-methods": {
"url": "https://mcp.research-methods.deno.net/mcp"
}
}
}
Example queries
States raised the minimum wage in different years. How do I estimate the effect on teen employment?
For this query the assistant calls choose_method, which returns staggered difference-in-differences together with its scope conditions, the reason a conventional two-way fixed-effects regression can be biased when treatment effects are heterogeneous, the assumptions to verify, implementations in R (did, fixest, didimputation, HonestDiD) and Python (csdid, pyfixest, differences), and the relevant readings.
Give me Python code for a probability-of-default model with gradient boosting.
Only California passed the law and I have 30 years of state data. What can I do?
Write the methods section for my regression discontinuity and give me BibTeX for the sources.
Each response links to the specific section consulted and carries the citation of the work from which it is drawn.
Tools
| Tool | What it does |
|---|---|
choose_method | Matches a research question to methods, with when to use each, key assumptions, R and Python packages, and readings. 62 curated methods. |
search | Finds sections across all works, with links, snippets, code languages, and a citation. Compatible with ChatGPT deep research. |
fetch | Reads a section in full, with its code, link, and citation. Compatible with ChatGPT deep research. |
get_code | Runnable R, Python, or Julia code for a task, with the packages it uses. |
cite | References in APA, Chicago, MLA, Harvard, BibTeX, or RIS for the sections consulted, deduplicated by work. |
list_sources | The books and packages, with topics, languages, licenses, and links. |
Prompts (slash commands in clients that support them): plan_analysis, write_methods_section, explain_method. Resources: the library catalog and a table of contents for each work.
All tools are read-only. The server makes no calls to language models and stores no information about its users; see the privacy policy.
Sources
| Work | Code | Served | License |
|---|---|---|---|
| A Guide on Data Analysis | R | Full text | CC BY-NC-SA 4.0 |
| causalverse: The All-in-One Causal Inference Toolkit | R | Full text and function reference | GPL-3 |
| Credit Scoring: Theory, Methods, and Practice | Python | Full text | CC BY 4.0 text, MIT code |
| Marketing Research: A Technical and Academic Treatment | R | Excerpts and code; full text on the website | All rights reserved text, MIT code |
| AI in Action: A Reference for Artificial Intelligence | Python | Excerpts and code; full text on the website | All rights reserved |
Chapters of A Guide on Data Analysis that appear in the Springer print volumes are cited as those volumes, for example Nguyen, M. (2025). Foundations of data analysis (Vol. 1). Springer Cham. https://doi.org/10.1007/978-3-032-01858-8.
Method
The source files of each work (.Rmd, .qmd, .Rd) are parsed into a single index of sections, code blocks, and citations. During index construction every link is verified against the published website: a section whose anchor is absent links to its chapter page, and unpublished pages are excluded. Queries are answered from the in-memory index; no database or language model is involved.
Self-hosting
docker build -t research-methods-mcp .
docker run -p 8080:8080 research-methods-mcp # http://localhost:8080/mcp
Or with Node.js: npm ci && npm run build && npm start (listens on 127.0.0.1:8787; set HOST and PORT to change). The same handler runs on Deno Deploy through src/deno.ts.
Development
npm ci
npm run build:index # parse the book repositories (sibling folders) into data/index.json.gz
npm run build # bundle dist/stdio.js and dist/http.js
npm test # end-to-end tests through real MCP clients
npm run check-links # audit every link in the index against the live sites
To add a book, add an entry to sources.yml and rebuild the index. To add or tune a method, edit methods.yml; the build fails if a method points at a section that does not exist.
Citation
Users are asked to cite the works they draw on; the cite tool formats the references. To cite the server itself, see CITATION.cff.
License
The server code is MIT licensed. The content it returns keeps each work's own license, listed above and by the list_sources tool.
From the server's repository — third-party content, read it before running anything it suggests.
More in Search
IstruzioneMessina
it.istruzionemessina
Italian education news for Messina: list, search, and analyze public articles.
Lucernel
com.lucernel
Public Lucernel apps and articles: list, search, and analyze published content.
DATASUS SIH/SUS — Brazil Hospital Admissions (AIH) MCP
io.github.SidneyBissoli
DATASUS SIH/SUS hospital admissions in Brazil (AIH, 1992-2025): ICD-10 causes, ICSAP, rates.
paper-finder-student-mcp
io.github.AnonymousOnyx22
Search scholarly papers, find open access copies and related work through OpenAlex. No key needed.
student-citations-mcp
io.github.AnonymousOnyx22
APA, MLA and Chicago citations from a DOI, an ISBN or typed details. No account.
Agent Clubhouse — Discover Voluntary Shared Work
io.github.Pbarnett
Find voluntary shared agent work: signed artifacts, research and questions. Read-only introduction.
Listing from the official MCP Registry · repository facts from GitHub, just now.