Back to MCP Servers

Mermaid Grammer Inspector

A Model Context Protocol (MCP) server for validating Mermaid diagram syntax and providing comprehensive grammar checking capabilities

architecture-designai
By betterhyq
51Updated 3 weeks agoTypeScriptMIT

Installation

npx -y mermaid_grammer_inspector_mcp

Configuration

{
  "mcpServers": {
    "mermaid_grammer_inspector_mcp": {
      "command": "npx",
      "args": ["-y", "mermaid_grammer_inspector_mcp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes

<img src="https://mermaid.js.org/favicon.svg" height="24"/> Mermaid Grammer Inspector

Mermaid-Grammer-Inspector MCP server npm version npm downloads bundle size license

A Model Context Protocol (MCP) server for validating Mermaid diagram syntax and providing comprehensive grammar checking capabilities

Usage

Install the package:

<!-- automd:pm-install global auto=false -->
# 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-mcp
<!-- /automd -->

NPX 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=4000

set the config

{
  "mcpServers": {
    "mermaid-grammer-inspector": {
      "url": "http://0.0.0.0:4000/sse",
      "type": "sse",
      "transportType": "sse"
    }
  }
}

License

<!-- automd:contributors license=MIT -->

Published under the MIT license. Made by community 💛 <br><br> <a href="https://github.com/bjmhe-archived/mermaid-grammer-inspector-mcp/graphs/contributors"> <img src="https://contrib.rocks/image?repo=bjmhe-archived/mermaid-grammer-inspector-mcp" /> </a>

<!-- /automd --> <!-- automd:with-automd -->

🤖 auto updated with automd

<!-- /automd -->
View source on GitHub