Mermaid-Grammer-Inspector
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 "Deploy 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-Inspector check 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
Usage
Install the package:
# npm
npm installg @bjmhe/mermaid-grammer-inspector-mcp
# yarn
yarn addg @bjmhe/mermaid-grammer-inspector-mcp
# pnpm
pnpm addg @bjmhe/mermaid-grammer-inspector-mcp
# bun
bun installg @bjmhe/mermaid-grammer-inspector-mcp
# deno
deno installg npm:@bjmhe/mermaid-grammer-inspector-mcp
# vp
vp installg @bjmhe/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"
}
}
}Related MCP server: mcp-mermaid-validator
License
Published under the MIT license. Made by community 💛
🤖 auto updated with automd
Available Tools
1 toolcheckA
Check if the text is a valid mermaid diagram. Returns an empty string if valid, otherwise returns the error message.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no ambiguity whatsoever.
With a single tool, naming is trivially consistent.
A single tool for validation is borderline; it feels thin for a server named 'Inspector' but could be acceptable for a focused utility.
Only validation is provided; lacking features like parsing, rendering, or transformation for a diagram inspector.
Maintenance
Related MCP Connectors
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Validate Mermaid syntax and get error details your coding agent can use to correct a diagram. Check the source again before adding it to your documentation. Validation works without saving a diagram. Render SVG, PNG, or PDF, save diagrams privately, and publish selected snapshots. Your existing agent writes and corrects the source; MermaidDesk checks and renders it. Validation checks syntax, not whether a diagram accurately describes a system. Connect through MCP with Streamable HTTP and a scoped bearer API key. Enable MERMAID_RENDER for validation and rendering. A REST API is also available. MCP setup: https://www.mermaiddesk.com/developers/mcp REST API guide: https://www.mermaiddesk.com/developers/api
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Related MCP Servers
- AlicenseBqualityBmaintenanceA Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.1289 npm234MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that validates and renders Mermaid diagrams.182 npm57MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA server that implements the Model Context Protocol (MCP), providing an interface for LLM applications to generate mermaid.js visualizations and diagrams.MIT
- 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.12MIT