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

flow-forge-mcp

v1.0.0

Published

MCP Server for Flow-Forge intelligent flowchart generation

Readme

Flow-Forge MCP Server

MCP (Model Context Protocol) server that enables AI assistants like Claude, ChatGPT, and Gemini to generate flowcharts using Flow-Forge's multi-agent system.

Features

  • Intelligent Flowchart Generation: Natural language to diagram conversion
  • Multi-round Q&A: Interactive clarification for better results
  • Multiple Formats: Mermaid, PlantUML, and BPMN 2.0 support
  • Real-time Progress: SSE-based progress reporting
  • Task Management: Status checking and cancellation

Installation

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Set the Flow-Forge API URL via environment variable:

export FLOWFORGE_API_URL=http://localhost:8000

Optionally, configure an API key for authentication:

export FLOWFORGE_API_KEY=your-api-key-here

Or create a .env file:

FLOWFORGE_API_URL=http://localhost:8000
FLOWFORGE_API_KEY=your-api-key-here  # Optional

Usage

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "flow-forge": {
      "command": "node",
      "args": ["/path/to/flow-forge-mcp/dist/index.js"],
      "env": {
        "FLOWFORGE_API_URL": "http://localhost:8000",
        "FLOWFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Or using npx (after publishing):

{
  "mcpServers": {
    "flow-forge": {
      "command": "npx",
      "args": ["flow-forge-mcp"],
      "env": {
        "FLOWFORGE_API_URL": "http://localhost:8000",
        "FLOWFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Development

# Run in development mode
npm run dev

# Type checking
npm run typecheck

Tools

generate_flowchart

Generate or modify a flowchart based on natural language requirements.

Parameters:

  • requirements (string, required): Natural language description
  • answers (object, optional): Answers to clarification questions
  • context (object, optional): Execution context from previous call
  • current_code (string, optional): Existing diagram code for modification
  • collection_id (string, optional): RAG collection ID
  • diagram_format (string, optional): "mermaid" | "plantuml" | "bpmn"

Returns:

  • status: "completed" | "questions_required" | "failed"
  • diagram_format: Output format (when completed)
  • diagram_code: Generated diagram code (when completed)
  • questions: Clarification questions (when questions_required)
  • context: Context for continuation

get_task_status

Get the current status of a flowchart generation task.

Parameters:

  • task_id (string, required): Task ID from generate_flowchart

Returns:

  • task_id: Task identifier
  • status: Current status
  • progress: Execution progress (0-1)
  • current_agent: Currently executing agent
  • result: Task result (when completed)
  • error: Error message (when failed)

cancel_task

Cancel a running flowchart generation task.

Parameters:

  • task_id (string, required): Task ID to cancel

Returns:

  • status: "cancelled" | "already_finished" | "not_found"
  • message: Status message

list_diagram_types

List all supported diagram types and their characteristics.

Returns:

  • types: Array of diagram type information
    • type: Type identifier
    • name: Display name
    • description: Description
    • formats: Supported output formats
    • examples: Example requirements

Example Conversation

User: Help me create a user login flowchart

Claude: [calls generate_flowchart]

The system needs some clarification:

  1. What authentication methods? (Username/Password, Phone verification, Social login)
  2. Need "Remember me" feature?

What are your preferences?

User: Username/password, yes for remember me

Claude: [calls generate_flowchart with answers and context]

Here's your login flowchart:

flowchart TD
    A[Start] --> B[Enter username/password]
    B --> C{Validate}
    C -->|Success| D{Remember me?}
    D -->|Yes| E[Save token]
    D -->|No| F[Skip]
    E --> G[Go to home]
    F --> G
    C -->|Fail| H[Show error]
    H --> B

Supported Diagram Types

| Type | Description | Formats | |------|-------------|---------| | flowchart | Process visualization, decision trees | Mermaid, PlantUML, BPMN | | sequence | Interaction over time | Mermaid, PlantUML | | gantt | Project timeline | Mermaid | | mindmap | Concept organization | Mermaid | | class | UML class diagrams | Mermaid, PlantUML | | er | Entity-Relationship | Mermaid | | state | State machines | Mermaid, PlantUML | | component | System architecture | PlantUML | | usecase | Use case diagrams | PlantUML | | activity | Activity diagrams | PlantUML | | bpmn | Business processes | BPMN |

Requirements

  • Node.js >= 18.0.0
  • Flow-Forge API server running

License

MIT