# Eraser MCP MCP Server

> **Eraser MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Eraser MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/eraser-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Create and maintain technical diagrams and documentation directly in Eraser using natural-language prompts or diagram code. Generate architecture diagrams, flowcharts, sequence diagrams, ERDs and BPMN workflows; read and edit existing diagrams, create technical documents, search workspace files, organize folders, manage reusable style presets, and export diagrams to PNG, SVG, PDF, Visio, PowerPoint and draw.io formats

---

## Details

- Server ID: `eraser-mcp`
- Version: 0.2.0
- Tools: 42
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Eraser MCP has to be in the toolset
first. In order:

1. Add Eraser MCP to your toolset at https://mewcp.com/mcp/eraser-mcp
2. Connect your Eraser MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Eraser MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `eraser-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (42)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_me` _(read)_ — Fetch the current user, active team, and team memberships.
- `list_teams` _(read)_ — List the teams the current user belongs to (OAuth), or the teams an organization API key can act on.
- `select_team` _(write)_ — Set the active team for the session when the user belongs to multiple teams (OAuth only).
- `search` _(read)_ — Full-text and semantic search across files or diagrams. Omit 'kind' for content search (finds matching blocks). Use kind: 'file' only to look up a file by name…
- `export_document` _(read)_ — Export a file document as an inline markdown resource by default, without uploading it or generating a URL. Set returnAs: "url" to store an export using…
- `export_file` _(read)_ — Returns the Eraser file URL for PDF export. NOTE: programmatic PDF export is not yet available via MCP — this returns a link for the user to export from the…
- `export_diagram` _(read)_ — Render a canvas diagram to PNG or JPEG. Defaults to returnAs: "stream": returns inline base64 image content, with no storage upload or image URL. Inline images…
- `get_file` _(read)_ — Fetch a file's metadata, document outline (headers), and the list of diagrams in it.
- `list_files` _(read)_ — List files in the team workspace, optionally scoped to a folder.
- `create_file` _(write)_ — Create an empty file, or duplicate an existing file when sourceFileId is provided. Never populates content from a prompt — use create_document/create_diagram…
- `update_file` _(destructive)_ — Update file metadata (title, folder, sharing). When applyTemplate is provided, AI fills an EMPTY file from a preset template: it generates the template's…
- `manually_update_file` _(destructive)_ — Replace a file's document markdown and/or diagram code in one call. No AI — caller supplies exact markdown/DSL/JSON.
- `delete_file` _(destructive)_ — Archive a file.
- `get_diagram` _(read)_ — Fetch a diagram's metadata and DSL/JSON code. For freeform diagrams, set includeFreeformDefinition: true to get the full scene structure (elements,…
- `list_diagrams` _(read)_ — List the diagrams contained in a file.
- `create_diagram` _(write)_ — PREFERRED for creating a diagram from a natural-language prompt — Eraser's AI picks the diagram type, generates the DSL, and renders it. DO NOT pre-classify…
- `manually_create_diagram` _(write)_ — ADVANCED — most callers should use create_diagram instead. This tool writes a caller-supplied diagram definition VERBATIM into a new diagram; no AI runs. For…
- `update_diagram` _(destructive)_ — USE THIS for any user request that describes the change in natural language — verbs like 'add', 'remove', 'change', 'rename', 'recolor', 'make it more X', etc.…
- `manually_update_diagram` _(destructive)_ — ADVANCED — most callers should use update_diagram instead. This tool writes a diagram's complete DSL/JSON (or freeform edits) VERBATIM; no AI runs and the…
- `delete_diagram` _(destructive)_ — Delete a diagram from a file.
- `get_document` _(read)_ — Fetch the full markdown body of a file's document.
- `create_document` _(write)_ — PREFERRED for populating a document from a natural-language prompt — Eraser's AI generates the markdown. Only callable on a file with an empty document body;…
- `manually_create_document` _(write)_ — ADVANCED — most callers should use create_document instead. This tool populates an empty file's document body with caller-supplied markdown VERBATIM; no AI…
- `update_document` _(destructive)_ — USE THIS for any user request that describes the change in natural language — verbs like 'add a section', 'rewrite the intro', 'fix the typo', 'remove the…
- `manually_update_document` _(destructive)_ — ADVANCED — most callers should use update_document instead. This tool replaces a file's document body with caller-supplied markdown VERBATIM; no AI runs and…
- `delete_document` _(destructive)_ — Clear a file's document body to an empty markdown document.
- `get_folder` _(read)_ — Fetch a folder by id.
- `list_folders` _(read)_ — List folders. Pass `parentFolderId` to scope to direct children of a folder (or `null` for top-level only). Pass `nameContains` to resolve a folder the user…
- `create_folder` _(write)_ — Create a new folder.
- `update_folder` _(destructive)_ — Rename or move a folder, or bulk-apply a link-sharing setting to every file inside it (recursively). Note: folders do not store linkAccess themselves — to…
- `delete_folder` _(destructive)_ — Delete a folder. Rejects when the folder is not empty.
- `get_preset` _(read)_ — Fetch a preset including its rules, templates, and references.
- `list_presets` _(read)_ — List the team's presets. Pass `nameContains` to resolve a preset the user names by string (e.g. 'the Marketing preset') without scanning the full list — much…
- `create_preset` _(write)_ — Create a new preset (the team-level container for AI styling: templates, references, and rules). After creating, the typical next steps to make the preset…
- `update_preset` _(write)_ — Rename a preset or update its metadata (`name`, `description`, `isDefault`). Does NOT modify rules or templates/references — use `update_rules` and…
- `delete_preset` _(destructive)_ — Delete a preset. Rejects when the preset has any rules, templates, or references.
- `get_template_or_reference` _(read)_ — Fetch a template/reference's metadata, document outline, and diagram list.
- `create_template_or_reference` _(write)_ — Create a new template (style anchor) or reference (terminology/concept anchor) file and, when `presetId` is provided, attach it to that preset in a single…
- `update_template_or_reference` _(write)_ — Rename a template or reference file.
- `add_or_remove_template_or_reference` _(destructive)_ — Attach or detach an EXISTING file as a template (style anchor) or reference (terminology/concept anchor) of a preset. Use this tool when: - the user has an…
- `publish_template_or_reference` _(write)_ — Publish a new version of a template/reference file.
- `update_rules` _(destructive)_ — Add, update, or remove rules on a preset in a single batched call. Rules are natural-language instructions the AI will follow when generating…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/eraser-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/eraser-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/eraser-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/eraser-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/eraser-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/eraser-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/eraser-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/eraser-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/eraser-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/eraser-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/eraser-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/eraser-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/eraser-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/eraser-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/eraser-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/eraser-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/eraser-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/eraser-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/eraser-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/eraser-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/eraser-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/eraser-mcp/connect/junie
- Amp: https://mewcp.com/mcp/eraser-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/eraser-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/eraser-mcp/connect/goose
- Python: https://mewcp.com/mcp/eraser-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/eraser-mcp/connect/typescript