R-Server MCP
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…
Explore
- 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
- Go 1.22 or later
- R 4.0 or later with ggplot2 package
- Docker (for containerized execution)
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.



