D2 MCP Server
Rank #21,247io.github.RecursiveFunctions/d2mcp
Create, edit, validate, render, and export D2 diagrams with confined workspace access.
D2 MCP Server is a Model Context Protocol (MCP) server published by recursivefunctions. It ranks #21,247 of 137,138 servers tracked on MCP Toplist. D2 MCP Server is listed across 2 registries — Official MCP and Glama, with 1 tracked version. It was first listed on Sep 27, 2026 and most recently updated on Sep 27, 2026.
Ranks ahead of 115,891 of 137,138 servers on MCP Toplist.
Use D2 MCP Server
No credentials or required configuration declared — add it to your MCP client and go.
claude mcp add d2mcp -- docker run -i --rm --mount "type=bind,src={workspace_path},dst=/workspace" ghcr.io/recursivefunctions/d2mcp:0.5.0[mcp_servers.d2mcp]
command = "docker"
args = ["run", "-i", "--rm", "--mount", "type=bind,src={workspace_path},dst=/workspace", "ghcr.io/recursivefunctions/d2mcp:0.5.0"]Add to ~/.codex/config.toml.
{
"mcpServers": {
"d2mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src={workspace_path},dst=/workspace",
"ghcr.io/recursivefunctions/d2mcp:0.5.0"
]
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config).
{
"mcpServers": {
"d2mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src={workspace_path},dst=/workspace",
"ghcr.io/recursivefunctions/d2mcp:0.5.0"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project).
{
"servers": {
"d2mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src={workspace_path},dst=/workspace",
"ghcr.io/recursivefunctions/d2mcp:0.5.0"
]
}
}
}Save as .vscode/mcp.json in your workspace.
{
"mcpServers": {
"d2mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src={workspace_path},dst=/workspace",
"ghcr.io/recursivefunctions/d2mcp:0.5.0"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"d2mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src={workspace_path},dst=/workspace",
"ghcr.io/recursivefunctions/d2mcp:0.5.0"
]
}
}
}Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.RecursiveFunctions%2Fd2mcp)<a href="https://mcptoplist.com/server/io.github.RecursiveFunctions%2Fd2mcp"><img src="https://mcptoplist.com/badge/io.github.RecursiveFunctions%2Fd2mcp.svg" alt="MCP Toplist: Top 25% of 137,138" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Listed on 2 registries
recursivefunctions
Available versions (1)
| Version | Published |
|---|---|
| 0.5.0 | Sep 27, 2026 |
Frequently asked questions
- Who maintains D2 MCP Server?
- D2 MCP Server is maintained by recursivefunctions, which publishes 1 MCP server (1 total version) tracked on MCP Toplist.
- Is D2 MCP Server listed on the Official MCP Registry?
- Yes — D2 MCP Server is listed on the Official MCP Registry, alongside Glama.
- How many versions does D2 MCP Server have?
- MCP Toplist tracks 1 version of D2 MCP Server, most recently published on Sep 27, 2026.
- Where can I find the source code for D2 MCP Server?
- The source code for D2 MCP Server is hosted at github.com/recursivefunctions/d2mcp.
Do you run this server?
Community projects list the MCP servers behind real agents and apps. Publish yours and this page will link to it.