GitDiagram
Lets your AI agent read architecture diagrams, explanations and Mermaid source for public GitHub repositories.
19k stars on GitHubby Ahmed KhaleelLicense MITUpdated 19 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://gitdiagram.com/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http gitdiagram https://gitdiagram.com/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
How is fastapi/fastapi structured?
Give me the Mermaid source for the architecture of this GitHub repo.
What it is
GitDiagram turns a GitHub repository into an interactive architecture diagram and a short narrated video. Its remote MCP server lets an agent read a public repository's architecture explanation, components, connections and Mermaid source, search stored diagrams and get explainer videos.
What it can do
- Read a public repo's architecture explanation
- Get components and connections of a repo
- Get Mermaid source of a diagram
- Search stored diagrams
- Get explainer videos
When to use
- βΊWhen you want to understand how an unfamiliar public repository is structured.
- βΊWhen you need Mermaid source of a project's architecture for your docs.
- βΊWhen you want to find an existing diagram or video for a project.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
gitdiagramHelps your agent show the architecture of a public GitHub repository, with its main components, their file paths and a Mermaid diagram.repo-architectureTeaches your agent to explain how a public GitHub repository is built, using an architecture diagram, before you change its code.acquire-codebase-knowledgeHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.Frequently asked questions
Is it free?
The readme calls the diagrams free and says the MCP server needs no key or sign-in. Making new videos is in early access.
Does it work with private repos?
The MCP server reads public repositories. The website supports private repos with a GitHub token.
Which clients can use it?
The readme gives setup for Claude Code, Codex, Gemini CLI, GitHub Copilot CLI and Cursor, and says other clients can add a remote MCP server with the URL.
Can I run it myself?
Yes. It needs Bun, Cloudflare R2, Upstash Redis and an OpenAI or OpenRouter API key.
Is there a non-MCP way to use it?
Yes. Replace hub with diagram in any GitHub URL, or use gitdiagram.com/owner/repo.md for a Markdown version.
What is the license?
The readme shows a license badge and a LICENSE file, but does not name the license in the text.
If it does not work
- βΊIf the server does not connect, check that your client supports remote HTTP MCP servers and that the URL is https://gitdiagram.com/mcp.
- βΊUse a public repository, since the MCP server reads public repos.
- βΊRestart your client fully after adding the server.
5 new skills a week. 1 minute to read.