MCP server for ggplot2 visualization and R script execution

MCP server for ggplot2 visualization and R script execution

rlang-mcp-server•bygdbelvin

An MCP server that exposes tools to render ggplot2 visualizations and execute R scripts, returning visualizations or text output.

License: Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0)•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Renders R code containing ggplot2 commands and returns the resulting visualization.
  • •Executes arbitrary R scripts and returns their text output.
  • •Supports PNG, JPEG, PDF, and SVG output formats with configurable dimensions and resolution.
  • •Runs R code in isolated Docker containers for secure execution.

BEST FOR

  • •AI models needing to produce statistical visualizations via ggplot2 without direct R environment access.
  • •Executing R scripts through an MCP client and retrieving their text output.
  • •Generating visualizations in multiple image formats with custom dimensions and resolution.

ABOUT RLANG-MCP-SERVER

MCP server for ggplot2 visualization and R script execution is cataloged as an MCP server attributed to gdbelvin. An MCP server that exposes tools to render ggplot2 visualizations and execute R scripts, returning visualizations or text output. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0). Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for ggplot2 visualization and R script execution are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does this MCP server expose?

It exposes two MCP tools: render_ggplot for generating visualizations from ggplot2 code and execute_r_script for running R scripts and returning text output.

How does it handle security when running R code?

It uses Docker integration to securely execute R code in isolated containers.

Upstream README

View this exact version on GitHub

README.md · 0b09eeea1434 · Fetched 2026-11-13 10:02:20 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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

# Build the Docker image
task docker:build

# Run the server in Docker
task docker:run

Using Docker with stdin/stdout

The server can be run in Docker while preserving stdin/stdout communication, which is essential for MCP:

# Build and run using docker-compose
./start_server.sh --docker

Or set an environment variable:

USE_DOCKER=true ./start_server.sh

This approach ensures that stdin and stdout are properly connected between the host and the container, allowing seamless MCP communication.

Usage

MCP Integration

To use this server with an MCP client, configure it in your MCP settings file:

Local Execution

{
  "mcpServers": {
    "r-server": {
      "command": "/path/to/r-server",
      "disabled": false,
      "autoApprove": []
    }
  }
}

Docker Execution

{
  "mcpServers": {
    "r-server": {
      "command": "/path/to/start_server.sh",
      "args": ["--docker"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

The MCP client will automatically communicate with the server using stdio transport, which is the recommended approach for stability and reliability. The dockerized version maintains this communication pattern while providing isolation and dependency management.

License

Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for ggplot2 visualization and R script execution from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/rlang-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools