npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

flowmind-mcp-server

v0.1.1

Published

MCP server for Mermaid diagram generation and validation

Readme

flowmind-mcp-server

A Model Context Protocol (MCP) server that provides Mermaid diagram generation, validation, and optimization tools for AI assistants.

Features

Mermaid Validation - Hybrid validation using official parser + rule-based checks
Diagram Optimization - Auto-improve layout, readability, and accessibility
Format Conversion - Convert between flowchart, sequence, class, ER, and other formats
Template Library - 20+ professional templates for various use cases
Error Suggestions - Actionable recommendations for syntax fixes

Quick Start

Installation

npm install -g flowmind-mcp-server

MCP Configuration

Claude Code (~/.config/claude-code/mcp_servers.json):

{
  "mcpServers": {
    "flowmind-mcp": {
      "command": "npx",
      "args": ["flowmind-mcp-server"],
      "description": "Mermaid diagram tools"
    }
  }
}

Cursor (settings):

{
  "mcp": {
    "servers": {
      "flowmind-mcp": {
        "command": "npx",
        "args": ["flowmind-mcp-server"]
      }
    }
  }
}

Available Tools

1. validate_mermaid

Validates Mermaid syntax and provides fixes.

{
  "name": "validate_mermaid",
  "arguments": {
    "mermaidCode": "flowchart TD\n    A[Start] --> B[End]",
    "strict": false
  }
}

2. get_diagram_templates

Get pre-built templates by type, use case, and complexity.

{
  "name": "get_diagram_templates",
  "arguments": {
    "diagramType": "flowchart",
    "useCase": "software-architecture", 
    "complexity": "medium"
  }
}

3. optimize_diagram ✨

Optimize diagram layout, readability, and accessibility.

{
  "name": "optimize_diagram",
  "arguments": {
    "mermaidCode": "flowchart TD\n    a --> b --> c",
    "goals": ["readability", "accessibility"],
    "maxSuggestions": 5
  }
}

Optimization Goals:

  • readability - Improve naming, labels, structure
  • compactness - Reduce redundancy, optimize layout
  • aesthetics - Visual styling suggestions
  • accessibility - Color contrast, descriptions

4. convert_diagram_format ✨

Convert between diagram formats with structure optimization.

{
  "name": "convert_diagram_format",
  "arguments": {
    "mermaidCode": "flowchart TD\n    A --> B",
    "targetFormat": "sequence",
    "optimizeStructure": true
  }
}

Supported Formats: flowchart, sequence, class, er, gantt, pie, journey, gitgraph, mindmap, auto

Usage Examples

AI Workflow Example

User: "Create an optimized e-commerce system architecture diagram"

AI Process:
1. get_diagram_templates → Find architecture templates
2. validate_mermaid → Check generated syntax  
3. optimize_diagram → Improve readability
4. Result: Professional, optimized diagram with quality metrics

Template Exploration

User: "Show me microservices templates"

AI: Uses get_diagram_templates with:
- diagramType: "flowchart"
- useCase: "software-architecture" 
- complexity: "complex"

Returns: Microservices, CI/CD, distributed systems templates

Format Conversion

User: "Convert this flowchart to a sequence diagram"

AI: Uses convert_diagram_format to transform structure
while preserving semantic meaning

Diagram Types & Use Cases

| Type | Best For | |------|----------| | flowchart | Business processes, system flows | | sequence | API interactions, user flows | | class | Object-oriented design, UML | | er | Database schema, entity relationships | | gantt | Project timelines, planning | | journey | User experience mapping |

Template Categories

  • Software Architecture - Microservices, CI/CD, distributed systems
  • Business Process - Workflows, decision trees, user journeys
  • Database Design - ER diagrams, schema design
  • Project Management - Gantt charts, timelines

AI Prompt Examples

Effective prompts for AI assistants:

🎯 "Create a [type] diagram for [use case], validate and optimize for [goals]"

🔧 "Review this diagram and suggest accessibility improvements"

📊 "Find templates for microservices architecture and customize for e-commerce"

🔄 "Convert my flowchart to sequence diagram and optimize readability"

Development

# Setup
npm install
npm run build

# Testing  
npm test
npm run test:watch

# Development
npm run dev

Troubleshooting

MCP Server Not Found:

# Verify installation
npm list -g flowmind-mcp-server

# Use full path if needed
{
  "command": "node",
  "args": ["/full/path/to/flowmind-mcp-server/dist/index.js"]
}

Tools Not Available:

# Check MCP server logs
npx flowmind-mcp-server --verbose

# Verify JSON syntax
cat ~/.config/claude-code/mcp_servers.json | jq .

License

MIT License - see LICENSE file for details.