R-Server MCP
Description
# R-Server MCP A specialized Model Context Protocol (MCP) server that enables AI models to generate data visualizations using R's ggplot2 library and execute R scripts. ## Overview This MCP server provides a streamlined interface for creating statistical visualizations and…
About
# R-Server MCP A specialized Model Context Protocol (MCP) server that enables AI models to generate data visualizations using R's ggplot2 library and execute R scripts. ## Overview This MCP server provides a streamlined interface for creating statistical visualizations and executing R scripts without requiring direct…
Details
- Author
- gdbelvin
- GitHub stars
- 17
- Downloads
- 308
- Categories
- Other
Jump to
- ggplot2 Rendering: Generate visualizations from R code containing ggplot2 commands.
- R Script Execution: Run any R script and return its text output.
- Output Formats: Supports PNG, JPEG, PDF, and SVG.
- Customization: Control image dimensions and resolution.
- Error Handling: Clear messages for invalid R code or rendering failures.
- Docker Integration: Isolated container execution for security and dependency management.
Configure the server in an MCP client's settings file, specifying either the local binary path or using the Docker startup script with the --docker flag. The server communicates via stdio transport and requires Go 1.22+, R 4.0+ with ggplot2, and optionally Docker for containerized execution.
R-Server MCP
A specialized Model Context Protocol (MCP) server that enables AI models to generate data visualizations using R's ggplot2 library and execute R scripts.
Overview
This MCP server provides a streamlined interface for creating statistical visualizations and executing R scripts without requiring direct access to an R environment. It exposes two MCP tools:
- render_ggplot: Generates visualizations from R code containing ggplot2 commands
- execute_r_script: Executes any R script and returns the text output
Features
- ggplot2 Rendering: Execute R code containing ggplot2 commands and return the resulting visualization
- R Script Execution: Execute any R script and return the text output
- Format Options: Support for PNG, JPEG, PDF, and SVG output formats
- Customization: Control image dimensions and resolution
- Error Handling: Clear error messages for invalid R code or rendering failures
- MCP Protocol Compliance: Full implementation of the Model Context Protocol
- Docker Integration: Secure execution of R code in isolated containers
Requirements
- Go 1.22 or later
- R 4.0 or later with ggplot2 package
- Docker (for containerized execution)
Building
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



