Skip to content
← All MCP servers

Is the Mermaid MCP server safe? What it can reach

What the Mermaid MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Mermaid Chart runs an official hosted MCP server at mcp.mermaid.ai. You sign in with OAuth or an API token from your account settings. Its nine tools render diagrams and create, read and update diagrams in your Mermaid Chart projects. None delete. A free community option, mcp-mermaid, runs locally with no account.

Who maintains it

ImplementationKindStatus
Mermaid Chart MCP server (hosted)Officialactive
mcp-mermaid (community, hustcc)Communityactive

It runs as a hosted remote server. The documented endpoint is https://mcp.mermaid.ai/mcp.

How it signs in

OAuth 2.1 with dynamic client registration, or an API token from your Mermaid account settings sent in the Authorization header. The server acts on your Mermaid Chart account. A free Basic account is enough.

What its tools can do

KindTools
Readvalidate_and_render_mermaid_diagram, get_diagram_title, get_diagram_summary, list_tools, list_mermaid_chart_projects, list_mermaid_chart_diagrams, get_mermaid_chart_diagram
Writecreate_mermaid_chart_diagram, update_mermaid_chart_diagram
Can’t be undonenone documented

This covers the hosted official server’s nine tools. The community mcp-mermaid server’s README lists no tool names, so its tools are not recorded here. It offers outputType options including file and public mermaid.ink URLs.

Built-in limits

OptionWhat it does
Authentication on every callEvery tool call needs OAuth or a valid token, and calls fail if neither is in place.
OAuth instead of a pasted tokenWith OAuth no token sits in your config file. A manual token goes in the client config, which you must protect.
Token permissionsMermaid says to check your token has the permissions for the operations you want, but it names no scopes.

The risks

  • update_mermaid_chart_diagram changes saved diagrams in your account, so an injected instruction could overwrite a diagram your team uses.
  • Diagram text you pass to validate_and_render_mermaid_diagram or create_mermaid_chart_diagram goes to Mermaid’s hosted service, so don’t put secrets or private architecture in it.
  • list_mermaid_chart_projects and get_mermaid_chart_diagram read your projects and diagram contents into the agent’s context.
  • A manual token in a client config file carries your account’s rights, and the docs say that file must be protected.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http mermaid https://mcp.mermaid.ai/mcp

Claude Code names MCP tools mcp__mermaid__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__mermaid__create_mermaid_chart_diagram",
      "mcp__mermaid__update_mermaid_chart_diagram"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.mermaid]
url = "https://mcp.mermaid.ai/mcp"

Checklist

  • Use OAuth so no token sits in a config file.
  • Keep secrets and private details out of diagram text.
  • Approve update_mermaid_chart_diagram calls, since they overwrite saved diagrams.
  • Use the local community server if you want rendering without a hosted account.

Checked against the vendor documentation on November 25, 2026. Mermaid Chart MCP server docs · hustcc/mcp-mermaid README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing