Charts Visualization MCP Server
Click on "Deploy 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., "@Charts Visualization MCP Servercreate a bar chart showing 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.
Charts Visualization
This project provides a web-based service for generating and visualizing bar and pie charts from structured data using FastAPI and Altair. Charts are generated as PNG images and served via a REST API.
Features
Generate bar and pie charts from input data
Save charts as PNG images in a static directory
Access generated charts via unique URLs
Extensible with new chart types
Related MCP server: QuickChart MCP Server
Project Structure
charts_visualization/
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── src/
│ ├── server.py # FastAPI server and MCP integration
│ ├── client.py # Example client for interacting with the server
│ ├── charts/
│ │ ├── bar_chart.py # Bar chart generation logic
│ │ ├── pie_chart.py # Pie chart generation logic
│ │ └── __init__.py
│ └── model/
│ └── main.py # Data models and shared logic
├── static/
│ └── charts/ # Generated chart images (PNG)Setup
Clone the repository:
git clone <repo-url> cd charts_visualizationCreate a virtual environment and install dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
Running the Server
Start the FastAPI server (from the project root):
python src/server.pyOr with Uvicorn:
uvicorn src.server:app --host 0.0.0.0 --port 8000
uv run python server.py
for inspection :
uv run mcp dev server.pyUsage
Use the provided client (
src/client.py) or send requests to the/mcpendpoint to generate charts.Generated charts are saved in
static/charts/and accessible via URLs likehttp://localhost:8000/static/charts/<chart_id>.png.
Requirements
Python 3.9+
FastAPI
Uvicorn
Altair
(See
requirements.txtfor full list)
Extending
To add new chart types, implement a new function in src/charts/, register it as an MCP tool in src/server.py, and update the client as needed.
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
Renders interactive Chart.js charts and dashboards inline in AI conversations. Supports bar, line, area, pie, doughnut, scatter, and radar charts with multi-chart dashboard grids.
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
Turn rows into bar, line, pie and scatter chart images plus an optional PDF or HTML report.
Related MCP Servers
- -licenseBqualityNot gradedmaintenanceEnables generation of various chart types (bar, line, pie, radar, etc.) using QuickChart.io service. Supports creating chart URLs and downloading chart images locally with customizable Chart.js configurations.2120 npm-
- AlicenseBqualityDmaintenanceEnables generation of various chart types (bar, line, pie, radar, etc.) using QuickChart.io and Chart.js configurations, with options to generate chart URLs or download images locally.2120 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to generate UNHCR-styled data visualizations including bar, line, pie, and scatter charts with refugee and population data, returning charts as base64-encoded images.-
- AlicenseAqualityBmaintenanceEnables AI assistants and clients to generate Highcharts-based charts with schema validation, export to PNG/SVG/PDF, and natural language to chart conversion.21 npm1ISC