- Home
- MCP servers
- GitMCP
GitMCP
- typescript
7.1k
GitHub Stars
typescript
Language
4 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
GitMCP is a remote MCP server that lets your AI assistants read up-to-date documentation and code directly from a GitHub project. It reduces hallucinations by providing grounded access to project content, making it easier to ask questions about APIs, usage, and implementation details across repositories or GitHub Pages sites.
How to use
Choose how you want to connect to projects. For a specific repository, use the URL format gitmcp.io/{owner}/{repo}. For a generic, on-demand setup, use gitmcp.io/docs. Example concrete endpoints you might connect to are https://gitmcp.io/microsoft/playwright-mcp (a specific repository) and the dynamic endpoint https://gitmcp.io/docs.
Connect your AI assistant by selecting a client and following its setup steps. You can access tools like documentation fetching, smart search, and code search to answer questions with the latest content from the target repository.
How to install
Prerequisites: you should have a modern Node.js environment and a preferred package manager installed (Node.js, npm or pnpm). Ensure you have access to a terminal or command prompt.
-
Clone the MCP server starter repository locally.
-
Install dependencies using your preferred package manager.
-
Run the server in development mode to test locally.
Additional notes and details
Tools you will interact with include fetch_<repo-name>_documentation, search_<repo-name>_documentation, fetch_url_content, and search_<repo-name>_code for targeted queries and code navigation. When the server runs with the dynamic endpoint, there are generic variants like fetch_generic_documentation, search_generic_documentation, and search_generic_code that require specifying the repository context at query time.
Security and privacy are core to GitMCP. It accesses only public content, respects robots.txt rules for GitHub Pages, and does not store user queries or permanently retain project data. You can self-host the server if you prefer full control.
Example usage patterns include querying for API usage, looking up implementation details in code, and searching the repository’s documentation to quickly gather accurate information for integration or debugging tasks.
Available tools
fetch_playwright_mcp_documentation
Fetches the primary documentation for the specified repository to give the AI a broad overview of the project's purpose and setup.
search_playwright_mcp_documentation
Searches the repository's documentation for a specific query to quickly locate relevant sections.
fetch_url_content
Retrieves and converts linked content found in documentation into a readable format for the AI.
search_playwright_mcp_code
Searches the repository code to find concrete usage examples and implementation details.
fetch_generic_documentation
Generic documentation fetch tool used when querying with the dynamic endpoint to obtain repository-specific docs.
search_generic_code
Generic code search tool used with the dynamic endpoint to locate code examples across repos.
search_generic_documentation
Generic documentation search tool used with the dynamic endpoint to pinpoint relevant material.