This MCP server validates Mermaid diagram syntax and checks grammar correctness.
Validate Mermaid diagrams: Check if text contains valid Mermaid diagram code using the
checktoolError detection: Returns detailed error messages when syntax issues are detected, or an empty string when the diagram is valid
Multiple installation methods: Supports npm, yarn, pnpm, bun, or deno
Flexible deployment: Available in both stdio (local) and HTTP/SSE (remote) configurations for integration with MCP clients like Cursor
Validates Mermaid diagram syntax and provides comprehensive grammar checking capabilities for Mermaid diagrams.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mermaid-Grammer-Inspectorcheck this mermaid syntax for errors: graph TD; A-->B; B-->C"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mermaid Grammer Inspector
A Model Context Protocol (MCP) server for validating Mermaid diagram syntax and providing comprehensive grammar checking capabilities
English | 简体中文
Usage
Install the package:
# npm
npm installg @betterhyq/mermaid-grammer-inspector-mcp
# yarn
yarn addg @betterhyq/mermaid-grammer-inspector-mcp
# pnpm
pnpm addg @betterhyq/mermaid-grammer-inspector-mcp
# bun
bun installg @betterhyq/mermaid-grammer-inspector-mcp
# deno
deno installg npm:@betterhyq/mermaid-grammer-inspector-mcpNPX Cursor Config
{
"mcpServers": {
"mermaid-grammer-inspector": {
"command": "npx",
"type": "stdio",
"transportType": "stdio",
"args": [
"-y",
"mermaid-grammer-inspector"
]
}
}
}Http Cursor Config
start the service locally
mermaid-grammer-inspector --http --port=4000set the config
{
"mcpServers": {
"mermaid-grammer-inspector": {
"url": "http://0.0.0.0:4000/sse",
"type": "sse",
"transportType": "sse"
}
}
}License
Published under the MIT license. Made by community 💛
🤖 auto updated with