Provides containerized deployment of the R Econometrics MCP server, allowing for easier setup and isolation of the required R environment and dependencies.
Uses Python as the interface language for the MCP server that connects R's econometric capabilities to AI assistants.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@R Econometrics MCP Serverrun a linear regression to see if marketing spend predicts sales revenue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RMCP: Statistical Analysis through Natural Conversation
Turn conversations into comprehensive statistical analysis - A Model Context Protocol (MCP) server with 52 statistical analysis tools across 11 categories and 429 R packages from systematic CRAN task views. RMCP enables AI assistants to perform sophisticated statistical modeling, econometric analysis, machine learning, time series analysis, and data science tasks through natural conversation.
π Quick Start (30 seconds)
π Try the Live Server (No Installation Required)
HTTP Server: https://rmcp-server-394229601724.us-central1.run.app/mcp
Interactive Docs: https://rmcp-server-394229601724.us-central1.run.app/docs
Health Check: https://rmcp-server-394229601724.us-central1.run.app/health
π₯οΈ Or Install Locally
That's it! RMCP is now ready to handle statistical analysis requests via Claude Desktop, Claude web, or any MCP client.
π― | π§
Related MCP server: Statsource MCP Server
β¨ What Can RMCP Do?
π Regression & Economics
Linear regression, logistic models, panel data, instrumental variables β "Analyze ROI of marketing spend"
β° Time Series & Forecasting
ARIMA models, decomposition, stationarity testing β "Forecast next quarter's sales"
π§ Machine Learning
Clustering, decision trees, random forests β "Segment customers by behavior"
π Statistical Testing
T-tests, ANOVA, chi-square, normality tests β "Is my A/B test significant?"
π Data Analysis
Descriptive stats, outlier detection, correlation analysis β "Summarize this dataset"
π Data Transformation
Standardization, winsorization, lag/lead variables β "Prepare data for modeling"
π Professional Visualizations
Inline plots in Claude: scatter plots, histograms, heatmaps β "Show me a correlation matrix"
π Smart File Operations
CSV, Excel, JSON import with validation β "Load and analyze my sales data"
π€ Natural Language Features
Formula building, error recovery, example datasets β "Help me build a regression formula"
π
π Real Usage with Claude
Business Analysis
You: "I have sales data and marketing spend. Can you analyze the ROI?"
Claude: "I'll run a regression analysis to measure marketing effectiveness..."
Result: "Every $1 spent on marketing generates $4.70 in sales. The relationship is highly significant (p < 0.001) with RΒ² = 0.979"
Economic Research
You: "Test if GDP growth and unemployment follow Okun's Law using my country data"
Claude: "I'll analyze the correlation between GDP growth and unemployment..."
Result: "Strong support for Okun's Law: correlation r = -0.944. Higher GDP growth significantly reduces unemployment."
Customer Analytics
You: "Predict customer churn using tenure and monthly charges"
Claude: "I'll build a logistic regression model for churn prediction..."
Result: "Model achieves 100% accuracy. Each additional month of tenure reduces churn risk by 11.3%. Higher charges increase churn risk by 3% per dollar."
π¦ Installation
Prerequisites
Python 3.10+
R 4.4.0+ with comprehensive package ecosystem: RMCP uses a systematic 429-package whitelist from CRAN task views organized into 19+ categories:
Package Selection: Evidence-based using CRAN task views, download statistics, and 4-tier security assessment
Install RMCP
Claude Desktop Integration
Add to your Claude Desktop MCP configuration:
HTTP Server Integration (Claude Web)
Production Server (ready to use):
Test the connection:
Local HTTP server:
Command Line Usage
βοΈ Configuration
RMCP supports flexible configuration through environment variables, configuration files, and command-line options:
π (auto-generated from code)
π₯ Key Features
π― Natural Conversation: Ask questions in plain English, get statistical analysis
π Comprehensive Package Ecosystem: 429 R packages from systematic CRAN task views with 4-tier security system
π Professional Output: Formatted results with markdown tables and inline visualizations
π Production Ready: Full MCP protocol compliance with HTTP transport and SSE
βοΈ Flexible Configuration: Environment variables, config files, and CLI options
β‘ Fast & Reliable: 100% test success rate across all scenarios
π Multiple Transports: stdio (Claude Desktop) and HTTP (web applications)
π‘οΈ Secure: Evidence-based package selection with security-conscious permission tiers
π Documentation
Resource | Description |
Copy-paste ready examples with real data | |
Panel data, time series, advanced econometrics | |
ARIMA, forecasting, decomposition | |
Inline visualizations in Claude | |
Auto-generated API reference |
π§ͺ Validation
RMCP has been tested with real-world scenarios achieving 100% success rate:
β Business Analysts: Sales forecasting with 97.9% RΒ², $4.70 ROI per marketing dollar
β Economists: Macroeconomic analysis confirming Okun's Law (r=-0.944)
β Data Scientists: Customer churn prediction with 100% accuracy
β Researchers: Treatment effect analysis with significant results (p<0.001)
π€ Contributing
We welcome contributions!
See CONTRIBUTING.md for detailed guidelines.
π License
MIT License - see LICENSE file for details.
π οΈ Quick Troubleshooting
R not found?
Missing R packages?
MCP connection issues?
π Need more help? Check the examples directory for working code.
π Support
π Issues: GitHub Issues
π Examples: Working examples
Ready to turn conversations into statistical insights? Install RMCP and start analyzing data through AI assistants today! π