eraser-io-mcp-server
by buck-0x·★ 21·Score 42
A Python MCP server for rendering various diagram types using the Eraser API with customizable themes and output formats.
Overview
The eraser-io-mcp-server is a comprehensive implementation that enables users to generate diagrams through the Model Context Protocol. It supports multiple diagram types including sequence diagrams, flowcharts, ER diagrams, and cloud architectures. The server provides flexible output options, returning either image URLs or base64-encoded file content, along with links to edit diagrams directly in Eraser. Features like icon validation, customizable themes, and scaling options make it a versatile tool for technical documentation and diagram generation.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need to generate diagrams programmatically within AI environments and are already using or willing to use Eraser as your diagramming tool.
When NOT to choose this
Avoid this if you need diagramming capabilities with a different provider, as this is tightly integrated with Eraser and requires an API token from their service.
Tools this server exposes
1 tool extracted from the READMErender_eraser_diagramRenders diagrams using the Eraser API with customizable themes and output formats.
Note: 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.
Comparable tools
Installation
Installation
Using pip:
pip install -e .Using uv:
uv pip install -e .Claude Desktop Configuration
Add to your Claude Desktop config.json:
{
"mcpServers": {
"eraser": {
"command": "python",
"args": ["/path/to/eraser-io-mcp-server/main.py"]
}
}
}For HTTP transport:
{
"mcpServers": {
"eraser": {
"type": "streamable-http",
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer your_auth_token"
}
}
}
}FAQ
- How do I authenticate with the Eraser API?
- Set your Eraser API token as an environment variable (ERASER_API_TOKEN) or in a .env file in the project directory.
- Can I use custom icons in my diagrams?
- Yes, but custom icons not in the standard Eraser list will trigger a warning. You can disable icon validation by setting SKIP_ICON_CHECK=true.
- What diagram types are supported?
- Sequence diagrams, cloud architecture diagrams, flowcharts, entity relationship diagrams, and more. Check the Eraser documentation for a complete list.
Compare eraser-io-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.