provchart-mcp
provchart-mcp
面向 ProvChart 的 MCP 服务器 — 智能体可生成纯 CSS 图表(HTML + CSS)或 SVG,用于 README/文档。
无需 Chart.js。绘制时无需客户端图表运行时。与你的仪表盘使用的 JSON 相同。
npm |
|
API | |
Keys | |
License | MIT |
功能
工具 | 输出 |
| 用于网页的 HTML + CSS |
| 用于 Markdown / 文档的 SVG(+ data URI) |
| 简短的注入 / SVG / 运行时 / 错误说明(不调用 API) |
智能体调用这些工具,而不是自行编写 Chart.js 代码片段。
Related MCP server: ECharts ChartPage MCP Server
环境要求
Node.js 18+(原生
fetch)ProvChart API 密钥 — 免费注册账户包含每月有限的测试生成额度
export PROVCHART_API_KEY=pc_live_xxxxxxxx切勿提交真实密钥。建议使用环境变量 / MCP env 配置。
安装与运行
从源码运行(本仓库)
cd provchart-mcp
npm install
export PROVCHART_API_KEY=pc_live_xxxxxxxx
node src/index.js该进程通过 stdio 使用 MCP 协议(在客户端连接之前保持静默)。
发布后
npx -y provchart-mcpClaude Desktop
编辑 claude_desktop_config.json:
{
"mcpServers": {
"provchart": {
"command": "node",
"args": ["/absolute/path/to/provchart-mcp/src/index.js"],
"env": {
"PROVCHART_API_KEY": "pc_live_xxxxxxxx"
}
}
}
}或使用 npx(发布后):
{
"mcpServers": {
"provchart": {
"command": "npx",
"args": ["-y", "provchart-mcp"],
"env": {
"PROVCHART_API_KEY": "pc_live_xxxxxxxx"
}
}
}
}保存后重启 Claude Desktop。
Cursor
mcp.json(项目级或全局):
{
"mcpServers": {
"provchart": {
"command": "node",
"args": ["/absolute/path/to/provchart-mcp/src/index.js"],
"env": {
"PROVCHART_API_KEY": "pc_live_xxxxxxxx"
}
}
}
}示例提示词
使用
provchart_generate生成午夜主题面积图:流量 vs 注册量,周一至周日。为 GitHub README 生成 p50/p95 延迟的 SVG 折线图。
说明如何在不使用图表库的情况下注入 ProvChart HTML/CSS。
工具参数示例(provchart_generate)
{
"type": "area",
"theme": "midnight",
"series": [
{ "name": "Traffic", "color": "#4fd8c4", "points": [30, 45, 40, 60, 55, 70, 65] },
{ "name": "Signups", "color": "#f0a860", "points": [8, 12, 11, 18, 16, 22, 20] }
],
"axisX": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
}将返回的 CSS 注入 <style> 标签,将 HTML 注入容器。可选:provchart-runtime 用于提示框 — 绘制时非必需。
环境变量
变量 | 是否必需 | 说明 |
| 是* | API 密钥( |
| 否 | 默认 |
*也可以在工具参数中传入 apiKey(推荐使用环境变量)。
错误
代码 / 消息 | 含义 |
缺少 API 密钥 | 请设置 |
| 密钥无效或已被吊销 |
| 配额已用尽(HTML 与 SVG 共享额度池) |
| 当前套餐不包含此功能 |
项目结构
provchart-mcp/
package.json
README.md
src/
index.js # MCP stdio server
client.js # ProvChart HTTP helper
tools.js # Tool schemas + handlers相关链接
ProvChart — 产品与构建器
在线演示 — 多图表 API 批量请求
provchart-runtime — 可选的 HTML 增强
st-core.fscss — 开源纯 CSS 基础
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.
Related MCP Servers
- AlicenseAqualityCmaintenanceGenerates Apache ECharts diagrams and charts with AI dynamically, supporting all ECharts features and exporting to png, svg, and option formats.18442263MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate safe, runnable HTML chart pages from structured JSON data using Apache ECharts. It provides tools for chart type recommendation, page generation, validation, and patching with controlled, deterministic output.5MIT
- AlicenseAqualityAmaintenanceZero-dependency charts for Python and AI agents. SVG and PNG, 15 chart types, a one-line MCP server, and a Claude skill.411MIT
- AlicenseAqualityBmaintenanceEnables AI agents to create data visualizations like bar charts, line charts, pie charts, scatter plots, and histograms, returning inline SVG or PNG files.5MIT
Related MCP Connectors
Diagrams, badges, charts and QR codes as plain image URLs you can paste into Markdown.
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Figsh/provchart-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server