eraser-io-mcp-server
by buck-0x·★ 21·综合分 42
一个使用 Eraser API 渲染各类图表的 Python MCP 服务器,支持自定义主题和输出格式。
概述
eraser-io-mcp-server 是一个全面的实现,允许用户通过模型上下文协议生成图表。它支持多种图表类型,包括序列图、流程图、ER图和云架构图。服务器提供灵活的输出选项,可以返回图像 URL 或 base64 编码的文件内容,以及直接在 Eraser 中编辑图表的链接。图标验证、自定义主题和缩放选项等功能使其成为技术文档和图表生成的多用途工具。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您需要在 AI 环境中以编程方式生成图表,并且已经使用或愿意使用 Eraser 作为图表工具时,选择此 MCP 服务器。
什么时候不要选它
如果您需要使用其他提供商的图表功能,请避免使用此服务器,因为它与 Eraser 紧密集成,并且需要他们的 API 令牌。
此 server 暴露的工具
从 README 抽取出 1 个工具render_eraser_diagramRenders diagrams using the Eraser API with customizable themes and output formats.
说明:The tool name 'render_eraser_diagram' was inferred from the main CLI script name, as the README doesn't explicitly document MCP tool names. The functionality is clearly described in the CLI usage examples.
可对比工具
安装
安装
使用 pip:
pip install -e .使用 uv:
uv pip install -e .Claude Desktop 配置
添加到您的 Claude Desktop config.json:
{
"mcpServers": {
"eraser": {
"command": "python",
"args": ["/path/to/eraser-io-mcp-server/main.py"]
}
}
}对于 HTTP 传输:
{
"mcpServers": {
"eraser": {
"type": "streamable-http",
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer your_auth_token"
}
}
}
}FAQ
- 如何与 Eraser API 进行身份验证?
- 将您的 Eraser API 令牌设置为环境变量 (ERASER_API_TOKEN) 或项目目录中的 .env 文件。
- 我可以在图表中使用自定义图标吗?
- 可以,但不在标准 Eraser 列表中的自定义图标将触发警告。您可以通过设置 SKIP_ICON_CHECK=true 来禁用图标验证。
- 支持哪些图表类型?
- 序列图、云架构图、流程图、实体关系图等。完整列表请查看 Eraser 文档。
eraser-io-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。