
ClaudeR
by IMNMV·★ 227·Score 51
ClaudeR bridges RStudio with MCP-based LLM agents for interactive coding, multi-agent orchestration, and automated manuscript auditing.
Overview
ClaudeR is an R package that creates a direct connection between RStudio and MCP-configured LLM agents like Claude Code, Codex, or Qwen Code. It enables interactive coding sessions where AI agents can execute R code in real-time within the RStudio environment, view outputs, and analyze plots. The package supports multi-agent coordination, allowing multiple AI agents to work on one script or operate independently across different RStudio windows with siloed environments.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose ClaudeR when you need to connect RStudio to multiple LLM agents for interactive coding, manuscript auditing, or multi-agent data analysis workflows.
When NOT to choose this
Don't choose ClaudeR if you need write access to external systems (it's primarily focused on R execution and analysis), or if you're not working in the R/RStudio ecosystem.
Tools this server exposes
12 tools extracted from the READMEexecute_rExecute R code and return the output.
execute_r_with_plotExecute R code that generates a plot that the model can see.
execute_r_asyncExecute long-running R code asynchronously and returns a job ID.
get_async_resultPoll for the result of an asynchronous job.
list_sessionsList all active RStudio sessions the agent can connect to.
connect_sessionConnect to a specific RStudio session by name.
get_session_historyView execution history filtered by agent ID.
read_fileRead any text file from disk without needing it open in RStudio.
get_active_documentGet the content of the active document in RStudio.
modify_code_sectionModify a specific section of code in the active document.
insert_textInsert text at the current cursor position or specific line/column.
get_viewer_contentRead HTML content from the viewer pane (plotly, DT, leaflet widgets).
Comparable tools
Installation
Installation
# Install using devtools
if (!require("devtools")) install.packages("devtools")
devtools::install_github("IMNMV/ClaudeR")
# Set up your AI tool
library(ClaudeR)
install_clauder() # For Claude Desktop / Cursor
install_cli(tools = "claude") # For Claude Code CLI
# Start the server in RStudio
claudeAddin()For Claude Desktop configuration, add to Claude Desktop's config.json:
{
"mcpServers": {
"clauder": {
"command": "Rscript",
"args": ["-e", "library(ClaudeR); claudeServe()"],
"env": {
"R_PROFILE_USER": ""
}
}
}
}FAQ
- Which LLM agents are supported?
- ClaudeR supports Claude Code, Codex, Gemini CLI, Qwen Code, and any other MCP-based LLM agents. It can also work with Ollama for private, offline labeling.
- Can multiple AI agents work on the same R session?
- Yes, ClaudeR has built-in multi-agent coordination protocol that allows multiple agents to share one RStudio session through a shared message board in the R environment.
Compare ClaudeR with
Last updated · Auto-generated from public README + GitHub signals.