Skip to content
Research Methods Library logo
MCP server
RegistryRemote

Research Methods Library MCP Server

Research methods for AI assistants: study design guidance, R and Python code, and citations

Research Methods Library scores 70 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 3 tools. Filed under AI and memory. GitHub shows 14 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by mikenguyen13MITTypeScript14 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "mikenguyen13-research-methods-mcp": {      "url": "https://research-methods-mcp.vercel.app/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools3Tool docs quality grade C

All capabilities
  • Matches a research question to methods, with when to use each, key assumptions, R and Python packages, and readings. 66 curated methods.

  • Runnable R, Python, or Julia code for a task, with the packages it uses.

  • The works in the library (textbooks, R packages, and research articles), with topics, languages, licenses, and links.

About

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 19,000 sections from 9 books, 2 R packages, and the author's research articles (listed under Sources) covering causal inference, econometrics, experimental design, meta-analysis, marketing research, credit scoring, machine learning, and artificial intelligence.

The server works with Claude, ChatGPT, Amazon Bedrock AgentCore, Cursor, Visual Studio Code, and any other MCP-compatible client. Access is free and requires no account or API key.

Installation

Endpoint: https://research-methods-mcp.vercel.app/mcp. Access is free and requires no account or API key.

Add to Cursor Install in VS Code

ClientConfiguration
Claude (web, desktop, and mobile)Settings → Connectors → Add custom connector; enter the endpoint
Claude Codeclaude mcp add --transport http research-methods https://research-methods-mcp.vercel.app/mcp
ChatGPTSettings → enable developer mode → add a custom connector of type MCP server with the endpoint and no authentication
Amazon Bedrock AgentCoreAdd the endpoint as an MCP server target of an AgentCore Gateway, with no outbound authorization: agentcore add gateway-target --name research-methods --type mcp-server --endpoint https://research-methods-mcp.vercel.app/mcp --gateway <gateway>, then agentcore deploy
Cursor, Visual Studio CodeUse the buttons above
Windsurf, Cline, Zed, and other clientsAdd the following JSON to the client's MCP configuration
{
  "mcpServers": {
    "research-methods": {
      "url": "https://research-methods-mcp.vercel.app/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.

The query above answered in Claude through the connector, followed by a request for BibTeX references

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

ToolWhat it does
choose_methodMatches a research question to methods, with when to use each, key assumptions, R and Python packages, and readings. 66 curated methods.
searchFinds sections across all works, with links, snippets, code languages, and a citation. Compatible with ChatGPT deep research.
fetchReads a section in full, with its code, link, and citation. Compatible with ChatGPT deep research.
get_codeRunnable R, Python, or Julia code for a task, with the packages it uses.
citeReferences in APA, Chicago, MLA, Harvard, BibTeX, or RIS for the sections consulted, deduplicated by work.
list_sourcesThe works in the library (textbooks, R packages, and research articles), 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, only anonymous daily totals of tool calls and client applications; see the privacy policy.

Sources

WorkCodeSectionsServedLicense
A Guide on Data AnalysisPython, R1,634Full textCC BY-NC-SA 4.0
causalverse: The All-in-One Causal Inference ToolkitR1,187Full text and function referenceGPL-3.0
regsensitivity: Regression Sensitivity Analysis for Omitted Variable BiasR113Full text and function referenceMIT
Credit Scoring: Theory, Methods, and PracticePython2,640Full textCC BY 4.0 text, MIT code
Marketing Research: A Technical and Academic TreatmentPython, R2,062Excerpts and code; full text on the websiteAll rights reserved text, MIT code
AI in Action: A Reference for Artificial IntelligenceJulia, Python6,266Excerpts and code; full text on the websiteAll rights reserved
Advanced Data AnalysisPython, R1,834Full textCC BY 4.0
Applying Tidy Finance with Python to VietnamPython1,331Excerpts and code; full text on the websiteAll rights reserved
Tài Chính Ứng Dụng với PythonPython1,310Excerpts and code; full text on the websiteAll rights reserved
Social Science Theory: A Field Guide to the Theories, Effects, and Frameworks Behind Research and BusinessR1,118Full textCC BY 4.0 text, MIT code
Meta-Analysis: A Practical and Modern Guide with RR438Full textCC BY-NC-SA 4.0
Research Articles and Publications—7Abstracts, DOIs, and citationsPublishers' terms

Sections of A Guide on Data Analysis that appear in the Springer print volumes are cited as their published chapter, then the volume. For example, a section on causal inference is cited as Nguyen, M. (2025). Causal inference. In Experimental design (Vol. 4, pp. 7–48). Springer Cham. https://doi.org/10.1007/978-3-032-01839-7_2, in Nguyen, M. (2025). Experimental design (Vol. 4). Springer Cham. https://doi.org/10.1007/978-3-032-01839-7

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 Vercel through api/index.mjs and vercel.json (the hosted endpoint) and on Deno Deploy through src/deno.ts.

Usage analytics

Usage analytics are off by default. They are controlled by these environment variables:

VariableEffect
UPSTASH_REDIS_REST_URL, UPSTASH_REDIS_REST_TOKEN (or KV_REST_API_URL, KV_REST_API_TOKEN, as set by Vercel's Upstash integration)Counts, per UTC day, connections by client application (the name the client reports, such as claude-ai or cursor), calls to each tool, and prompt and resource requests, in an Upstash Redis hash usage:YYYY-MM-DD kept for about 13 months. When the endpoint URL carries a source label (/mcp?src=glama), connections and tool calls are also counted per label (src:<label>, src_calls:<label>); labels outside the list SOURCES in src/usage.ts count as other. Tool arguments, IP addresses, and session identifiers are never read or stored.
STATS_KEYServes a private usage report at /stats?key=<STATS_KEY> (add &days=90 for a longer period, &format=json for raw counts). Requires the Redis variables.
WEB_ANALYTICS_VERCEL=1Adds Vercel Web Analytics (cookieless page views) to the HTML pages. Enable Web Analytics in the Vercel project first.
GA_MEASUREMENT_IDAdds Google Analytics 4 (G-…) to the HTML pages. It sets cookies.

The web analytics measure visits to the landing, privacy, and terms pages only; MCP traffic comes from AI providers' servers rather than browsers, so only the Redis counts measure it. The privacy page describes whichever of these are enabled. The maintainer's dashboard, which combines these counts with the book sites' analytics, is described in docs/DASHBOARD.md.

Development

npm ci
npm run build:index   # parse the book repositories (sibling folders) into data/index.json.gz
npm run diff-index    # compare the new index with the committed one, page by page
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

The index builder reads each book at the commit its live site was built from, which the deploy rule of each book in sources.yml identifies (the tip of a publishing branch, the source commit named by a deploy action, or a pinned commit). It fetches that commit from GitHub without writing any ref and copies the book's source files from git into a temporary folder, so the sibling checkouts, which usually carry unpublished work, are never switched or modified. The repositories are found in the folder that contains this repository's main checkout (also when building from a git worktree), or in SOURCES_ROOT. npm run build:index -- --working-tree reads the checkouts as they are instead, to preview unpublished work; an index built that way is not to be committed. After a rebuild, npm run diff-index lists the pages added and removed for each book and fails if a removed page is still live.

To add a book, add an entry, with its deploy rule, 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.

Frequently asked questions

What is Research Methods Library MCP Server?

Research methods for AI assistants: study design guidance, R and Python code, and citations

How do I install Research Methods Library MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Research Methods Library MCP Server connects to the remote endpoint https://research-methods-mcp.vercel.app/mcp, so there is nothing to install locally.

Is Research Methods Library MCP Server free and open source?

Yes. Research Methods Library MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Research Methods Library MCP Server support remote (HTTP) connections?

Yes. Research Methods Library MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does Research Methods Library MCP Server provide?

Research Methods Library MCP Server provides 3 tools: choose_method, get_code, and list_sources. See the full tool list for descriptions and parameters.

How is Research Methods Library MCP Server's trust score calculated?

Research Methods Library MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server