D2 vs mockserver
D2 and mockserver are both developer tools MCP servers. mockserver scores higher (100 vs 94 out of 100). D2 has more GitHub stars (26k), and mockserver was updated more recently (4 days ago). The table compares them side by side.
| D2 | mockserver | |
|---|---|---|
| Score | 94 / 100 | 100 / 100 |
| What it does | Renders D2 text diagrams to SVG, validates D2 source, and ships an agent skill for AI clients. Aimed at developers and writers who create diagrams from text in docs, CI and blog posts. | Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests. |
| Publisher | Community: d2lang | Verified: mock-server.com |
| Grades | Maintenance A, Licence A, Quality A | Maintenance A, Licence A, Quality A |
| npm downloads a week | Not on npm | Not on npm |
| Runs | Local | Local |
| Works with | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf |
| GitHub stars | 25,982 | 5,019 |
| Last commit | 28 Nov 2026 | 1 Dec 2026 |
| Licence | MPL-2.0 | Apache-2.0 |
| Listed since | 28 Nov 2026 | 19 Oct 2026 |
| Install D2 | Install mockserver |
Questions
Is D2 or mockserver more popular?
D2 has more GitHub stars: 25,982.
Can I use D2 and mockserver together?
Yes. AI assistants can load several MCP servers at once. Install both and the assistant picks the right one for each task.