An MCP server for rendering chart images using QuickChart.io API.
pip install mcp-quickchartpip install -e .docker build -t mcp-quickchart .
docker run -p 8000:8000 mcp-quickchartRun the server using stdio transport:
python -m mcpquickchartor after installation:
mcp-quickchartOr with custom host/port and streamablehttp transport:
export QUICKCHART_MCP_SERVER_HOST=0.0.0.0
export QUICKCHART_MCP_SERVER_PORT=8000
mcp-quickchartThe server provides a render_chart tool with the following parameters:
labels: List of labels for the chartdatasets: List of dataset objects withlabelanddatafieldstype: Chart type (default:"bar", supports"line","pie", etc.)
Returns a PNG image of the rendered chart.
| Environment Variable | Default | Description |
|---|---|---|
QUICKCHART_MCP_SERVER_HOST |
127.0.0.1 |
Server bind address |
QUICKCHART_MCP_SERVER_PORT |
- | HTTP transport port |
MIT