MCP Server Mermaid
MCP Mermaid

Динамическая генерация mermaid диаграмм и графиков с помощью AI MCP. Вы также можете использовать:
mcp-server-chart для создания диаграмм, графиков и карт.
Infographic для создания инфографики, такой как
Timeline,Comparison,List,Processи т.д.🖼️ figure.ling.pub/gallery для просмотра и обмена сгенерированными ИИ диаграммами и рисунками, созданными с помощью mcp-mermaid и других инструментов.
✨ Возможности
Полная поддержка всех функций и синтаксиса
Mermaid.Поддержка конфигурации
backgroundColorиtheme, что позволяет крупным языковым моделям выводить богатые стилистические настройки.Поддержка экспорта в форматы
base64,svg,mermaid,file, а также удобные для удаленного использования форматыsvg_urlиpng_url, с проверкойMermaidдля облегчения многоэтапного вывода правильного синтаксиса и графики моделью. ИспользуйтеoutputType: "file"для автоматического сохранения PNG-диаграмм на диск для AI-агентов или режимы URL для обмена диаграммами через публичные ссылки mermaid.ink.
Related MCP server: Mermaid-MCP
🤖 Использование
Для использования с Desktop APP, такими как Claude, VSCode, Cline, Cherry Studio и другими, добавьте конфигурацию MCP-сервера ниже. В системе Mac:
{
"mcpServers": {
"mcp-mermaid": {
"command": "npx",
"args": [
"-y",
"mcp-mermaid"
]
}
}
}В системе Windows:
{
"mcpServers": {
"mcp-mermaid": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"mcp-mermaid"
]
}
}
}Также вы можете использовать его на aliyun, modelscope, glama.ai, smithery.ai или других платформах с протоколами HTTP и SSE.
Точки доступа:
SSE:
http://localhost:3033/sseStreamable:
http://localhost:1122/mcp
Доступные теги Docker:
susuperli/mcp-mermaid:latest- Последняя стабильная версияПросмотреть все доступные теги можно на Docker Hub
🚰 Запуск с транспортом SSE или Streamable
Вариант 1: Глобальная установка
Установите пакет глобально:
npm install -g mcp-mermaidЗапустите сервер с предпочтительным вариантом транспорта:
# For SSE transport (default endpoint: /sse)
mcp-mermaid -t sse
# For Streamable transport with custom endpoint
mcp-mermaid -t streamableВариант 2: Локальная разработка
Если вы работаете с исходным кодом локально:
# Clone and setup
git clone https://github.com/hustcc/mcp-mermaid.git
cd mcp-mermaid
npm install
npm run build
# Run with npm scripts
npm run start:sse # SSE transport on port 3033
npm run start:streamable # Streamable transport on port 1122Точки доступа
Затем вы можете получить доступ к серверу по адресу:
Транспорт SSE:
http://localhost:3033/sseТранспорт Streamable:
http://localhost:1122/mcp(локально) илиhttp://localhost:3033/mcp(глобально)
🎮 Опции CLI
Вы также можете использовать следующие опции CLI при запуске MCP-сервера. Опции команды можно посмотреть, запустив CLI с флагом -h.
MCP Mermaid CLI
Options:
--transport, -t Specify the transport protocol: "stdio", "sse", or "streamable" (default: "stdio")
--port, -p Specify the port for SSE or streamable transport (default: 3033)
--endpoint, -e Specify the endpoint for the transport:
- For SSE: default is "/sse"
- For streamable: default is "/mcp"
--help, -h Show this help message🔨 Разработка
Установите зависимости:
npm installСоберите сервер:
npm run buildЗапуск MCP-сервера
Использование MCP Inspector (для отладки):
npm run startИспользование различных транспортных протоколов:
# SSE transport (Server-Sent Events)
npm run start:sse
# Streamable HTTP transport
npm run start:streamableПрямые команды node:
# SSE transport on port 3033
node build/index.js --transport sse --port 3033
# Streamable HTTP transport on port 1122
node build/index.js --transport streamable --port 1122
# STDIO transport (for MCP client integration)
node build/index.js --transport stdio🐳 Использование Docker
Запустите MCP Mermaid с помощью Docker:
# Pull the image
docker pull susuperli/mcp-mermaid:latest
# Run with SSE transport (default)
docker run -p 3033:3033 susuperli/mcp-mermaid:latest --transport sse
# Run with streamable transport
docker run -p 1122:1122 susuperli/mcp-mermaid:latest --transport streamable --port 1122📄 Лицензия
MIT@hustcc.
Maintenance
Tools
Related MCP Servers
- TypeScriptMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that converts text inputs into visualized flowcharts, enabling AI clients to generate high-quality Mermaid diagrams directly from natural language descriptions or structured text.11MIT
- FlicenseNot gradedqualityFmaintenanceNarasimhaponnada/mermaid-mcp - AI-powered Mermaid diagram generation with 22+ diagram types including flowcharts, sequence diagrams, class diagrams, ER diagrams, architecture diagrams, state machines, and more. Features 50+ pre-built templates, advanced layout engines, SVG/PNG/PDF exports.51
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to programmatically create and manage flowcharts, ERDs, and swimlane diagrams. It provides tools for manipulating diagram structures, performing auto-layouts, and exporting to Mermaid or Markdown formats.14MIT
Related MCP Connectors
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hustcc/mcp-mermaid'
If you have feedback or need assistance with the MCP directory API, please join our Discord server