-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Garot Conklin edited this page May 23, 2025
·
1 revision
This guide will help you get up and running with the GitHub MCP Server.
- Python 3.9 or higher
- Git
- GitHub account
- Cursor IDE (for MCP integration)
pip install github-mcp# Clone the repository
git clone https://github.com/garotm/github-mcp.git
cd github-mcp
# Install the package
pip install -e .The server uses githubauthlib for secure authentication. Follow these steps based on your operating system:
No additional setup required. The server will use Keychain Access.
No additional setup required. The server will use Credential Manager.
Install libsecret:
# Ubuntu/Debian
sudo apt-get install libsecret-tools
# Fedora
sudo dnf install libsecretgit config --global credential.helper store
# Perform a Git operation that requires authenticationThe server runs on http://localhost:8000 by default. You can configure the following environment variables:
-
GITHUB_MCP_HOST: Server host (default: "0.0.0.0") -
GITHUB_MCP_PORT: Server port (default: 8000) -
GITHUB_MCP_LOG_LEVEL: Logging level (default: "info")
- Open Cursor IDE settings
- Add the MCP server configuration:
{
"mcp": {
"servers": [
{
"name": "github-mcp",
"url": "http://localhost:8000/sse"
}
]
}
}python -m github_mcp.server# Install development dependencies
pip install -e ".[dev]"
# Run with auto-reload
python -m github_mcp.server- Check the server is running:
curl http://localhost:8000/- You should see a JSON response with server information and available tools.
- Features - Learn about available tools
- API Reference - Explore the API
- Security - Security best practices
- FAQ - Common questions and answers
This project is licensed under the MIT License - see the LICENSE file for details.
Last updated: {{date}}