Back to Home
Fervoyush icon

plotnine-mcp

by Fervoyush

Overview

A Model Context Protocol (MCP) server that brings ggplot2's grammar of graphics to Python through plotnine, enabling AI-powered data visualization via natural language.

Installation

Run Command
plotnine-mcp

Security Notes

The `apply_mutate` function in `src/plotnine_mcp/transforms.py` uses `pandas.DataFrame.eval()` with user-provided expressions, which is highly dangerous if the `mutations` parameter can be controlled by an untrusted entity, allowing arbitrary code execution. Additionally, the `data_loader.py` allows loading data from arbitrary URLs, posing a Server-Side Request Forgery (SSRF) risk if an attacker can control the `path` parameter.

Similar Servers

Stats

Interest Score38
Security Score3
Cost ClassMedium
Avg Tokens250
Stars4
Forks2
Last Update2025-11-26

Tags

Data VisualizationPlotnineggplot2PythonAI-powered