mapnotes
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., "@mapnotesadd a node for the login service and connect it to the user database"
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.
MapNotes
A render engine for your own graphs. Model anything as nodes and edges (pull requests → issues → projects, services → dependencies, notes → topics…), attach key/value properties, style them, and save everything as a readable YAML file.
Web app: interactive canvas (drag, click to inspect, hover to preview), editing of nodes, edges, graph properties and styles (including full-color brand icons), automatic layouts, search, undo/redo, dark theme by default with a light theme toggle.
MCP server: lets an AI assistant (Claude Code, Claude Desktop, …) load, query and edit a graph file. Open the same file in the web app (Chrome/Edge) to see its edits live.
Quick start
npm install
npm run dev # dev server with hot reload at http://localhost:5173
npm run build # static site in dist/The web app is a static site with no backend. How it saves depends on the browser:
Chrome, Edge and other Chromium browsers can edit files on disk directly (File System Access API). Open a YAML/JSON file, or Save to create one, and every change is written back to that file. The file is also checked every second, so edits made by the MCP server or a text editor show up live. After a page reload the browser remembers the file but asks for permission again: click Reconnect in the status pill. Close file in the ▾ menu unlinks it; New and Load example also unlink it so they never overwrite your file.
Firefox and Safari don't support that API, so work is kept in the browser (
localStorage). Open loads a file's contents, and Download saves a copy.
In every browser the current graph is also kept in localStorage, and the ▾ menu can download YAML/JSON or export a PNG.
Live site
Every push to master is built and published to GitHub Pages by .github/workflows/deploy.yml: https://joecabezas.github.io/mapnotes/
Using the app
Action | How |
Add node |
|
Connect nodes |
|
Inspect / edit | Click a node or edge; edit label, id, style, properties on the right |
Select several |
|
Delete |
|
Arrange | Drag nodes, or pick a layout from the dropdown (it applies immediately; ↻ runs it again). Smart (layered) puts parents above their children and minimises edge crossings; Force-directed spreads nodes out like springs. |
Styles | 🎨 Styles: node color/border/shape/size/icon, edge color/width/line/arrow/curve |
Search |
|
Undo / redo |
|
Open / save |
|
Help |
|
Icons
Node styles can show an icon inside the node, from two open icon sets. Both are fetched at runtime from jsDelivr, so nothing is stored in this repo. The canvas needs network access to show them; if an icon can't be loaded, the node is simply drawn without it.
Lucide (pinned to
lucide-static1.x): ~1,850 general-purpose line icons, writtenlucide:<name>, e.g.lucide:folder,lucide:bug. They're drawn in one color: black or white to suit the node's fill, or Icon color to choose.svgl (pinned to svgl
5.0.0): full-color brand logos, written as the svgl file name, e.g.slack,linear,obsidian. Logos with light and dark variants have a suffix:github_lightis the dark logo for light fills,github_darkis the white logo for dark fills.
In 🎨 Styles, Browse… next to Icon opens a picker with a tab per set and a search box (Lucide matches names and tags, e.g. "money" finds lucide:banknote). You can also type a name directly. Icon size (%) sets how much of the node the icon fills (default 70).
Icons are drawn over the node's shape and fill. A circle (ellipse) works best; pointed shapes such as diamond or star clip the icon. For brand logos, a white fill with the brand color as the border works for most.
The MCP set_style tool accepts the same icon, iconColor and iconSize fields.
Related MCP server: Neo4j MCP Server
MCP server
The MCP server lets an AI agent read and edit a graph file. It runs locally over stdio, from a clone of this repo:
git clone https://github.com/joecabezas/mapnotes && cd mapnotes && npm install
npx tsx mcp/server.ts graph.yaml # stdio transport; starts empty if the file does not exist yetInstall it with your agent
Paste this into Claude Code, Codex, Cursor or any agent that can run commands:
Install the MapNotes MCP server for me:
1. Clone https://github.com/joecabezas/mapnotes into ~/mapnotes (skip if it's already there) and run `npm install` in it.
2. Ask me which graph file it should edit. Default: ~/mapnotes/graph.yaml. Use absolute paths from here on.
3. Register a stdio MCP server named "mapnotes" that runs: npx tsx <repo>/mcp/server.ts <graph file>
- Claude Code: claude mcp add --scope user mapnotes -- npx tsx <repo>/mcp/server.ts <graph file>
- Other clients: add it under "mcpServers" in the client's MCP config file.
4. Tell me how to reload MCP servers in this client, then check it works by calling the mapnotes get_graph tool.
To see the graph, I open https://joecabezas.github.io/mapnotes/ in Chrome or Edge and use Open to pick the same file.Install it yourself
In Claude Code:
claude mcp add --scope user mapnotes -- npx tsx /absolute/path/to/mapnotes/mcp/server.ts /absolute/path/to/graph.yamlThis repo also includes .mcp.json, so Claude Code opened in this folder offers the mapnotes server automatically (pointing at graph.yaml). For other clients:
{
"mcpServers": {
"mapnotes": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/mapnotes/mcp/server.ts", "/absolute/path/to/graph.yaml"]
}
}
}Tool | Purpose |
| Open a YAML/JSON file; it becomes the current file |
| Save to the current file, or "save as" to a new path ( |
| Read the graph, or one node with its edges |
| Node CRUD (rename via |
| Edge CRUD (label, endpoints, style, properties) |
| Set/remove/replace graph-level key/value properties |
| Create/replace/remove reusable node and edge styles (including |
When a file is open, every change is written to it immediately, and the file is re-read before each operation, so edits made to the file by other tools are not overwritten.
File format
properties: # GraphProperty[]
- key: title # shown as the graph's name
value: My graph
- key: subtitle # optional line shown under the title
value: What this graph is about
styles: # reusable looks, referenced by id
- id: pr
target: node # node | edge
color: "#7aa2f7"
borderColor: "#c9d8ff"
textColor: "#ffffff"
shape: ellipse # ellipse, rectangle, round-rectangle, triangle, diamond, pentagon, hexagon, octagon, star, tag, barrel
size: 34
icon: github_dark # optional, svgl logo name or lucide:<name> (see "Icons" above)
iconColor: "#ffffff" # optional, color of Lucide icons
iconSize: 70 # optional, icon size as % of the node (default 70)
- id: fixes
target: edge
color: "#7dcfff"
width: 2
lineStyle: dashed # solid | dashed | dotted
arrow: triangle # triangle, vee, circle, square, diamond, tee, none
curve: bezier # bezier | straight | taxi
nodes:
- id: pr-101
label: PR 101
style: pr # optional
position: { x: 0, y: 120 } # optional; saved when you drag
properties:
- key: author
value: sam
edges:
- id: e1
source: pr-101
target: issue-12
label: fixes # optional
style: fixes # optional
properties: []For hand-written files, properties may also be a plain mapping (properties: { author: sam }), and edge ids may be left out (they're generated). JSON with the same structure is accepted too. See examples/pr-tracking.yaml.
Project layout
shared/ data model, graph operations, YAML/JSON (used by everything)
mcp/ MCP server (stdio)
web/ React + Cytoscape.js frontend
examples/ sample graphsLicense
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Create, read and live-edit visual boards, Kanban plans, Gantt timelines and diagrams with AI agents.
- GoMindOAuthcom.gominddb
Persistent knowledge graph for AI agents. Remember, recall, and forget facts.
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Gremlin-compatible graph databases through natural language, supporting schema discovery, complex graph queries, relationship analysis, and data import/export operations.9 npm9MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Neo4j graph databases through natural language, supporting Cypher queries, schema management, data manipulation, and graph algorithms.MIT
- 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
- AlicenseAqualityFmaintenanceEnables AI assistants to interact with LightRAG knowledge graphs, supporting smart upsert for Obsidian vaults, semantic queries, and document/graph management.188Apache 2.0