Mefagram
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Mefagram
Diagrams your AI agent can edit. You explore them, and talk back.
A local MCP workspace for Claude Code, Codex and any MCP client: your agent maps workflows, plans and codebases; you read them in the browser, comment on any step, and the agent updates the map.
Quick start · How it works · Features · Agent guide · npm
Why Mefagram
Long chats produce great plans, architecture sketches and checklists, and then they scroll away. Diagram tools are built for people drawing by hand, not for agents. Mermaid in a chat is a snapshot nobody can iterate on.
Mefagram is the missing piece in between: a persistent, structured diagram store that agents write through MCP and people read in the browser, with a feedback loop in both directions. It runs entirely on your machine, with no account, API key or cloud service.
Related MCP server: omni-flow
Quick start
You need Node.js 24+.
Claude Code: install the plugin. It adds the MCP server and skills to map a process, map your codebase and handle your comments.
/plugin marketplace add berkinduz/mefagram
/plugin install mefagram@mefagramCodex: the CLI, the IDE extension and the ChatGPT app share this setting.
codex mcp add mefagram -- npx -y mefagram mcpAny other MCP client: run npx -y mefagram mcp as a stdio server, or connect over HTTP to http://127.0.0.1:4747/api/mcp.
The agent starts the workspace when it needs it. Open it yourself with npx mefagram open, then try:
Map how a request flows through this repo, with links to the code.
How it works
This diagram was exported by Mefagram itself (export_diagram with format: "svg").
Features
Feature | What it does |
Ask, don't draw | Agents create maps from Mermaid, which they already write fluently, then add descriptions, notes, sources and code links with atomic edits. |
Talk back | Comment on any node or diagram. The agent reads it with |
Shared context |
|
Live | Changes stream into the browser as they are saved, and the nodes the agent touched light up. |
Jump to the code | Codebase maps link each step to its file and line, opening in VS Code, Cursor, Windsurf or Zed. |
Readable at any size | Phases collapse into an overview; open one for its steps. Map or list view, search, revision history and restore. |
Safe for agents | Optimistic revisions, retry-safe mutation IDs and validation mean concurrent agents never overwrite each other. |
Portable | Export Mermaid for pull requests, standalone SVG for docs, or lossless JSON you can commit and re-import. |
Local and private | One workspace on your machine, shared by all your agents. Only requests from this computer are accepted. |
Tools for agents
Tool | Purpose |
| Create a map from a Mermaid flowchart (subgraphs become phases) |
| Read a map; search maps, optionally within a project |
| Add, change or remove nodes and connections atomically |
| The diagram, phase and node the developer has open |
| The comment loop between developer and agent |
| JSON, Mermaid or SVG |
| Revision history and restore |
Every result includes a viewUrl the agent can hand you. Details, examples and conventions are in the agent guide.
Command line
Command | What it does |
| MCP over stdio; starts the workspace if needed |
| Open the workspace in your browser |
| Run it yourself ( |
| Write a project's maps as |
| Import a JSON export or a Mermaid file |
Data lives in ~/.mefagram. Stop the workspace and copy that folder to back it up.
Privacy and security
Mefagram has no accounts, so the loopback interface is its boundary. It listens on 127.0.0.1:4747 and refuses requests addressed to any other host (blocking DNS rebinding) or sent by another website. Don't expose the port through a tunnel or proxy. Diagram content is treated as data, never as instructions to the agent. See SECURITY.md.
Run from source
git clone https://github.com/berkinduz/mefagram.git
cd mefagram
npm ci
npm run setup -- --example newsletter
npm run build
npm startConnect agents with node /path/to/mefagram/bin/mefagram.mjs mcp. Inside the repository, Claude Code and Codex pick up the bundled .mcp.json and .codex/config.toml. See installation and backup and contributing.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Flowcharts that people and agents edit together on one live canvas, exported as Mermaid.
Self-hostable shared brain for you and your AI agents — docs, flows, meetings, decisions, rationale
Create and edit roadmaps with JSON or markup; share edit and view links from AI agents.
Create, edit and organize hand-drawn diagrams (flowcharts, ER, architecture) from any AI agent.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create, edit, and export flowcharts through a local web-based editor with visual drag-and-drop, real-time sync, and 14 MCP tools for full node/edge CRUD.2Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables agents to create, customize, analyze and export relationship diagrams — theorem dependencies, paper maps, task RACI, org charts, conversation graphs — through 25 MCP tools, with cycle detection, centrality bottleneck reports, dependency closure and Mermaid/DOT/Markdown/JSON interop. Graphs stay local-first in a diff-friendly JSON source of truth and can be refined on a visual canvas.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to explore and extend a local-first, SQLite-backed visual knowledge graph through 12 tools for listing maps, searching and reading nodes, and creating, updating, or linking nodes and edges. Every AI-written node carries provenance and is checked against near-duplicate titles, so agent-added ideas appear in a shared graph that people also edit by hand.MIT
- AlicenseAqualityBmaintenanceEnables MCP-capable agents to read, create, modify, align, distribute, organize and export local-first infinite whiteboard content, including sticky notes, text, shapes, arrows, ink, mind maps, images, files and links across multiple pages. Provides 16 tools over stdio or Streamable HTTP, plus resources and prompts, with version-conflict protection and audit trails so canvas edits never silently overwrite newer content.1627MIT