Rmcp

Productivity and workflow

R MCP Server.

Your AI app calls the Rmcp MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Rmcp

Rmcp is a community MCP server from finite-sample, filed in our directory under productivity and workflow. R MCP Server.

Rmcp runs as a remote server at https://rmcp-server-394229601724.us-central1.run.app/mcp, so there is nothing to install: your AI app connects over streamable HTTP, and most remote servers ask you to sign in with OAuth the first time.

At a glance

Publisher
finite-sample (community)
Runs
As a hosted remote server
Written in
Python
License
MIT
GitHub stars
218

How to set up Rmcp

  1. Nothing to install: Rmcp is a remote server, so all you need is an AI app that accepts a remote MCP URL.
  2. Check the Rmcp README for keys or settings; the registry lists none that Rmcp requires.
  3. Add Rmcp to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Rmcp tools to confirm the connection.
  5. Run one read-only task with Rmcp first, and keep your app asking before each tool call until the results look right.

Rmcp compared with similar servers

  • Notion (danhilse) by danhilse has fewer GitHub stars than Rmcp (210 against 218); both are community servers, and Notion (danhilse) runs on your own machine and Rmcp runs as a remote server.
  • Growth Engineer by GetBrew has more GitHub stars than Rmcp (221 against 218); both are community servers, and both run remotely.
  • Gistpad by lostintangent has fewer GitHub stars than Rmcp (208 against 218); both are community servers, and Gistpad runs on your own machine and Rmcp runs as a remote server.

Before you connect Rmcp

  • Give Rmcp its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Rmcp tool call until you trust what it does with them.
  • Treat text that Rmcp fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Rmcp on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Rmcp

How marketing and sales teams put Rmcp to work, by company size. Pick the size closest to yours and start Rmcp on one use case.

Small business

  • A busy owner can use Rmcp to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Rmcp what slipped last week and which campaign tasks have no owner yet.
  • Rmcp runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Marketing ops can connect Rmcp to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Rmcp to see where work piles up across projects and move it before deadlines slip.
  • Start Rmcp on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Rmcp to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Rmcp scoped access per workspace, so an agent helps one department without reading another's plans.
  • Rmcp is a community server, so have security review the code and pin a version before Rmcp touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Rmcp README

From finite-sample/rmcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

RMCP: Statistical Analysis through Natural Conversation

Turn conversations into comprehensive statistical analysis - A Model Context Protocol (MCP) server with statistical tools, an optional study analysis route, 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)

MCP Endpoint: https://rmcp-server-394229601724.us-central1.run.app/mcp (bearer token required) Health Check: https://rmcp-server-394229601724.us-central1.run.app/health

🖥️ Or Install Locally
pip install rmcp
rmcp start

That's it! RMCP is now ready to handle statistical analysis requests via Claude Desktop, Claude web, or any MCP client.

🎯 Working examples → | 🔧 Troubleshooting →

✨ 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"

👉 See working examples →

📊 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

For datasets carrying collection context, the optional study analysis route adds content-verified file references and validated studyframe adapters. Existing table-based tools retain their current behavior. The study route requires the collection-context R studyframe package and its selected backends on the execution host.

Prerequisites
  • Python 3.13+
  • R 4.4.0+ with comprehensive package ecosystem: RMCP uses a systematic 429-package whitelist from CRAN task views organized into 19+ categories:
# Core packages (install these first)
install.packages(c(
  "jsonlite", "dplyr", "ggplot2", "broom", "plm", "forecast",
  "randomForest", "rpart", "caret", "AER", "vars", "mgcv"
))

# Full ecosystem automatically available: Machine Learning (61 packages),
# Econometrics (55 packages), Time Series (57 packages),
# Bayesian Analysis (40 packages), and more

Package Selection: Evidence-based, using CRAN task views and download statistics

Install RMCP
# Standard installation
pip install rmcp

# The Streamable HTTP transport ships in the base install.
# This extra adds pandas/openpyxl for Excel data handling.
pip install rmcp[http]

# Development installation
git clone https://github.com/finite-sample/rmcp.git
cd rmcp
pip install -e ".[dev]"
Claude Desktop Integration

Add to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "rmcp": {
      "command": "rmcp",
      "args": ["start"]
    }
  }
}
HTTP Server Integration (Claude Web)

RMCP serves the MCP Streamable HTTP transport at /mcp (spec 2025-11-25), compatible with Claude custom connectors and OpenAI's Responses API / ChatGPT remote MCP support. Remote deployments require a bearer token.

Production Server:

Server URL: https://rmcp-server-394229601724.us-central1.run.app/mcp

Test the connection:

# Health check
curl https://rmcp-server-394229601724.us-central1.run.app/health

# Initialize MCP session (Streamable HTTP)
curl -X POST https://rmcp-server-394229601724.us-central1.run.app/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $RMCP_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"test-client","version":"1.0"}}}'

Local HTTP server:

# Localhost (no auth required)
rmcp serve-http

# Remote bind requires a bearer token (or --allow-unauthenticated)
RMCP_API_KEY=your-secret rmcp serve-http --host 0.0.0.0 --port 8080
Command Line Usage
# Start MCP server (for Claude Desktop)
rmcp start

