About chartforge
chartforge is an MCP server for generating and refining charts and diagrams from natural-language descriptions. It gives Claude users style presets and configurable output dimensions.
Key features
- 01Generate charts from natural-language prompts
- 02Refine previously generated charts
- 03Choose from named style presets
- 04Set output width and height
Use cases
- 01Create a revenue bar chart from a description
- 02Draft a system architecture diagram
- 03Visualize marketing flows with a Sankey diagram
MCP support
The MCP server exposes tools to generate charts, refine existing charts, and list available styles for MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y chartforge-mcpCHARTFORGE_API_KEYSecretYour ChartForge API key from chartforgeai.comLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
3Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| style | enum | No | Visual style preset. Default: auto (AI chooses best style).midnight | frost | ember | minimal | corporate | neon | light |
| width | number | No | Width in pixels. Default: 1200 |
| height | number | No | Height in pixels. Default: 800 |
| prompt | string | Yes | Description of the chart or diagram to generate. Be specific about data, labels, and what you want to visualize. |
Details
From the project READMEChartForge MCP Server
Generate stunning, publication-quality charts and diagrams from natural language — directly inside Claude.
Setup
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"chartforge": {
"command": "npx",
"args": ["chartforge-mcp"],
"env": {
"CHARTFORGE_API_KEY": "your_api_key_here"
}
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
CHARTFORGE_API_KEY | Yes | Your API key from chartforgeai.com |
CHARTFORGE_API_URL | No | Custom API URL (default: https://chartforgeai.com) |
Tools
generate_chart
Generate a chart from a natural language description.
Parameters:
prompt(required): Description of the chartstyle(optional): Style preset —midnight,frost,ember,minimal,corporate,neon,lightwidth(optional): Width in pixels (default: 1200)height(optional): Height in pixels (default: 800)
refine_chart
Modify a previously generated chart.
Parameters:
chartId(required): Chart ID from a previous generationmodification(required): What to change
list_styles
List available style presets with descriptions.
Examples
"Create a bar chart showing quarterly revenue from $2M to $18M over 3 years"
"System architecture diagram for a microservices backend"
"Sankey diagram of marketing budget flow through channels to conversions"
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.