Server profile

GitMCP MCP Server

GitMCP turns public GitHub repositories and GitHub Pages projects into documentation sources for AI assistants. It offers repository-specific endpoints or a dynamic server for retrieving docs, searching code, and following referenced content.

Server facts

GitMCP MCP Server

Project

Author
idosal
Website
gitmcp.io
License
Apache-2.0

Tech

Runtime / language
node
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
8,465
Last commit
Data as of

Tags

  • Code Search
  • Coding Agents
  • Documentation
  • Github
  • Remote Mcp

Overview

GitMCP is a remote documentation integration for public GitHub projects and GitHub Pages sites. It lets an assistant fetch primary documentation, search relevant passages, follow links mentioned in documentation, and search repository code. The intent is to ground answers about libraries and implementations in source material rather than relying entirely on the model's prior knowledge. Users can connect to a particular repository for focused access or choose a generic endpoint that selects a repository for each request. The README explains that the generic route offers flexibility but depends on identifying the intended project correctly.

The hosted service is described as free and does not require signup, local installation, or repository changes. MCP clients can connect directly to a URL, while clients such as Claude Desktop can use an npx mcp-remote bridge. Documentation retrieval prioritizes llms.txt, then AI-oriented project documentation, and finally README or root content. GitMCP also offers an embedded browser chat and can be self-hosted. Its privacy section says it does not collect personal information, retain agent queries, or permanently store project content. Access is limited to publicly available material and happens on request; GitHub Pages access respects robots.txt directives. This makes GitMCP a fit for coding assistants that need current public project context, not an authenticated interface for modifying repositories or managing issues.

Install & configure

Requirements

  • An MCP-compatible client
  • A public GitHub repository or GitHub Pages project
  • npx when using the documented local bridge
Documented launch / install command
npx mcp-remote 'https://gitmcp.io/{owner}/{repo}'

Replace {owner} and {repo} with the desired public project's identifiers. This command is the README's bridge configuration, not a locally hosted GitMCP server. Direct SSE clients can use the URL; https://gitmcp.io/docs is the documented dynamic alternative. Tool names for repository-specific access are reproduced as shown in the supplied README.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

A supported configuration example is not available for this client and transport. Check the client documentation for its connection flow; do not substitute an undocumented JSON format.

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "git-mcp": {
      "url": "https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

A supported configuration example is not available for this client and transport. Check the client documentation for its connection flow; do not substitute an undocumented JSON format.

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "git-mcp": {
      "serverUrl": "https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "git-mcp": {
      "type": "sse",
      "url": "https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
fetch__documentationRetrieve the repository's primary documentation, prioritizing sources such as llms.txt.
search__documentationFind relevant passages in repository documentation using a query.
fetch_url_contentRead linked reference content in a format suitable for an assistant.
search__codeFind repository implementation examples through GitHub code search.
fetch_generic_documentationFetch documentation for a specified repository through the dynamic endpoint.
search_generic_codeSearch a specified repository's code through the dynamic endpoint.
search_generic_documentationSearch documentation for a selected repository through the generic server.

Names, permissions, and defaults can change. Check the current upstream documentation before granting access.

Use cases

  • Ask an assistant how to use a public GitHub library.
  • Search repository documentation for a particular API or concept.
  • Find implementation examples in public project code.
  • Switch between repository documentation sources through the dynamic endpoint.
  • Follow external references mentioned in project documentation.

Strengths

  • Hosted use requires no signup or repository modification.
  • Offers focused repository endpoints and a flexible generic endpoint.
  • Documents privacy limits and supports independent self-hosting.

Limitations

  • Access is limited to publicly available content.
  • The generic endpoint depends on choosing the intended repository correctly.
  • GitHub Pages retrieval follows robots.txt restrictions.

Frequently asked questions

No. The README says GitMCP works with public GitHub repositories without modifications.

A repository endpoint fixes the project being accessed. The generic endpoint accepts repository information for each request and can switch between projects.

GitMCP prioritizes llms.txt, then AI-optimized documentation, followed by README or root content.

Its privacy section says agent queries are not stored and no personal information is collected. It accesses public content only when requested.

Independent listing, not an affiliation or security review. Grant the least access needed and verify the upstream instructions before running code.

Related MCP servers

MCP Advisor

Developer Tools

MCP Advisor helps assistants discover MCP servers from natural-language requests and obtain installation guidance. It combines registry providers with offline search and offers optional local Meilisearch integration.

Serena

Developer Tools

Serena gives coding agents symbol-aware retrieval, editing, refactoring, and debugging capabilities through MCP. It uses language servers or a JetBrains plugin to bring IDE-style code understanding to existing AI clients.

Context7

Developer Tools

Context7 retrieves current library documentation and code examples for AI coding assistants. It supports MCP tools or a CLI-and-skills workflow, with library IDs and version-aware requests helping narrow the documentation context.

FastAPI-MCP

Developer Tools

FastAPI-MCP exposes existing FastAPI endpoints as MCP tools while retaining schemas, endpoint documentation, and dependency-based authentication. It is a native extension for developers adding agent access to a FastAPI service.

XcodeBuildMCP

Developer Tools

XcodeBuildMCP provides an MCP server and CLI for AI agents working on iOS and macOS projects. One package supports direct terminal tools, simulator builds, and stateful operations such as debugging and log capture.

DevDocs by CyberAGI

Developer Tools

Crawl technical documentation into organized Markdown, JSON, and MCP-accessible content for development assistants. The public DevDocs repository is marked as not publicly maintained.

JetBrains MCP Proxy Server

Developer Tools

This legacy Node-based proxy connects MCP clients to a JetBrains IDE plugin. The repository is deprecated: IntelliJ-based IDEs include the core functionality from version 2025.2 onward.

MCP Language Server

Developer Tools

Expose an installed language server to MCP assistants for semantic code navigation and edits. It provides definitions, references, diagnostics, hover information, symbol renaming, and line-based file changes.