D2 MCP
An official MCP server for D2 that allows AI clients to look up D2 syntax, check diagrams for errors, and render them in chat. It requires D2 v0.10.0 or later installed locally.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Install D2 v0.10.0 or later
Vendor documentation What you can do with it
- Look up D2 syntax
- Check diagrams for errors
- Render diagrams in chat
Source and maintenance
Community listingRegistry 0.10.0
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
d2lang 0.10.0
pypiuvx
d2lang package definition
{
"version": "0.10.0",
"transport": "stdio",
"identifier": "d2lang",
"runtimeHint": "uvx",
"registryType": "pypi",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
Cursor configuration
{
"mcpServers": {
"d2-mcp": {
"command": "uvx",
"args": [
"d2lang==0.10.0",
"mcp"
]
}
}
}Cline
Cline configuration
{
"mcpServers": {
"d2-mcp": {
"command": "uvx",
"args": [
"d2lang==0.10.0",
"mcp"
]
}
}
}VS Code
VS Code configuration
{
"servers": {
"d2-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"d2lang==0.10.0",
"mcp"
]
}
}
}Claude Desktop
Claude Desktop configuration
{
"mcpServers": {
"d2-mcp": {
"command": "uvx",
"args": [
"d2lang==0.10.0",
"mcp"
]
}
}
}Let your agent find its tools
Find servers like D2 MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.