================== /// MCP /// /// GIT /// ================== [server:online] [protocol:ready]
git-mcp
by idosal
GitMCP is a free, open-source Model Context Protocol (MCP) server that turns any GitHub repository or GitHub-Pages site into an AI-readable documentation hub, eliminating code-hallucinations in tools such as Cursor, VSCode, Claude Desktop, etc.
fetch_<repo-name>_documentation
Retrieve the primary documentation of a specific GitHub repository to give the AI an overview of the project.
search_<repo-name>_documentation
Search within a repository’s documentation for passages relevant to a given query.
fetch_url_content
Fetch and convert the content of external links referenced in documentation into an AI-readable format.
search_<repo-name>_code
Search the repository’s source code via GitHub code search to locate examples or implementation details.
fetch_generic_documentation
(Dynamic endpoint) Retrieve primary documentation for any repository specified at call time.
search_generic_code
(Dynamic endpoint) Search the source code of any specified repository for relevant snippets.
search_generic_documentation
(Dynamic endpoint) Search the documentation of any specified repository for information matching a query.
Installation
# install from npm if the package is published
npm install -g git-mcp # or: pnpm add -g git-mcp
# start the server on port 8080
git-mcp start --port 8080 --github-token $GITHUB_TOKEN
# clone the repo
git clone https://github.com/idosal/git-mcp.git
cd git-mcp
# install dependencies
npm install # or: pnpm install
# build TypeScript
npm run build
# run the server (defaults to port 3000)
GITHUB_TOKEN=<token> npm start
docker build -t gitmcp .
docker run -d -p 3000:3000 -e GITHUB_TOKEN=<token> gitmcp