composer-mcp
Allows AI agents to create and modify interactive software architecture diagrams on the Composer canvas. Provides tools for managing diagrams, adding nodes (services, databases, queues, caches, etc.) and connections, defining APIs, verifying diagram integrity, and linking diagram elements to source code files in real-time.
Composer is a visual system design tool that lets AI coding agents create and modify interactive architecture diagrams through MCP (Model Context Protocol). Your agent gets tools to add services, databases, queues, and connections, and you get a live canvas at usecomposer.com that updates in real-time.
Your IDE <--> MCP Server (this package) <--> Composer API <--> Your DiagramGetting Started
Connect your IDE
Claude Code:
claude mcp add --transport http composer https://mcp.usecomposer.comCursor — create .cursor/mcp.json in your project root:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com"
}
}
}Your browser will open for authorization on first use.
claude mcp add --transport http composer https://mcp.usecomposer.comCreate .cursor/mcp.json in your project root:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com"
}
}
}codex mcp add composer -- npx -y @usecomposer/mcp --stdioCreate .vscode/mcp.json in your project root:
{
"servers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com"
}
}
}Open Cline sidebar > Settings (gear icon) > MCP Servers > Add Remote Server:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com"
}
}
}Add to .continue/config.yaml:
mcpServers:
- name: composer
url: https://mcp.usecomposer.comAdd to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"composer": {
"serverUrl": "https://mcp.usecomposer.com"
}
}
}Note: Windsurf uses
"serverUrl"instead of"url".
Create opencode.json in your project root:
{
"mcp": {
"composer": {
"type": "remote",
"url": "https://mcp.usecomposer.com"
}
}
}Tools
Diagram Management
Tool | Description |
| List all your diagrams. Call this first to find which diagram to work on |
| Create a new diagram and auto-select it for this session |
| Select which diagram to work on for this session |
| Rename the currently selected diagram |
Note: Call
list_diagramsthenselect_diagram(orcreate_diagram) before using other tools.
Read
Tool | Description |
| Get the full architecture diagram - all nodes and edges |
| Get details for a single node including connected edges |
| Search nodes and edges by keyword |
| Get a PNG thumbnail of the diagram from the last auto-save |
Write
Tool | Description |
| Create or update a node (service, database, queue, etc.) |
| Create or update a connection between two nodes |
| Define API endpoints on a backend service node |
| Delete a node or edge from the diagram |
| Link a node to a file or folder in your codebase |
Plan & Verify
Tool | Description |
| Check for issues like missing endpoints or orphaned nodes |
| Step-by-step workflow for importing an existing codebase |
| Reference guide for node types, protocols, and best practices |
Node Types
client · frontend · backend · database · cache · queue · storage · external
Edge Protocols
REST · gRPC · GraphQL · WebSocket · TCP · UDP · async · event · internal
Example Prompts
Once connected, try asking your AI agent:
Prompt | What it does |
"Import this codebase into Composer" | Scans your repo and builds the architecture diagram |
"Create a new Composer diagram called Backend Architecture" | Creates and auto-selects a new diagram |
"Add a Redis cache between the API and the database in Composer" | Adds a new node and edges to the diagram |
"Add analytics monitoring to the Composer diagram" | Adds observability nodes and connections |
"Update the APIs I defined in Composer" | Refreshes endpoint definitions on backend nodes |
"Verify my Composer diagram" | Checks for missing endpoints, orphaned nodes, etc. |
"Link each Composer node to its source code" | Associates diagram nodes with file paths |
How It Works
Authentication is handled via OAuth 2.1 — your browser opens for a one-time consent flow, and you're connected. Tool calls are proxied to the Composer API at mcp.usecomposer.com. Your diagram data lives on Composer's servers. The MCP server itself is stateless.
Changes made through MCP are immediately visible on the Composer canvas via real-time WebSocket sync.
Development
git clone https://github.com/olivergrabner/composer-mcp
cd composer-mcp
npm install
npm run dev # Watch mode (rebuilds on change)
npm run build # Production buildLinks
Composer - the visual architecture canvas
MCP Protocol - Model Context Protocol spec
Issues - bug reports and feature requests
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OliverGrabner/composer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server