---
title: "GitMCP MCP server: docs and code from any public GitHub repo"
description: "Install the GitMCP MCP server in an Aldena project and agents fetch and search the docs and code of any public GitHub repository, no account needed."
url: "https://aldena.ai/mcp-servers/gitmcp"
---

# GitMCP lets agents read any public repo's own docs before using it

GitMCP MCP server. Install the GitMCP MCP server in an Aldena project and agents fetch and search the docs and code of any public GitHub repository, no account needed.

- **Sign-in**: None
- **Installs as**: `gitmcp`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

GitMCP turns any public GitHub repository into documentation an agent can read. The marketplace install uses its generic endpoint, whose five tools take an owner and repository on each call: one maps a library name to its repository, two fetch and search the repository's docs, one searches its code, and one follows absolute links found in the docs while respecting robots.txt. No account is needed.

That makes it the quickest way for an agent in an Aldena project to learn a dependency from its own source. Before using a small library whose docs live in its README, an agent fetches them through GitMCP instead of relying on what it half remembers. When behavior surprises it, the agent searches the library's code for the function in question, reads the implementation, and writes the fix or workaround in its conversation's sandbox, opening the pull request through the [GitHub connector](https://aldena.ai/integrations/github).

GitMCP's tools don't mark themselves read-only, so Aldena starts them on ask; switch them to allow in the project's [permissions](https://aldena.ai/features/human-in-the-loop) once installed. For architecture questions, the [DeepWiki MCP server](https://aldena.ai/mcp-servers/deepwiki) explains how a repository fits together, and the [Context7 MCP server](https://aldena.ai/mcp-servers/context7) serves curated docs per library version.

## With GitMCP, your agents can

- Match a library name to its GitHub owner and repository
- Fetch a repository's documentation, such as its llms.txt or README
- Search a repository's docs semantically for a specific question
- Search a repository's code and page through the matching files
- Follow absolute links found in the docs, respecting robots.txt

## Try asking

- “Use GitMCP to fetch the documentation for honojs/hono and show how its middleware for JWT auth is configured.”
- “Search the code of cloudflare/workers-sdk with GitMCP for where wrangler reads compatibility flags.”
- “Which repository is the zod library on GitHub? Find it with GitMCP, then search its docs for discriminated unions.”

## GitMCP MCP tools

| Tool | What it does | Access |
| --- | --- | --- |
| `match_common_libs_owner_repo_mapping` | Matches a library name to its GitHub owner and repository | Read |
| `fetch_generic_documentation` | Fetches the documentation of any GitHub repository by owner and name | Read |
| `search_generic_documentation` | Searches a repository's documentation for a query | Read |
| `search_generic_code` | Searches a repository's code and returns matching files, 30 per page | Read |
| `fetch_generic_url_content` | Fetches an absolute URL found in the docs, respecting robots.txt | Read |

## Server

- **Server URL**: `https://gitmcp.io/docs`
- **Website**: [gitmcp.io](https://gitmcp.io)
- **MCP docs**: [GitMCP MCP docs](https://github.com/idosal/git-mcp)

## How to connect GitMCP

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install GitMCP.** Search for GitMCP and press Install. Aldena adds it as `gitmcp`.
3. **Nothing to sign in to.** Aldena installs GitMCP with no sign-in or key, so its tool calls carry no credentials.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [DeepWiki MCP server](https://aldena.ai/mcp-servers/deepwiki): Read generated wikis and ask questions about public repos.
- [Notion MCP server](https://aldena.ai/mcp-servers/notion): Search, read, and update pages and databases.
- [AWS Knowledge MCP server](https://aldena.ai/mcp-servers/aws-knowledge): Search AWS documentation, blogs, and API references.
- [Context7 MCP server](https://aldena.ai/mcp-servers/context7): Pull version-specific docs and code examples for a library.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### Which GitMCP endpoint does the Aldena marketplace use?

The generic one at gitmcp.io/docs. Rather than being tied to one repository, its tools take an owner and repository name on each call, so a single install lets agents read any public repository's docs and code.

### Why do GitMCP's tools start on ask in Aldena?

Aldena starts a tool on allow only when the server marks it read-only, and GitMCP's five tools don't carry that mark. They read public docs, code and links, so most teams set them to allow in the project's permissions after installing.

### How does GitMCP differ from DeepWiki?

GitMCP reads what the repository itself publishes, its docs files and code, and searches them. DeepWiki answers from a wiki it generated about the repository. GitMCP is closer to the source; DeepWiki is better at explaining architecture.
