D2
Verified IntegrationClient Configuration
— Connect D2 to Claude Desktop or Cursor in seconds{
"mcpServers": {
"d2": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-d2"
],
"env": {}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).System Overview
Generates and manipulates D2 diagrams programmatically, primarily for integration with AI assistants.
7/22/2026
Open Source
stdio / SSE RPC
Frequently Asked Questions
Architecture and operational details for D2
D2 can render and export diagrams in SVG, PNG, and PDF formats. For PNG and PDF output, your system needs to have either `rsvg-convert` (from librsvg) or ImageMagick (`convert` command) installed.
Related MCP Servers
Browse all servers →Provides comprehensive historical and real-time crypto market data, including orderbooks, trades, candles, and more, from Hyperliquid, HIP-3, and Lighter.xyz.
Facilitates gasless blockchain transactions and interactions directly from Claude AI conversations.
Bridges Claude AI with blockchain networks, enabling gasless transactions, swaps, and transfers directly from natural language conversations.