Reading the repo
Reading the repo
How to install on Linux
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
Saved setup from 8 h ago
Will it work on my device?
.github/CONTRIBUTING.mdFirst of all, thank you for your interest in contributing to GitMCP! We appreciate the time and effort you're willing to invest in improving the project. This document provides guidelines and information to make the contribution process as smooth as possible.
Before you start working on GitMCP, make sure you have the following installed:
Clone your forked repository:
git clone https://github.com/your-username/git-mcp.git
cd git-mcp
Install dependencies:
pnpm install
Set up environment variables:
.env.local file in the root directoryTo start the development server:
pnpm vercel dev
This will start the Next.js development server, typically at http://localhost:3000.
For running with the MCP Inspector (useful for debugging MCP endpoints):
pnpm run inspector
To run tests:
pnpm test
GitMCP uses Vitest as the testing framework. When adding new features, please include appropriate tests.
GitMCP uses Prettier for code formatting and lint-staged to ensure code is properly formatted before committing. Pre-commit hooks are set up with Husky to run these checks automatically.
To manually format your code:
pnpm prettier --write .
api/: Contains the server-side code and MCP implementation
tools/: MCP tools implementationutils/: Utility functions for the APIapp/: Next.js app directory with React componentspages/: Additional Next.js pagespublic/: Static assetsshared/: Shared utilities used across the codebaseIf you encounter a bug or issue while using GitMCP, please open a new issue on the GitHub Issues page. Provide a clear and concise description of the problem, steps to reproduce it, and any relevant error messages or logs.
We welcome ideas for improvements and new features. To suggest an enhancement, open a new issue on the GitHub Issues page. Describe the enhancement in detail, explain the use case, and outline the benefits it would bring to the project.
feature/your-feature-name or fix/your-bugfix-name.main branch of the Wolverine repository. Include a clear and concise description of your changes, referencing any related issues.GitMCP uses ESLint as its code style guide. Please ensure that your code follows these guidelines.
Write clear and concise commit messages that briefly describe the changes made in each commit. Use the imperative mood and start with a capitalized verb, e.g., "Add new feature" or "Fix bug in function".
Thank you once again for your interest in contributing to GitMCP. We look forward to collaborating with you and creating an even better project together!
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/idosal/git-mcp.git cd git-mcp
Node.js 20
# needs nvm: https://github.com/nvm-sh/nvm nvm install 20
Fill in secrets: XAI_API_KEY, OPENAI_API_KEY
cp .env.example .env
Needs: PostgreSQL (no compose file — install locally or run via Docker)
corepack enable pnpm install
pnpm dev
pnpm test
Using GitMCP is easy! Simply follow these steps:
Choose one of these URL formats depending on what you want to connect to:
gitmcp.io/{owner}/{repo}{owner}.gitmcp.io/{repo}gitmcp.io/docsReplace {owner} with the GitHub username or organization name, and {repo} with the repository name.
For your convenience, you can also use the conversion tool on the landing page to format the GitHub URL into an MCP URL!
Select your AI assistant from the options below and follow the configuration instructions:
Update your Cursor configuration file at ~/.cursor/mcp.json:
{
"mcpServers": {
"gitmcp": {
"url": "https://gitmcp.io/{owner}/{repo}"
}
}
}
{
"mcpServers": {
"gitmcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://gitmcp.io/{owner}/{repo}"
]
}
}
}
Update your Windsurf configuration file at ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"gitmcp": {
"serverUrl": "https://gitmcp.io/{owner}/{repo}"
}
}
}
Update your VSCode configuration file at .vscode/mcp.json:
{
"servers": {
"gitmcp": {
"type": "sse",
"url": "https://gitmcp.io/{owner}/{repo}"
}
}
}
Update your Cline configuration file at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:
{
"mcpServers": {
"gitmcp": {
"url": "https://gitmcp.io/{owner}/{repo}",
"disabled": false,
"autoApprove": []
}
}
}
Plugin name: gitmcp
SSE URL: https://gitmcp.io/{owner}/{repo}
For more details on adding custom MCP servers to HighlightAI, refer to the documentation.
Name the MCP server: git-mcp Docs
Use this command:
npx mcp-remote https://gitmcp.io/{owner}/{repo}
Or use the following configuration:
{
"mcpServers": {
"git-mcp Docs": {
"command": "npx",
"args": [
"mcp-remote",
"https://gitmcp.io/{owner}/{repo}"
]
}
}
}
{
"mcpServers": {
"git-mcp Docs": {
"command": "npx",
"args": [
"mcp-remote",
"https://gitmcp.io/{owner}/{repo}"
]
}
}
}
For more details on configuring MCP servers in Augment Code, visit the Augment Code documentation.
Note: Remember to replace
{owner}and{repo}with the actual GitHub username/organization and repository name. You can also use the dynamic endpointhttps://gitmcp.io/docsto allow your AI to access any repository on demand.
No reports for Linux yet.
Opens a chat with this manual already filled in, for Linux. It uses your own account; gitmanual sends nothing.