Matplotlib Visualization MCP
MCP serverxlisp maintains this community Python server for creating Matplotlib charts from MCP calls. Each tool saves a 300-DPI PNG in the machine's temporary directory and calls Matplotlib's local display window; it does not register an embedded chat interface.
Not for: Headless inline chart interaction. The server opens a local Matplotlib window and returns a saved-file path rather than a ui:// MCP App.
Source and setup verified on 2026-11-05
VisualizationQuick facts
- Maintainer
- xlisp (community)
- Transport
- stdio
- Output
- Local Matplotlib window plus 300-DPI PNG in the temp directory
- Tools
- 7 chart tools
- UI
- No inline MCP App
What you can do
- create_relationship_graph
- create_scatter_plot and create_classification_plot
- create_3d_plot
- create_histogram and create_line_plot
- create_heatmap
Requirements
- Python 3 with a virtual environment
- mcp[cli], httpx, matplotlib, numpy, pandas and networkx
- A desktop session able to open Matplotlib windows
git clone https://github.com/xlisp/visualization-mcp-server.gitpython3 -m venv .venv --upgrade-deps.venv/bin/pip install 'mcp[cli]' httpx matplotlib numpy pandas networkx{
"mcpServers": {
"visualization": {
"command": "/absolute/path/visualization-mcp-server/.venv/bin/python",
"args": ["/absolute/path/visualization-mcp-server/visualization_server.py"]
}
}
}Use .venv\Scripts\python.exe on Windows and replace both absolute paths.
Always confirm the latest setup instructions with the maintainer before installing.
>Questions
Does this Matplotlib MCP render charts inside Claude?
No. It opens Matplotlib on the server machine and saves a PNG. It does not register a ui:// resource.
Where are the chart files saved?
The source uses the operating system's temporary directory and returns the generated PNG path in the tool result.
Is this the official Matplotlib MCP server?
No. It is a community repository maintained by xlisp.
>Related Apps
Interactive 3D globe viewer using CesiumJS for geospatial visualization
Interactive 3D scene renderer with Three.js for stunning visualizations
Real-time GLSL shader renderer for creative visual effects