Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

GitDiagram

MCP server by ahmedkhaleel2004 Verified · gitdiagram.com

Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.

  • Score 100
  • 19k stars
  • MIT
  • Updated

Install GitDiagram

Built from the published package, never by AI.

claude mcp add --transport http gitdiagram https://gitdiagram.com/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install GitDiagram in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gitdiagram block.

About

GitDiagram turns a GitHub repository into an interactive architecture diagram with an AI-generated, streamed explanation. It can also produce a narrated video of about a minute that covers what the project is for, how its main parts fit together, and one decision under the hood. In the web app, clicking a component opens its linked file or directory, and diagrams can be exported as PNG or copied as Mermaid source.

For AI agents, GitDiagram runs as a remote MCP server at https://gitdiagram.com/mcp with no key or sign-in. Agents can read a public repository's architecture explanation, components, connections and Mermaid source, search stored diagrams, and get explainer videos. It suits developers and AI agents who want to understand an unfamiliar codebase quickly.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Architecture explanationsReads a public repository's architecture explanation, components and connections.
  • Mermaid sourceReturns the Mermaid source of a repository's architecture diagram.
  • Diagram searchSearches the stored GitDiagram diagrams.
  • Explainer videosGets a narrated explainer video for a repository.
  • Interactive diagramsGenerates an AI diagram with an explanation and links components to their code.
  • Private repositoriesUses a GitHub token in the web app to diagram private repositories.

What you need

  • An MCP-capable AI client such as Claude Code, Codex, Gemini CLI or GitHub Copilot CLI
  • For running locally: Bun
  • For running locally: Cloudflare R2 and Upstash Redis
  • For running locally: an OpenAI or OpenRouter API key

Try asking

  • How is fastapi/fastapi structured?
  • Explain the architecture and main components of owner/repo.
  • Give me the Mermaid source for the architecture of owner/repo.

Good to know

  • The remote MCP server reads public repositories only.
  • Making new explainer videos is in early access.
  • Explainer videos are off by default in a local setup and need extra API keys to turn on.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to GitDiagram

All alternatives →
mockserver mock-server
100

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.

AAA Local 5k
XcodeBuildMCP getsentry
100

Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.

AAA Local 6.6k
draw.io jgraph
100

Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.

AAA Local and remote 20k/wk
Repowise repowise-dev
98

Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.

ACA Local and remote 8.4k
Repowise (Hosted) repowise-dev
98

Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.

ACA Remote 8.5k
Qase Test Management qase-tms
98

Official MCP server for Qase Test Management that lets AI assistants manage test cases, runs, suites and defects. Connect to the hosted server with a Qase login or run it locally with an API token. Built for QA teams that use Qase.

AAC Local and remote 25k/wk

Compare with mockserver, XcodeBuildMCP or draw.io

GitDiagram: common questions

Does GitDiagram need an API key to use from an AI agent?

The remote MCP server at https://gitdiagram.com/mcp needs no key or sign-in, according to the source. Running the app locally requires Bun, Cloudflare R2, Upstash Redis and an OpenAI or OpenRouter API key.

Can GitDiagram diagram private repositories?

The web app supports private repositories with a GitHub token added through Private Repos in the header. The MCP server is described as reading public repositories.

What can I export from a GitDiagram diagram?

You can export a diagram as a PNG or copy its Mermaid source. Explainer videos can be downloaded as an MP4 in landscape or vertical (9:16) format with captions.

How do I install GitDiagram?

In Claude Code run claude mcp add --transport http gitdiagram https://gitdiagram.com/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is GitDiagram the official server?

GitDiagram is published by gitdiagram.com from its verified domain in the official MCP Registry.

Is GitDiagram free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is GitDiagram safe to use?

It scores 100 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to GitDiagram?

Similar MCP servers: mockserver, XcodeBuildMCP, draw.io, Repowise.

Does GitDiagram work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

GitDiagram Install

Add to stack

Loading.