Back to MCP Directory
Git
Model Context Protocol low risk

Git

GitMCP provides AI assistants with access to GitHub repository documentation and code, reducing hallucinations and improving code accuracy.

Connections & Capabilities

Connects To

GitHubPlaywright

Capabilities

read

Quickstart

Install

npx mcp-remote https://gitmcp.io/{owner}/{repo}

Config

{
  "mcpServers": {
    "git-mcp Docs": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://gitmcp.io/{owner}/{repo}"
      ]
    }
  }
}

Exposed MCP Tools (7)

safe
fetch_<repo-name>_documentation

Retrieves the primary documentation from a specified GitHub repository.

Read-only access to documentation.

safe
search_<repo-name>_documentation

Searches through a repository's documentation based on a specific query.

Read-only search functionality.

safe
fetch_url_content

Retrieves content from URLs mentioned in the documentation.

Read-only access to external content.

safe
search_<repo-name>_code

Searches through the code in the repository using GitHub's code search.

Read-only search functionality.

safe
fetch_generic_documentation

Retrieves documentation from a GitHub repository specified dynamically.

Read-only access to documentation.

safe
search_generic_code

Searches through the code in a dynamically specified GitHub repository.

Read-only search functionality.

safe
search_generic_documentation

Searches through documentation in a dynamically specified GitHub repository.

Read-only search functionality.

Safety Assessment

GitMCP is generally safe for accessing public repositories as it only provides read-only access to documentation and code. However, caution should be exercised when using it with private repositories or self-hosting, as vulnerabilities in the repository or the GitMCP instance could lead to information leakage or supply chain attacks.

  • Read-only access to documentation and code.
  • No user authentication required for public repositories.
  • Open-source and transparent operation.
  • Does not store user queries or personal information.
  • Relies on the security of the target GitHub repository.
  • Potential for information leakage if used with private repositories without proper access controls.
  • Vulnerable to supply chain attacks if self-hosting.
  • AI assistant's interpretation of documentation may still lead to incorrect actions.
Git Review, Pricing & Alternatives (2026) | Flaex AI