{
"mcpServers": {
"mcp-server-echart": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
基于 mcp-go 框架构建的 mcp 服务,它提供了一个能动态生成 ECharts 图表页面的工具。
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 268 days ago. 60 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Echart and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个基于 mcp-go 框架构建的 Go 服务,它提供了一个能动态生成 ECharts 图表页面的工具。
Dockerfile,可以轻松构建轻量、可移植的 Docker 镜像。.env 文件进行配置,轻松适配不同环境。克隆本仓库到您的本地:
git clone https://github.com/cnkanwei/mcp-server-echart.git
cd mcp-server-echart
复制配置文件模板,并根据需要进行修改:
cp .env.example .env
.env 文件包含以下配置项:
PORT: 服务监听的端口 (默认: 8989)PUBLIC_URL: 对外暴露的 URL 根路径 (例如 http://localhost:8989 或 https://your.domain.com)LOG_LEVEL: 日志级别 (例如 info, debug)STATIC_DIR: 生成的静态 HTML 文件存放的目录 (默认: static)go mod tidy
go run main.go
服务启动后,会监听在 .env 文件中配置的 PORT 端口(默认为 8989)。
构建 Docker 镜像:
docker build -t mcp-server-echart .
运行 Docker 容器:
# 基础运行
docker run -p 8989:8989 -d --name my-echart-server mcp-server-echart
# 自定义端口和对外 URL
docker run -p 9090:9090 \
-e PORT=9090 \
-e PUBLIC_URL="https://my.domain.com" \
-d --name my-echart-server mcp-server-echart
本服务提供了一个名为 generate_echarts_page 的工具。
title (string, 必需): 图表页面的标题。inputSchema (object, 必需): ECharts 的 JSON 配置对象。width (number, 可选): 图表的宽度(像素),默认 800。height (number, 可选): 图表的高度(像素),默认 600。成功调用后,工具会返回一个 URL,指向新生成的图表页面。
本服务可以通过任何支持 Server-Sent Events (SSE) 的 MCP 客户端进行调用。
如果您使用的 MCP 客户端支持通过配置文件连接到服务器,您可以添加如下配置来连接到本服务。
请将 mcp-server-echart 添加到您的客户端配置中,并将 URL 指向本服务的监听地址(默认为 http://localhost:8989/sse)。
示例配置 (client-config.json):
{
"mcpServers": {
"mcp-server-echart": {
"url": "http://localhost:8989/sse"
}
}
}
另一个示例 (例如,用于浏览器环境):
{
"mcpServers": {
"browser-use-mcp-server": {
"url": "http://localhost:8000/sse"
}
}
}
注意:
- URL 应与您在
.env文件中配置的PORT和PUBLIC_URL保持一致。mcp-go工具调用的默认端点是/sse,而不是/。
如果您的 MCP 客户端支持通过命令启动服务,您也可以配置它来直接运行 Docker Hub 上的镜像。这会将服务作为一个子进程来管理,客户端通过标准输入/输出 (stdin/stdout) 与其通信。
这对于本地开发或将服务分发给他人使用非常方便。
示例配置 (client-config.json):
{
"mcpServers": {
"mcp-server-echart-docker": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-p",
"8989:8989",
"-e",
"PORT=8989",
"-e",
"PUBLIC_URL=http://localhost:8989",
"cnkanwei/mcp-server-echart:latest"
]
}
}
}
注意:
-p 8989:8989将容器的 8989 端口映射到主机的 8989 端口,以便您可以从浏览器访问生成的图表。cnkanwei/mcp-server-echart:latest是发布在 Docker Hub 上的公共镜像。
本项目基于 MIT License 开源。