@circuitry/mcp-server
MCP (Model Context Protocol) server that gives AI coding agents access to Circuitry - a visual workflow and diagramming platform.
What It Does
Visualize Code: Create code nodes from project files with bidirectional sync
Understand Diagrams: AI agents can comprehend user-drawn flowcharts and diagrams
Create Flowcharts: Generate visual flowcharts via Circuitry's chat agent
Data Visualization: Create spreadsheets and charts from code analysis
Prerequisites
Circuitry Server - Download from circuitry.dev/download
Node.js 18+
An MCP-compatible AI client (Claude Code, Cursor, VS Code, Gemini CLI, etc.)
Setup
1. Install & Configure Circuitry Server
Download Circuitry Server from circuitry.dev/download
Launch the app (appears in your system tray)
Click the tray icon → Server → Preferences
Click "Generate New Access Key"
Copy the key — you'll need it in the next step
2. Run MCP Setup (Required)
This will prompt you to enter:
EServer address — press Enter for default (
http://localhost:3030)Access key — paste the key you generated above
This stores your credentials in ~/.circuitry/mcp-config.json.
3. Add to Your AI Client
Claude Code
Or manually add to ~/.claude/config.json:
Cursor
Settings → MCP → Add New MCP Server:
VS Code / Copilot
Gemini CLI
Cline / Windsurf
Add to your MCP configuration using the standard format above.
4. Restart Your Client
Restart your AI client to load the MCP server.
Usage Examples
Visualize Code Files
Understand User-Drawn Flows
Create Flowcharts
Available Tools
Connection
Tool | Description |
| Check connection status |
| Request connection (shows permission dialog) |
Workflow Understanding
Tool | Description |
| Get current visible workflow info |
| Get simplified workflow structure |
| Resolve user reference ("this flow") to node IDs |
| Get simplified node details |
Node Operations
Tool | Description |
| List all nodes in the workflow |
| Get a node by ID |
| Update node configuration |
| Delete a node |
Code Nodes
Tool | Description |
| Create code node (from file path with sync, OR with name+content) |
| Create multiple code nodes from files |
| Update code content (syncs to source if applicable) |
Sheet Nodes
Tool | Description |
| Create a spreadsheet node with data |
| Replace sheet data |
Agent Delegation
Tool | Description |
| Send message to Circuitry's chat agent |
| Ask agent to create a flowchart |
| Poll for agent response (async) |
Configuration
Config File
Location: ~/.circuitry/mcp-config.json
Environment Variables
Variable | Description |
| Override EServer URL |
| Override access key |
Commands
Troubleshooting
"Cannot connect to EServer"
Check EServer is running: Look for the Circuitry icon in your system tray
Start Circuitry Server: Download from circuitry.dev/download
Verify URL: Run
npx @circuitry/mcp-server status
"Invalid access key"
Create new key: Circuitry Server → Preferences → Generate New Access Key
Re-run setup:
npx @circuitry/mcp-server setup
"No Circuitry browser client connected"
Open Circuitry: Make sure the Circuitry app is open
Refresh: Try refreshing the Circuitry page
Development
To test local changes, point your MCP config to the built output:
License
MIT