GitMCP

GitMCP

Official
idosal

Provides AI assistants with real-time access to documentation and source code from any GitHub repository to eliminate code hallucinations and provide accurate programming information.

7,7231,337 views677Remote

What it does

  • Fetch documentation from GitHub repositories
  • Search code across any GitHub project
  • Match library names to their repository locations
  • Retrieve content from GitHub Pages and documentation URLs
  • Search documentation semantically with specific queries

Best for

Developers working with unfamiliar or new librariesAI coding assistants needing accurate code examplesTeams requiring up-to-date API documentation access
Free and open sourceRemote — zero setup requiredPrivacy-first approach

Tools (5)

match_common_libs_owner_repo_mapping

Match a library name to an owner/repo. Don't use it if you have an owner and repo already. Use this first if only a library name was provided. If found - you can use owner and repo to call other tools. If not found - try to use the library name directly in other tools.

fetch_generic_documentation

Fetch documentation for any GitHub repository by providing owner and project name

search_generic_documentation

Semantically search in documentation for any GitHub repository by providing owner, project name, and search query. Useful for specific queries.

search_generic_code

Search for code in any GitHub repository by providing owner, project name, and search query. Returns matching files. Supports pagination with 30 results per page.

fetch_generic_url_content

Generic tool to fetch content from any absolute URL, respecting robots.txt rules. Use this to retrieve referenced urls (absolute urls) that were mentioned in previously fetched documentation.

Alternatives