ClaudeR   RStudio MCP Server logo

ClaudeR RStudio MCP Server

Connects MCP agents to a live RStudio session for R execution, plotting, editing, async jobs, and research workflows.

Install ClaudeR RStudio MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "clauder-rstudio-mcp-server": {
      "command": "uvx",
      "args": [
        "--refresh",
        "clauder-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

ClaudeR - RStudio MCP Server connects MCP-compatible agents to a live R session in RStudio, letting them run code, inspect objects, view plots, and edit open documents. Its tools cover interactive analysis, task tracking, asynchronous R jobs, session switching, project-code search, manuscript checks, and systematic-review annotation. Reach for it when an agent needs access to the working R environment rather than an isolated code-generation context. It also supports multiple RStudio sessions and can keep long-running work in a separate background process.

Use cases

  • Run interactive R analysis against objects already loaded in RStudio
  • Review and apply edits to the focused RStudio document
  • Submit model fits or simulations as background R jobs
  • Audit manuscripts and verify DOI-based references
  • Annotate and screen systematic-review datasets

Key features

  • Live RStudio session execution and environment inspection
  • Plot generation and RStudio Viewer access
  • Editor-aware code insertion, replacement, and approval workflows
  • Asynchronous R jobs with input and output marshaling
  • Session checkpoints, project search, and script probing
  • Reference verification and CSV annotation workflows

Tools41

What ClaudeR RStudio MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~6.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

22/24 checks healthy over the last 91d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · clauder-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars365Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed41Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How ClaudeR RStudio MCP Server works

What ClaudeR - RStudio MCP Server does

ClaudeR - RStudio MCP Server gives MCP-based agents access to a live R session running in RStudio. Agents can execute R code, inspect the environment, generate plots, read the active editor buffer, and apply or suggest code changes. The server works against the session where data, fitted models, packages, and other objects already exist, so it is suited to interactive analysis and iterative development.

Beyond direct coding, the toolset includes task lists, session history, project-source searching, checkpoint and restore operations, and tools for research workflows. These include reference verification through CrossRef, clean-room script probing, manuscript or file extraction, CSV annotation jobs, systematic-review screening reports, and RStudio Viewer content retrieval.

How it works

Install the ClaudeR R package, configure an MCP client, and start the server from RStudio with the ClaudeR addin. Calls are routed to the connected RStudio session. The active editor buffer is distinct from the saved file on disk: get_active_document reports unsaved changes, while file reads reflect disk contents. Editing tools save by default, or can stage changes in the buffer with save=false; suggest_edit is intended for changes that require user approval.

Long-running computations can use execute_r_async. The background process receives explicitly marshaled input objects and can return named output objects to the main session. It has no access to the main session environment beyond those inputs, and packages needed by the job must be loaded inside that process. Jobs can be checked or cancelled while normal R execution continues.

Multiple agents can share one session, while separate RStudio sessions can be discovered and selected with list_sessions and connect_session.

Setup and configuration

Install the R package from GitHub through devtools, load ClaudeR, then run install_clauder() for Claude Desktop or Cursor. For Claude Code CLI setup, use install_cli(tools = "claude"). Start the RStudio-side server with claudeAddin().

The project indicates R version 4.0 or newer. The server is designed for RStudio and also supports Positron. Client configuration is handled through the installation helpers or the relevant MCP client setup.

Tools and capabilities

  • Execute R code synchronously, including code that produces plots.
  • Inspect R version, package count, variables, session history, and the RStudio Viewer pane.
  • Read files from disk, including structured extraction from DOCX and PDF files.
  • Search R, R Markdown, and Quarto project source files with regular expressions.
  • Modify or insert editor content, target a selected path, and request approval before applying edits.
  • Create and update analysis task lists.
  • Run, monitor, and cancel background R jobs with optional input and output marshaling.
  • Create, list, and restore checkpoints of the R global environment.
  • Run isolated script probes, verify DOI references through CrossRef, and generate screening reports.
  • Load and annotate CSV rows with schema validation and resumable jobs.

Limitations and notes

Background jobs cannot marshal database connections or open file handles, and they must load their own packages. Auto-marshaled inputs are snapshots taken when the job starts, so later changes in the main session are not included. A focused RStudio document is required for active-buffer operations unless a target path is supplied where supported.

get_async_result waits before checking a job to reduce repeated polling. Annotation jobs process rows in separate fresh subprocesses or supported model processes, preserve the original CSV, and can be resumed. Editing operations that save to disk can leave the editor buffer and file state different depending on the chosen save behavior, so callers should use the returned save status when deciding whether to reread a file.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about ClaudeR RStudio MCP Server

ClaudeR - RStudio MCP Server is an MCP server that connects AI agents to a live RStudio R session. Its main tools execute R code, generate plots, inspect the environment, read and edit documents, manage asynchronous jobs, and support research workflows such as reference verification, annotation, and screening.

Install the R package from GitHub with devtools, load ClaudeR, and run the client-specific installer. Use install_clauder() for Claude Desktop or Cursor, install_cli(tools = "claude") for Claude Code CLI, then start the RStudio server with claudeAddin().

Yes, ClaudeR - RStudio MCP Server supports Cursor through install_clauder(). The helper configures the server for the client, after which claudeAddin() starts the RStudio-side connection.

Use execute_r_async to run long R code in a separate background process and receive a job ID immediately. Check it with get_async_result or stop it with cancel_async_job; inputs and outputs can be marshaled by naming the objects.

Yes, it can read and modify the active editor buffer, including unsaved content. get_active_document reports buffer state, while modify_code_section and insert_text can save by default or leave edits staged with save=false; suggest_edit supports approval-first changes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClaudeR   RStudio MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/clauder-rstudio-mcp-server?style=directory)](https://allmcps.com/mcp/clauder-rstudio-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/clauder-rstudio-mcp-server"><img src="https://allmcps.com/api/badge/clauder-rstudio-mcp-server?style=directory" alt="ClaudeR RStudio MCP Server on AllMCPs" /></a>