d2mcp
d2mcp is an MCP server. Its repository has 34 GitHub stars and is licensed under MIT; we last read it on 2026-10-22.
d2mcp is a server implementing the Model Context Protocol (MCP) to generate and manipulate D2 diagrams.
Install
Read from d2mcp’s own README, close to verbatim -- not written by us, and not guessed.
go install github.com/i2y/d2mcp/cmd@latest
What it reaches, and what it needs
Reaches
○ not recognised
Credential
○ none found
Maintenance
Stars
34
State
stale
Licence
MIT
From the repository
A Model Context Protocol (MCP) server that provides D2 diagram generation and manipulation capabilities.
What d2mcp can do
10 tools documented in its README. An AI client calls these by name.
d2_create- Create a new diagram with optional initial content (unified approach)
d2_export- Export a diagram to a specific format
d2_save- Save a diagram to a file
d2_oracle_create- Create a new shape or connection
d2_oracle_set- Set attributes on existing elements
d2_oracle_delete- Delete elements from the diagram
d2_oracle_move- Move elements between containers
d2_oracle_rename- Rename diagram elements
d2_oracle_get_info- Get information about diagram elements
d2_oracle_serialize- Get the current D2 text representation of the diagram
Read from the README; names are kept only if the README contains them.
Common questions about d2mcp
- What does d2mcp do?
- d2mcp is a server implementing the Model Context Protocol (MCP) to generate and manipulate D2 diagrams.
- How do I install d2mcp?
- Its own README gives this command: go install github.com/i2y/d2mcp/cmd@latest. Run it where your MCP client can launch the server, and check the README for any settings it asks for.
- Is d2mcp official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 34 GitHub stars and its state in our directory is stale. Its last commit we recorded was on 2025-07-02.
- What licence does d2mcp use?
- The repository declares the MIT licence.