mcp-plotting-server
Provides tools to create Plotly figures from JSON data, enabling generation of various chart types (bar, line, scatter, etc.) and rendering as interactive JSON or static PNG images.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-plotting-servercreate a bar chart from monthly sales data"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-plotting-server
A FastMCP server that turns JSON data into Plotly figures, deployable as an isolated service on Modal. Data goes in as JSON; a validated Plotly figure (JSON) or a rendered PNG comes back over the Model Context Protocol.
Why a separate plotting server
Plotting code runs inside this server process, deployed as its own service. The application server that calls these tools never executes plotting code and only ever receives the finished figure or image. The MCP server is the isolation boundary, which is the whole point of the architecture.
Related MCP server: mcp-plots
Tools
Tool | Input | Output | Use when |
| tabular data (list of records) + chart kind | Plotly figure JSON | you have tidy data and want a standard chart fast |
| a full Plotly figure spec ( | Plotly figure JSON | you want full control over traces and layout |
| a Plotly figure spec | PNG image | you need a static image instead of an interactive figure |
All figure-returning tools give back the output of fig.to_dict(), which a frontend renders directly with plotly.js. That JSON is the stable cross-language contract.
Prerequisites
Python 3.11+
A Modal account and the CLI logged in (
pip install modal && modal token new)ghCLI for creating the GitHub repo (optional)
Local development
Run over stdio (the default MCP transport, for use with a local client):
uvx --from . mcp-plotting-serverOr run the server directly:
python -m mcp_plotting.serverFor an HTTP server during local development, call mcp.run(transport="http", port=8000) and connect to http://localhost:8000/mcp.
Deploy on Modal
Dev (live-reloading, temporary URL):
modal serve deploy.pyProduction (persistent URL):
modal deploy deploy.pyModal prints a web URL like:
https://<workspace>--mcp-plotting-server-serve.modal.runThe MCP endpoint is that URL plus /mcp. A health check lives at /health.
Connect from an MCP client
Point any MCP client (opencode, Claude Desktop, etc.) at the deployed endpoint:
{
"mcpServers": {
"plotting": {
"url": "https://<workspace>--mcp-plotting-server-serve.modal.run/mcp"
}
}
}Example tool call
quick_plot with a few records:
{
"data": [
{"month": "Jan", "sales": 120},
{"month": "Feb", "sales": 150},
{"month": "Mar", "sales": 180}
],
"kind": "bar",
"x": "month",
"y": "sales",
"title": "Quarterly sales"
}Returns a normalized Plotly figure object. Hand the data and layout straight to plotly.js, or pass the spec to render_figure_png for a static image.
Layout
mcp_plotting/server.py FastMCP server and tools
deploy.py Modal deployment (ASGI over Streamable HTTP)License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ericmjl/mcp-plotting-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server