
Research
/Security News
Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
Popular npm packages keyv and cacheable compromised.
@usecomposer/mcp
Advanced tools
Give your AI coding agent an architecture canvas. Design, visualize, and evolve software architecture diagrams from your IDE.
Give your AI coding agent an architecture canvas.
Connect your repo, build architecture diagrams through your coding agent, and keep them linked to real code.
AI coding agents see files, not architecture. They make locally reasonable changes that break the system because they have no understanding of how components connect. Composer gives them that understanding: a structured, visual architecture graph they can read before every change and update as they build.
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 Diagram
claude mcp add --transport http composer \
https://mcp.usecomposer.com \
--header "Authorization: Bearer fl_your_token_here"
Replace fl_your_token_here with your token from usecomposer.com > Diagram Settings > MCP Tokens.
fl_)Add to .mcp.json in your project root:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Verify: run /mcp in your Claude Code session. Composer should appear with its tools.
Add to claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Restart Claude Desktop. Look for the MCP tools icon in the chat input.
One-liner:
codex mcp add composer -- npx -y @usecomposer/mcp --stdio
Or add to ~/.codex/config.toml (or .codex/config.toml in your project root):
[mcp_servers.composer]
command = "npx"
args = ["-y", "@usecomposer/mcp", "--stdio"]
[mcp_servers.composer.env]
COMPOSER_TOKEN = "fl_your_token_here"
Verify: run /mcp in a Codex session to confirm Composer appears.
Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Open Cursor Settings > MCP section to verify "Composer" appears.
Create .vscode/mcp.json in your project root:
{
"servers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Open Cline sidebar > Settings (gear icon) > MCP Servers > Add Remote Server:
{
"mcpServers": {
"composer": {
"type": "http",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Add to .continue/config.yaml:
mcpServers:
- name: composer
url: https://mcp.usecomposer.com
headers:
Authorization: "Bearer fl_your_token_here"
Add to ~/.codeium/windsurf/mcp_config.json (global config):
{
"mcpServers": {
"composer": {
"serverUrl": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Note: Windsurf uses
"serverUrl"instead of"url".
Restart Windsurf after saving.
Create opencode.json in your project root:
{
"mcp": {
"composer": {
"type": "remote",
"url": "https://mcp.usecomposer.com",
"headers": {
"Authorization": "Bearer fl_your_token_here"
}
}
}
}
Run /mcp to verify Composer appears.
Once connected, try asking your AI agent:
| Prompt | What it does |
|---|---|
| "Use Composer to import this codebase as an architecture diagram" | Scans your repo and builds the diagram |
| "Add a Redis cache between the API and the database in Composer" | Adds a new node and edges to the diagram |
| "Use the Composer MCP to show me the current architecture" | Renders an interactive viewer inline (MCP Apps) |
| "Run verify_diagram on my Composer diagram" | Checks for missing endpoints, orphaned nodes, etc. |
| "Use Composer to define the REST API for the user service" | Adds endpoint definitions to a backend node |
| "Link each Composer node to its source code" | Associates diagram nodes with file paths |
| Tool | Description |
|---|---|
get_graph | Get the full architecture diagram, all nodes and edges |
get_node | Get details for a single node including connected edges |
search_graph | Search nodes and edges by keyword |
get_screenshot | Get a PNG thumbnail of the diagram from the last auto-save |
show_diagram | Display an interactive diagram viewer inline (MCP Apps) |
upsert_node | Create or update a node (service, database, queue, etc.) |
upsert_edge | Create or update a connection between two nodes |
define_api | Define API endpoints on a backend service node |
delete_element | Delete a node or edge from the diagram |
link_path | Link a node to a file or folder in your codebase |
verify_diagram | Check for issues like missing endpoints or orphaned nodes |
plan_import | Step-by-step workflow for importing an existing codebase |
get_guide | 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
When used with clients that support MCP Apps (like Claude), the show_diagram tool renders an interactive diagram viewer directly in the conversation. Click nodes, inspect endpoints, and see the full architecture inline. No browser tab needed.
This MCP server is a thin client. It authenticates with your token and proxies tool calls 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. Changes made on the Composer canvas are also visible to your agent on the next tool call. Edits flow both directions.
Want to explore before signing up? Run the server with sample data:
npx @usecomposer/mcp --demo
This starts the server with a pre-built architecture diagram so you can try all the tools without an account.
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 build
MIT
FAQs
Give your AI coding agent an architecture canvas. Design, visualize, and evolve software architecture diagrams from your IDE.
The npm package @usecomposer/mcp receives a total of 32 weekly downloads. As such, @usecomposer/mcp popularity was classified as not popular.
We found that @usecomposer/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.