Research Methods Library is an MCP server published by io.github.mikenguyen13, hosted at research-methods-mcp.vercel.app. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 6 tools, including search, fetch, choose_method, get_code, cite.
Research methods for AI assistants: study design guidance, R and Python code, and citations
102 connections through 5 shared values. Tap any node.
Search sections of textbooks and an R package on research methods and data analysis: statistics and hypothesis testing, regression and generalized linear models, causal inference (difference-in-differences, synthetic control, regression discontinuity, instrumental variables, matching, double machine learning), econometrics, experimental design, survey methods, marketing research, credit scoring, machine learning, and AI. Returns matching sections with their ids, a link, a snippet, the code languages they contain, and a citation.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of results (default 8). |
| query * | string | What to look for, in plain words, e.g. "staggered difference-in-differences with never-treated controls". |
| source | string |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Limit to one work: data_analysis (A Guide on Data Analysis); causalverse (causalverse: The All-in-One Causal Inference Toolkit); credit_score (Credit Scoring: Theory, Methods, and Practice); marketing_research (Marketing Research: A Technical and Academic Treatment); ai_in_action (AI in Action: A Re… |
| language | string | Prefer sections with code in this language. |
{
"name": "search",
"title": "Search the research methods library",
"description": "Search sections of textbooks and an R package on research methods and data analysis: statistics and hypothesis testing, regression and generalized linear models, causal inference (difference-in-differences, synthetic control, regression discontinuity, instrumental variables, matching, double machine learning), econometrics, experimental design, survey methods, marketing research, credit scoring, machine learning, and AI. Returns matching sections with their ids, a link, a snippet, the code languages they contain, and a citation.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1,
"description": "Number of results (default 8)."
},
"query": {
"type": "string",
"minLength": 1,
"description": "What to look for, in plain words, e.g. \"staggered difference-in-differences with never-treated controls\"."
},
"source": {
"enum": [
"data_analysis",
"causalverse",
"credit_score",
"marketing_research",
"ai_in_action",
"advanced_data_analysis",
"tidy_finance_vn",
"tidy_finance_vn_vi",
"social_theory",
"publications"
],
"type": "string",
"description": "Limit to one work: data_analysis (A Guide on Data Analysis); causalverse (causalverse: The All-in-One Causal Inference Toolkit); credit_score (Credit Scoring: Theory, Methods, and Practice); marketing_research (Marketing Research: A Technical and Academic Treatment); ai_in_action (AI in Action: A Reference for Artificial Intelligence); advanced_data_analysis (Advanced Data Analysis); tidy_finance_vn (Applying Tidy Finance with Python to Vietnam); tidy_finance_vn_vi (Tài Chính Ứng Dụng với Python); social_theory (Social Science Theory: A Field Guide to the Theories, Effects, and Frameworks Behind Research and Business); publications (Research Articles and Publications)."
},
"language": {
"enum": [
"r",
"python",
"julia"
],
"type": "string",
"description": "Prefer sections with code in this language."
}
}
},
"annotations": {
"title": "Search the research methods library",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one section of the library by its section id. 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.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Section id, e.g. "data_analysis:sec-regression-discontinuity". |
{
"name": "fetch",
"title": "Read a library section",
"description": "Read one section of the library by its section id. 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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "Section id, e.g. \"data_analysis:sec-regression-discontinuity\"."
}
}
},
"annotations": {
"title": "Read a library section",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Recommend statistical, econometric, causal inference, or machine learning methods for a research question or data analysis task: which statistical test or model fits the data, how to estimate a causal or treatment effect, how to analyze an A/B test or experiment, how many observations are needed (power and sample size), how to handle panel, time-series, survey, text, or survival data, and how to build predictive or credit-scoring models. 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 each applies, key assumptions, R and Python packages, and the library sections that teach them.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of methods (default 3). |
| language | string | Only list packages for this language. |
| question * | string | The research question and setting, e.g. "effect of a minimum wage increase that some states adopted in different years on teen employment". |
{
"name": "choose_method",
"title": "Recommend analysis methods",
"description": "Recommend statistical, econometric, causal inference, or machine learning methods for a research question or data analysis task: which statistical test or model fits the data, how to estimate a causal or treatment effect, how to analyze an A/B test or experiment, how many observations are needed (power and sample size), how to handle panel, time-series, survey, text, or survival data, and how to build predictive or credit-scoring models. 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 each applies, key assumptions, R and Python packages, and the library sections that teach them.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"question"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 6,
"minimum": 1,
"description": "Number of methods (default 3)."
},
"language": {
"enum": [
"r",
"python",
"julia"
],
"type": "string",
"description": "Only list packages for this language."
},
"question": {
"type": "string",
"minLength": 3,
"description": "The research question and setting, e.g. \"effect of a minimum wage increase that some states adopted in different years on teen employment\"."
}
}
},
"annotations": {
"title": "Recommend analysis methods",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Get runnable code from the library for a specific statistical, econometric, causal inference, or machine learning task, in R, Python, or Julia. Suited to requests for code that carries out a named estimator, test, or modeling step; it returns code with brief context, not an explanation of the method. Results can be restricted to one language or one work. Returns code blocks with the section they come from, the packages they use, a link, and a citation.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of sections to return code from (default 4). |
| topic * | string | The task, e.g. "Callaway and Sant'Anna group-time ATT", "rdrobust bandwidth", "WoE binning scorecard". |
| source | string | Limit to one work: data_analysis (A Guide on Data Analysis); causalverse (causalverse: The All-in-One Causal Inference Toolkit); credit_score (Credit Scoring: Theory, Methods, and Practice); marketing_research (Marketing Research: A Technical and Academic Treatment); ai_in_action (AI in Action: A Re… |
| language | string | Programming language of the code: r, python, or julia. |
{
"name": "get_code",
"title": "Get runnable R, Python, or Julia code",
"description": "Get runnable code from the library for a specific statistical, econometric, causal inference, or machine learning task, in R, Python, or Julia. Suited to requests for code that carries out a named estimator, test, or modeling step; it returns code with brief context, not an explanation of the method. Results can be restricted to one language or one work. Returns code blocks with the section they come from, the packages they use, a link, and a citation.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"topic"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 10,
"minimum": 1,
"description": "Number of sections to return code from (default 4)."
},
"topic": {
"type": "string",
"minLength": 2,
"description": "The task, e.g. \"Callaway and Sant'Anna group-time ATT\", \"rdrobust bandwidth\", \"WoE binning scorecard\"."
},
"source": {
"enum": [
"data_analysis",
"causalverse",
"credit_score",
"marketing_research",
"ai_in_action",
"advanced_data_analysis",
"tidy_finance_vn",
"tidy_finance_vn_vi",
"social_theory",
"publications"
],
"type": "string",
"description": "Limit to one work: data_analysis (A Guide on Data Analysis); causalverse (causalverse: The All-in-One Causal Inference Toolkit); credit_score (Credit Scoring: Theory, Methods, and Practice); marketing_research (Marketing Research: A Technical and Academic Treatment); ai_in_action (AI in Action: A Reference for Artificial Intelligence); advanced_data_analysis (Advanced Data Analysis); tidy_finance_vn (Applying Tidy Finance with Python to Vietnam); tidy_finance_vn_vi (Tài Chính Ứng Dụng với Python); social_theory (Social Science Theory: A Field Guide to the Theories, Effects, and Frameworks Behind Research and Business); publications (Research Articles and Publications)."
},
"language": {
"enum": [
"r",
"python",
"julia"
],
"type": "string",
"description": "Programming language of the code: r, python, or julia."
}
}
},
"annotations": {
"title": "Get runnable R, Python, or Julia code",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| ids | array | Section ids, or source ids: data_analysis, causalverse, credit_score, marketing_research, ai_in_action, advanced_data_analysis, tidy_finance_vn, tidy_finance_vn_vi, social_theory, publications. |
| style | string | Citation style (default apa). |
{
"name": "cite",
"title": "Format references",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Section ids, or source ids: data_analysis, causalverse, credit_score, marketing_research, ai_in_action, advanced_data_analysis, tidy_finance_vn, tidy_finance_vn_vi, social_theory, publications."
},
"style": {
"enum": [
"apa",
"chicago",
"mla",
"harvard",
"bibtex",
"ris"
],
"type": "string",
"description": "Citation style (default apa)."
}
}
},
"annotations": {
"title": "Format references",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List the works in the library (textbooks, an R package, and research articles) with their topics, code languages, section counts, licenses, links, and how to cite each one. Suited to questions about what the library covers or which work to consult. Takes no parameters and returns one entry per work.
No parameters.
{
"name": "list_sources",
"title": "List the works in the library",
"description": "List the works in the library (textbooks, an R package, and research articles) with their topics, code languages, section counts, licenses, links, and how to cite each one. Suited to questions about what the library covers or which work to consult. Takes no parameters and returns one entry per work.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List the works in the library",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Research Methods Library: searchable sections, runnable R and Python code, and formatted citations from books, an R package, and research articles by Mike Nguyen on data analysis, statistics, causal inference, econometrics, experimental design, marketing research, empirical finance, credit scoring, machine learning, and AI. The library is relevant whenever a user asks how to analyze data or answer a research question: which statistical test, model, or study design fits their data; how to estimate a causal or treatment effect; how to check assumptions or robustness; how to plan an experiment or compute sample size; how to write analysis code in R or Python; or how to cite a method. For a study-design question, start with choose_method. To read the material, use search and then fetch. For runnable code, use get_code. For a reference list, use cite with the ids of the sections you used. Every result includes the section URL and the citation of the work it comes from.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.