Cochrane Meta-Analysis MCP Server
Enables AI-assisted meta-analysis workflows following Cochrane methodological standards, including importing RevMan data, validation, meta-analysis, forest plots, publication bias assessment, and report generation.
README
Cochrane Meta-Analysis MCP Server
An MCP (Model Context Protocol) server that provides AI-assisted meta-analysis workflows following Cochrane methodological standards.
Features
- RevMan Import: Parse RevMan 5 (.rm5 XML) and Cochrane CSV exports
- Data Validation: Comprehensive validation against Cochrane standards
- Meta-Analysis: R-based statistical analysis using metafor/meta packages
- Forest Plots: Publication-ready visualizations
- Publication Bias: Funnel plots, Egger's test, trim-and-fill
- Reporting: Automated Cochrane-style HTML/PDF reports
Installation
npm install
npm run build
Prerequisites
- Node.js 18+
- R 4.0+ with packages:
- metafor
- meta
- ggplot2
- jsonlite
Install R packages:
install.packages(c("metafor", "meta", "ggplot2", "jsonlite"))
Configuration
Add to Claude Desktop config (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"cochrane-meta": {
"command": "node",
"args": ["/Users/YOUR_USERNAME/Documents/cochrane-meta-mcp/dist/index.js"]
}
}
}
Available Tools
1. import_revman_data
Import and parse RevMan 5 files or Cochrane CSV exports.
{
"file_path": "/path/to/review.rm5",
"format": "rm5"
}
2. validate_cochrane_data
Validate study data against Cochrane standards.
{
"data": { ... },
"validation_level": "comprehensive"
}
3. perform_meta_analysis
Execute meta-analysis following Cochrane Handbook Chapter 10.
{
"data": { ... },
"effect_measure": "OR",
"model": "random",
"heterogeneity_test": true
}
4. generate_forest_plot
Create publication-ready forest plot.
{
"analysis_results": { ... },
"plot_style": "classic",
"output_path": "/path/to/forest_plot.png"
}
5. assess_publication_bias
Perform publication bias assessment.
{
"analysis_results": { ... },
"methods": ["funnel_plot", "egger_test", "trim_fill"],
"output_path": "/path/to/funnel_plot.png"
}
6. generate_cochrane_report
Generate comprehensive Cochrane-style report.
{
"analysis_results": { ... },
"format": "html",
"output_path": "/path/to/report.html"
}
Example Usage with Claude
User: I have a Cochrane CSV file with 10 RCTs comparing intervention A vs control.
Can you help me run a meta-analysis?
Claude: I'll help you analyze this. First, let me import the data using the import_revman_data tool...
[Uses import_revman_data]
Claude: Great! I've imported 10 studies. Let me validate the data...
[Uses validate_cochrane_data]
Claude: Validation passed with 2 warnings about small sample sizes.
Now I'll perform the meta-analysis using a random-effects model
with odds ratios as the effect measure...
[Uses perform_meta_analysis]
Claude: The pooled OR is 0.75 (95% CI: 0.62-0.91), p=0.003, with moderate
heterogeneity (I²=45%). Let me generate a forest plot...
[Uses generate_forest_plot]
Claude: Forest plot created. Now checking for publication bias...
[Uses assess_publication_bias]
Claude: Egger's test p=0.42, no evidence of publication bias.
Generating final report...
[Uses generate_cochrane_report]
Claude: Complete! Your meta-analysis report is ready at report.html
CSV Format
For CSV imports, use this format:
study_id,authors,year,title,intervention,comparison,outcome,events_treatment,n_treatment,events_control,n_control
Study1,Smith 2020,2020,RCT of intervention,Drug A,Placebo,Mortality,10,100,20,100
Study2,Jones 2021,2021,Another RCT,Drug A,Placebo,Mortality,15,150,30,150
For continuous outcomes:
study_id,authors,year,title,intervention,comparison,outcome,mean_treatment,sd_treatment,n_treatment,mean_control,sd_control,n_control
Development
# Watch mode
npm run dev
# Build
npm run build
# Test (coming soon)
npm test
Architecture
- TypeScript MCP Server: Handles tool requests from Claude
- R Bridge: Executes statistical analyses via Rscript
- Validation Layer: Zod schemas for data validation
- Tools: Modular tool implementations for each MCP capability
Integration with Existing Tools
This MCP server integrates with your existing meta-analysis infrastructure:
- Uses your R meta-analysis scripts (
~/meta_analysis_workflow.R) - Compatible with medical research multi-agent system
- Can leverage AI citation processors for literature extraction
Cochrane Compliance
Follows:
- Cochrane Handbook for Systematic Reviews (Chapter 10)
- PRISMA reporting guidelines
- Cochrane risk of bias (RoB 2) recommendations
- GRADE framework for evidence certainty
License
MIT
Version
0.1.0
Author
Matheus Rech
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。