Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>D2 MCP ServerNew to Visual Studio Code? Get it now.
D2 MCP Server

D2 MCP Server

recursivefunctions

| (0) | Free
Create, edit, validate, render, and export D2 diagrams through MCP.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

D2 MCP Server

This companion extension registers the D2 MCP Server with compatible VS Code and Code OSS clients. It runs the published container with Docker and confines file access to the active workspace folder.

Docker must be installed and available to the extension host. The server image and extension use the same release version.

Source, security details, and usage documentation are available at github.com/RecursiveFunctions/d2mcp.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft