npm layerback-mcpstdioMITupdated 1mo ago
Give your AI agent the one diagram skill it's missing: turning pictures of diagrams into fully editable files.
layerback mcp 能做什么?
LayerBack MCP Server
Give your AI agent the one diagram skill it's missing: turning pictures of diagrams into fully editable files.
Agents can write Mermaid — but when the input is a screenshot, a whiteboard photo, or a diagram trapped in a PDF page, they're stuck. This MCP server connects any MCP-compatible agent (Claude Desktop, Claude Code, Cursor, …) to LayerBack, which rebuilds every shape, connector, and label as a native object and returns Visio (VSDX), PowerPoint (PPTX), draw.io, and SVG — all editable, from one conversion.
Tools
| Tool | What it does |
|---|---|
convert_diagram_image |
Convert a local image file (PNG/JPG/WebP); waits for the result by default (~30–60 s) |
get_conversion_status |
Poll a running job |
download_converted_diagram |
Save any output format to a local path |
Setup
- Create an API key at https://layerback.com/settings/apikeys (new accounts include free credits — one conversion costs 10 and includes every output format).
- Add the server to your MCP client config:
{
"mcpServers": {
"layerback": {
"command": "npx",
"args": ["-y", "layerback-mcp"],
"env": { "LAYERBACK_API_KEY": "your-key-here" }
}
}
}
Example prompts
- "Convert ~/Desktop/whiteboard.jpg into a Visio file and save it to my Downloads folder."
- "Here's a screenshot of our architecture diagram — rebuild it as an editable draw.io file."
- "Batch-convert every PNG in ./legacy-diagrams to VSDX."
Notes
- Requires Node 18+.
- REST API docs: https://layerback.com/docs/api · OpenAPI: https://layerback.com/openapi.yaml
- Files upload to LayerBack for conversion and are deleted within 72 hours.
MIT © LayerBack
安装
把 layerback mcp 添加到你的客户端。选择你正在使用的那个。
claude mcp add layerback-mcp -- npx -y layerback-mcpcodex mcp add layerback-mcp -- npx -y layerback-mcpamp mcp add layerback-mcp -- npx -y layerback-mcp{
"mcpServers": {
"layerback-mcp": {
"command": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"layerback-mcp": {
"command": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"layerback-mcp","command":"npx","args":["-y","layerback-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"layerback-mcp": {
"command": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"layerback-mcp": {
"command": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"layerback-mcp": {
"command": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"layerback-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"layerback-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"layerback-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"layerback-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y layerback-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
3 个工具
layerback mcp 向已连接的智能体提供 3 个工具。
- convert_diagram_image
- Convert a local image file (PNG/JPG/WebP); waits for the result by default (~30–60 s)
- get_conversion_status
- Poll a running job
- download_converted_diagram
- Save any output format to a local path
评分
73 / 100
良好
- 文档22/25
- 维护19/25
- 可信度16/20
- 能力4/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 27 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 3 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.2最新 | 2026年8月5日 |