
ClaudeR - RStudio MCP Server
Bridges RStudio sessions to MCP clients like Claude Desktop or Cursor, exposing the active R environment as executable context. Ships with tools for running code, capturing plots, reading and inserting text in open documents, and extracting viewer content from htmlwidgets. The standout feature is multi-agent orchestration: you can route several AI agents to one session with a shared message board protocol, or spin up isolated sessions across RStudio windows for parallel work. Also includes automated manuscript auditing tools that verify statistical claims against your R code and check references via CrossRef. Install via devtools from GitHub, then run claudeAddin() to start the server. The Python bridge is packaged on PyPI as clauder-mcp and works with uvx for zero-config setup.
- GitHub stars
- 365
- tools
- 34
- transport
- STDIO
- last updated
- Sep 30, 2026
Tools
34 toolsPublic tool metadata for what this MCP can expose to an agent.
execute_rExecute R code and return the output.
Execute R code and return the output.
No parameter schema in public metadata yet.
execute_r_with_plotExecute R code that generates a plot that the model can see.
Execute R code that generates a plot that the model can see.
No parameter schema in public metadata yet.
execute_r_asyncExecute long-running R code asynchronously (>25 seconds). Returns a job ID for polling.
Execute long-running R code asynchronously (>25 seconds). Returns a job ID for polling.
No parameter schema in public metadata yet.
get_async_resultWait for an async job and return its result the moment it finishes (up to wait_s seconds, default 300). wait_s = 0 just checks.
Wait for an async job and return its result the moment it finishes (up to wait_s seconds, default 300). wait_s = 0 just checks.
No parameter schema in public metadata yet.
list_sessionsList all active RStudio sessions the agent can connect to.
List all active RStudio sessions the agent can connect to.
No parameter schema in public metadata yet.
connect_sessionConnect to a specific RStudio session by name for multi-session workflows.
Connect to a specific RStudio session by name for multi-session workflows.
No parameter schema in public metadata yet.
get_session_historyView execution history filtered by agent ID.
View execution history filtered by agent ID.
No parameter schema in public metadata yet.
read_fileRead any file from disk (.R, .qmd, .csv, .log, etc.) without needing it open in RStudio, with structured extraction for .docx and .pdf and start_line/end_line pagination.
Read any file from disk (.R, .qmd, .csv, .log, etc.) without needing it open in RStudio, with structured extraction for .docx and .pdf and start_line/end_line pagination.
No parameter schema in public metadata yet.
check_cross_referencesDeterministic internal-reference integrity: flags dangling mentions and tables/figures never referenced in the text.
Deterministic internal-reference integrity: flags dangling mentions and tables/figures never referenced in the text.
No parameter schema in public metadata yet.
reconcile_valuesExtracts every numeric value from a manuscript and reconciles each against the numbers the code produced.
Extracts every numeric value from a manuscript and reconciles each against the numbers the code produced.
No parameter schema in public metadata yet.
get_active_documentRead the focused editor buffer, returning content, file path, and whether it has unsaved changes.
Read the focused editor buffer, returning content, file path, and whether it has unsaved changes.
No parameter schema in public metadata yet.
get_r_infoGet information about the R environment.
Get information about the R environment.
No parameter schema in public metadata yet.
modify_code_sectionRegex find-and-replace in an editor document, saving to disk by default and accepting a path to target a specific file.
Regex find-and-replace in an editor document, saving to disk by default and accepting a path to target a specific file.
No parameter schema in public metadata yet.
insert_textInsert text at the cursor or a specific line/column, saving to disk by default and accepting a path to target a specific file.
Insert text at the cursor or a specific line/column, saving to disk by default and accepting a path to target a specific file.
No parameter schema in public metadata yet.
suggest_editPropose an edit for the user to approve instead of applying it.
Propose an edit for the user to approve instead of applying it.
No parameter schema in public metadata yet.
get_viewer_contentRead HTML content from the viewer pane (plotly, DT, leaflet widgets) with pagination support.
Read HTML content from the viewer pane (plotly, DT, leaflet widgets) with pagination support.
No parameter schema in public metadata yet.
clean_error_logClean a session log by removing error blocks and their duplicate predecessors.
Clean a session log by removing error blocks and their duplicate predecessors.
No parameter schema in public metadata yet.
search_project_codeSearch for a regex pattern across project source files (.R, .Rmd, .qmd), returning file, line number, and snippet.
Search for a regex pattern across project source files (.R, .Rmd, .qmd), returning file, line number, and snippet.
No parameter schema in public metadata yet.
probe_scriptsSource R scripts in a clean background session and report what objects are created without affecting the main session.
Source R scripts in a clean background session and report what objects are created without affecting the main session.
No parameter schema in public metadata yet.
verify_referencesVerify academic references via CrossRef DOI checks, arXiv resolution, and bibliographic matching for DOI-less entries.
Verify academic references via CrossRef DOI checks, arXiv resolution, and bibliographic matching for DOI-less entries.
No parameter schema in public metadata yet.
search_citationsSearch the OpenAlex scholarly index for the correct reference for a claim.
Search the OpenAlex scholarly index for the correct reference for a claim.
No parameter schema in public metadata yet.
get_bibtexFetch the canonical BibTeX entry for a DOI via doi.org content negotiation.
Fetch the canonical BibTeX entry for a DOI via doi.org content negotiation.
No parameter schema in public metadata yet.
generate_notebookTurn a session log into a narrated Quarto lab notebook.
Turn a session log into a narrated Quarto lab notebook.
No parameter schema in public metadata yet.
generate_codebookScan a project and emit a codebook with package list, script inventory, per-variable summaries, and outputs.
Scan a project and emit a codebook with package list, script inventory, per-variable summaries, and outputs.
No parameter schema in public metadata yet.
screening_reportSummarize systematic-review screening passes, computing agreement, Cohen's kappa, PRISMA flow counts, and conflicts.
Summarize systematic-review screening passes, computing agreement, Cohen's kappa, PRISMA flow counts, and conflicts.
No parameter schema in public metadata yet.
send_messageTyped multi-agent messaging on an append-only shared log.
Typed multi-agent messaging on an append-only shared log.
No parameter schema in public metadata yet.
check_messagesTyped multi-agent messaging on an append-only shared log.
Typed multi-agent messaging on an append-only shared log.
No parameter schema in public metadata yet.
wait_for_messageBlocks until a matching event arrives on the shared messaging log.
Blocks until a matching event arrives on the shared messaging log.
No parameter schema in public metadata yet.
coordination_rosterTyped multi-agent messaging on an append-only shared log.
Typed multi-agent messaging on an append-only shared log.
No parameter schema in public metadata yet.
checkpoint_sessionSnapshot the R global environment to disk before risky operations.
Snapshot the R global environment to disk before risky operations.
No parameter schema in public metadata yet.
restore_sessionRoll the environment back to a checkpoint, saving the current state first.
Roll the environment back to a checkpoint, saving the current state first.
No parameter schema in public metadata yet.
list_checkpointsList saved checkpoints for the current session.
List saved checkpoints for the current session.
No parameter schema in public metadata yet.
create_task_listGenerate a task list based on your prompt to prevent omissions in long-context tasks.
Generate a task list based on your prompt to prevent omissions in long-context tasks.
No parameter schema in public metadata yet.
update_task_statusTrack progress for each task in the generated list.
Track progress for each task in the generated list.
No parameter schema in public metadata yet.
Sponsors
Readme
ClaudeR - The Modern Researcher's Toolkit
Connect a live R or Python session, in RStudio or Positron, to Claude Code, Codex, or any MCP-based LLM agent. For interactive analysis, multi-agent orchestration, and automated manuscript auditing.
Details
- Repository
- github.com/imnmv/clauder
- Category
- Data & Analytics
- Package
clauder-mcp- Transport
- STDIO
- Registry
- MCP registry, active