Research Methods Library is a Model Context Protocol (MCP) server designed to enable AI assistants to work on the basis of research methodology texts, providing research design recommendations, explanations of identification assumptions, runnable R and Python code, and citations for each source.
Purpose: Intended for research scenarios that require research methodology support. Given a research question, the server recommends candidate designs, explains their identification assumptions, returns runnable R and Python code, and provides formatted citations for each source consulted.
Key capabilities: The index contains approximately 19,000 sections from 9 books, 2 R packages, and the author's research articles, covering causal inference, econometrics, experimental design, meta-analysis, market research, credit scoring, machine learning, and artificial intelligence. Example queries include: how states that raised the minimum wage in different years can estimate the impact on teen employment (calling choose_method, returning staggered difference-in-differences and its scope conditions, why conventional two-way fixed effects regression may be biased under heterogeneous treatment effects, the assumptions that need to be verified, R and Python implementations, and related reading materials); providing Python code for gradient boosting for a probability of default model; the methods available when only California has passed a law and 30 years of state-level data are available; and writing a methods section for a regression discontinuity design with BibTeX for the sources. Each response links to the specific sections consulted and includes a citation for that work.
Usage: The server endpoint is located at https://research-methods-mcp.vercel.app/mcp , free to use, no account or API key required. Works with Claude, ChatGPT, Amazon Bedrock AgentCore, Cursor, Visual Studio Code, and any other MCP-compatible client. Supports prompts (slash commands in clients that support slash commands): plan_analysis, write_methods_section, explain_method. Resources include the library catalog and a catalog for each work. Can also be run locally with Node.js: npm ci && npm run build && npm start (listens on 127.0.0.1:8787, changeable via the HOST and PORT environment variables). The same handler runs on Vercel via api/index.mjs and vercel.json (hosted endpoint), and on Deno Deploy via src/deno.ts.
Use cases: academic or applied research scenarios that need research method advice, research design choices, identification assumption checks, R/Python code examples, and standardized citations.
Limitations: all tools are read-only. The server does not call language models and does not store user information; it only records anonymous daily totals of tool calls and client applications. Usage analytics is off by default and controlled by an environment variable. The server code is under the MIT license; returned content retains each work's own license. When building the index, it fetches from GitHub the commits used for each book's live site build, writes no citations, and copies source files to a temporary folder. To add a book, add an entry in sources.yml and rebuild the index; to add or adjust a method, edit methods.yml; the build fails if a method points to a nonexistent chapter.