git-mcp
Connects Claude to GitHub via OAuth and proxies official GitHub MCP tools, allowing each end user to interact with GitHub as themselves.
README
git-mcp
A remote MCP server that connects Claude to GitHub on behalf of each end user.
- Auth — runs Claude's custom-connector OAuth flow against a GitHub OAuth App
(FastMCP
GitHubProvider). Each user logs into GitHub through Claude. - Proxy — proxies the official
github/github-mcp-server(run inhttpmode), forwarding each request with the authenticated user's GitHub token. All of GitHub's official MCP tools are exposed to Claude, executed as that user.
Claude custom connector ──HTTPS /mcp──▶ FastMCPProxy (this app)
auth = GitHubProvider (OAuth App) → per-user GitHub token (get_access_token().token)
client_factory (per request) → Authorization: Bearer <user token>
▼
github-mcp-server (official, http mode, 127.0.0.1:8082)
▼
GitHub API (as the user)
Stack
Python 3.12+ · uv · ruff · ty · pytest · fastmcp (pinned).
Setup
make install-dev # uv sync + pre-commit hooks
cp .env.example .env # then fill in the values
Create the GitHub OAuth App
GitHub → Settings → Developer settings → OAuth Apps → New OAuth App.
- Homepage URL: your
BASE_URL(e.g.https://your-app.herokuapp.com) - Authorization callback URL:
<BASE_URL>/auth/callback
Copy the Client ID / secret into .env (GITHUB_OAUTH_CLIENT_ID, GITHUB_OAUTH_CLIENT_SECRET).
Develop
make lint # ruff check + format check + ty
make test # pytest -n auto
make format # auto-fix + format + ty
Run locally
The app spawns github-mcp-server http as a subprocess, so you need the binary on
PATH (or set GITHUB_MCP_BINARY). Easiest is a local build/binary from the
releases; alternatively run the
backend yourself in Docker via make run-backend and point BACKEND_MCP_URL at it
(then comment out the subprocess spawn for local testing).
make run-dev # binds 0.0.0.0:$PORT (default 8000), serves /mcp
Test the OAuth + tool flow with the MCP Inspector:
npx @modelcontextprotocol/inspector
# connect to http://localhost:8000/mcp → completes GitHub OAuth → lists tools
Deploy to Heroku (container)
Both processes share localhost, so they run in one dyno via a multi-stage image.
heroku create your-app
heroku stack:set container -a your-app
heroku config:set -a your-app \
GITHUB_OAUTH_CLIENT_ID=... \
GITHUB_OAUTH_CLIENT_SECRET=... \
BASE_URL=https://your-app.herokuapp.com \
JWT_SIGNING_KEY="$(openssl rand -hex 32)" \
GITHUB_TOOLSETS=repos,issues,pull_requests,users,context \
GITHUB_SCOPES="repo read:org read:user"
git push heroku main
BASE_URL and the OAuth App callback (<BASE_URL>/auth/callback) must match the
deployed URL exactly.
Add to Claude
Add https://your-app.herokuapp.com/mcp as a custom connector (Streamable HTTP).
Claude runs the OAuth flow; after you authorize the GitHub OAuth App, the GitHub tools
become available, acting as your GitHub user.
Pinning
Keep both moving pieces pinned:
fastmcp(proxy/auth API moves across versions; targets v3.4.2+).ghcr.io/github/github-mcp-serverimage (pin a digest in theDockerfile).
Configuration
See .env.example. Notable: GITHUB_TOOLSETS (or all), READ_ONLY=1 to force
read-only tools, GITHUB_SCOPES for the OAuth scopes the proxied tools need.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.