# Start HTTP server (for web apps)
rmcp serve-http --host 0.0.0.0 --port 8080

# Start HTTPS server (production ready)
rmcp serve-http --ssl-keyfile server.key --ssl-certfile server.crt --port 8443

# Quick HTTPS setup for development
./scripts/setup/setup_https_dev.sh && source certs/https-env.sh && rmcp serve-http

# Use configuration file
rmcp --config ~/.rmcp/config.json start

# Enable debug mode
rmcp --debug start

# Check installation
rmcp --version
Shell Completion
# zsh, add to ~/.zshrc
eval "$(_RMCP_COMPLETE=zsh_source rmcp)"

# bash, add to ~/.bashrc (requires bash 4.4+)
eval "$(_RMCP_COMPLETE=bash_source rmcp)"

# fish, write to the completions directory
_RMCP_COMPLETE=fish_source rmcp > ~/.config/fish/completions/rmcp.fish

macOS ships bash 3.2, which is too old, click prints a warning and completion does nothing. Use zsh (the macOS default) or install a newer bash.

⚙️ Configuration

RMCP supports flexible configuration through environment variables, configuration files, and command-line options:

# Environment variables
export RMCP_HTTP_PORT=9000
export RMCP_R_TIMEOUT=180
export RMCP_LOG_LEVEL=DEBUG
rmcp start

# Configuration file (~/.rmcp/config.json)
{
  "http": {"port": 9000},
  "r": {"timeout": 180},
  "logging": {"level": "DEBUG"}
}

# Docker with environment variables
docker run -e RMCP_HTTP_HOST=0.0.0.0 -e RMCP_HTTP_PORT=8000 rmcp:latest

📖 Complete Configuration Guide →

🔥 Key Features

  • 🎯 Natural Conversation: Ask questions in plain English, get statistical analysis
  • 📚 Comprehensive Package Ecosystem: 429 R packages from systematic CRAN task views
  • 📊 Professional Output: Formatted results with markdown tables and inline visualizations
  • 🔒 Production Ready: Official MCP SDK with stdio and Streamable HTTP transports, plus bearer-token auth for remote deployments
  • ⚙️ Flexible Configuration: Environment variables, config files, and CLI options
  • ⚡ Tested at the protocol boundary: deterministic semantic, malformed-data, security, approval, and recovery contracts run through the official MCP client
  • 🌐 Multiple Transports: stdio (Claude Desktop) and HTTP (web applications)
  • 🛡️ Guardrails: Package allowlist, explicit user approval for file writes, package installs and system calls, and filesystem confinement for tool-written files. These guard against mistakes, not adversaries, RMCP executes R as the invoking user, so run it as a trusted local tool rather than an untrusted multi-tenant service.

📚 Documentation

Resource Description
Quick Start Guide Copy-paste ready examples with real data
Economic Research Examples Panel data, time series, advanced econometrics
Time Series Examples ARIMA, forecasting, decomposition
Image Display Examples Inline visualizations in Claude
API Documentation Auto-generated API reference

🧪 Validation

RMCP's evaluation guide defines package, contract, protocol, and model-level release gates. The deterministic E2E suite launches a real RMCP stdio process, connects with the official MCP client, and checks exact statistical identities alongside malformed data, code-like inputs, filesystem escape attempts, approval state, and recovery behavior.

uv run pytest tests/evals/test_mcp_server_evals.py

🤝 Contributing

We welcome contributions!

git clone https://github.com/finite-sample/rmcp.git
cd rmcp
pip install -e ".[dev]"

# Run tests
uv run pytest tests/

# Lint and format
uv run ruff check --fix .
uv run ruff format .

📄 License

MIT License - see LICENSE file for details.

🛠️ Quick Troubleshooting

R not found?

# macOS: brew install r
# Ubuntu: sudo apt install r-base
R --version

Missing R packages?

rmcp check-r-packages  # Check what's missing

MCP connection issues?

rmcp list-capabilities   # verify tools register without starting a session
rmcp --debug start       # run the server with verbose logging on stderr

📖 Need more help? Check the examples directory for working code.

🙋 Support

Ready to turn conversations into statistical insights? Install RMCP and start analyzing data through AI assistants today! 🚀

Questions about Rmcp

What is the Rmcp MCP server?

R MCP Server. Rmcp is maintained by finite-sample on GitHub at finite-sample/rmcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I add Rmcp to Claude Code?

Rmcp is a remote server, so you add its URL instead of installing a package: run claude mcp add --transport http rmcp https://rmcp-server-394229601724.us-central1.run.app/mcp in your terminal. In other apps, add the Rmcp URL as a remote or custom connector.

Does Rmcp need an API key?

The registry lists no required keys for Rmcp. Check the Rmcp README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Rmcp an official MCP server?

No. Rmcp is a community server maintained by finite-sample. Community servers can be excellent; read the code and the open issues before you give Rmcp access to company data.

What license is Rmcp under?

Rmcp is released under the MIT license, according to its GitHub repository. The license covers the code of Rmcp; the service it connects to has its own terms.