Python model context protocol(MCP) server for mermaid
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mermaid-mcp-2","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Mermaid MCP Model Context Protocol server for Mermaid diagrams. ## Overview Mermaid-MCP provides a server and CLI interface for creating, validating, and rendering Mermaid diagrams. It uses the `mmdc` (Mermaid CLI) to generate static SVG, PNG, or PDF files from Mermaid diagram specifications. ## Features - API server for diagram generation and validation - CLI tool for local diagram rendering - Custom theme support - Multiple output formats (SVG, PNG, PDF) - Support for all Mermaid diagram types ## Installation ```bash # Using pip pip install mermaid-mcp # Using uv uv pip install mermaid-mcp ``` ## Usage ### CLI ```bash # Generate a diagram mermaid-mcp cli chart flowchart diagram.mmd output.svg # Validate a diagram mermaid-mcp cli validate flowchart diagram.mmd ``` ### Server ```bash # Start the server mermaid-mcp server start # Install as a launch agent (macOS) mermaid-mcp server install --port=27312 ``` ## Theme Support Mermaid-MCP supports several methods of applying themes to your diagrams: 1. Built-in Mermaid themes: "default", "forest", "dark", "neutral", "base" 2. Custom CSS themes from the `css/` directory 3. Custom JSON theme configurations in the `themes/` directory ### Using a Theme #### In CLI mode ```bash # Use a built-in theme mermaid-mcp cli chart --theme=dark flowchart diagram.mmd output.svg # Use a CSS theme mermaid-mcp cli chart --css-theme=dark-mode flowchart diagram.mmd output.svg # Use a JSON theme mermaid-mcp cli chart --json-theme=forest-night flowchart diagram.mmd output.svg ``` #### In Server mode ```json // Example request to /generate/flowchart { "input": "graph TD\n A[Start] --> B[End]", "css_theme": "dark-mode" } ``` ### Creating Custom Themes #### CSS Themes Create a CSS file in the `css/` directory with CSS variables for theming: ```css /* my-theme.css */ :root { /* General theme */ --mermaid-primary-color: #282a36; --mermaid-primary-border-color: #bd93f9; --mermaid-primary-text-color: #f8f8…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.