McpDoc
An MCP Server to generate C4 Architecture diagrams from code.
Overview
McpDoc is an MCP Server designed to generate C4 Architecture diagrams directly from code, facilitating the visualization of software architecture.
To use McpDoc, set up the MCP Server and provide your codebase. The server will analyze the code and generate corresponding C4 Architecture diagrams.
- Automatic generation of C4 Architecture diagrams from code. - Supports various programming languages. - Easy integration with existing development workflows.
- Visualizing software architecture for large projects.
- Enhancing documentation with clear architecture diagrams.
- Assisting in code reviews by providing architectural insights.
Add to your AI client
Use these steps to connect McpDoc in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcpdoc-jonverrier": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcpdoc-jonverrier": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcpdoc-jonverrier": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcpdoc-jonverrier": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcpdoc-jonverrier": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcpdoc-jonverrier": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdoc-jonverrier"
]
}
}
}FAQ
What programming languages does McpDoc support?
McpDoc supports multiple programming languages, making it versatile for different projects.
Is McpDoc open source?
Yes! McpDoc is available under the MIT license, allowing for free use and modification.
How can I contribute to McpDoc?
Contributions are welcome! You can contribute by submitting issues or pull requests on the GitHub repository.