GitHub MCP App Shim
Enables authentication using GitHub Apps instead of Personal Access Tokens (PATs) for GitHub MCP servers, supporting secure, short-lived access tokens and fine-grained permissions for interacting with repositories and organizational data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP App ShimSummarize the changes in the latest pull request for the 'api' repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub MCP App Shim
A lightweight stdio-to-http relay that enables the GitHub MCP Server to authenticate using a GitHub App instead of a Personal Access Token (PAT).
Why use this?
The official GitHub MCP server typically requires a static PAT. This shim allows your AI agent to use a GitHub App's fine-grained permissions and short-lived tokens, which is more secure for organizational use and avoids the 1-year expiration limit of standard tokens.
Related MCP server: gitbridge-mcp
Features
Auto-Refresh: Automatically exchanges your App's Private Key for a fresh Installation Access Token every 50 minutes.
Stdio Bridge: Acts as a local
stdioserver for AI clients (like Claude Desktop) while communicating with GitHub's remote MCP endpoint overhttps.Environment Driven: No secrets are hardcoded; all identifiers are passed via environment variables.
Prerequisites
Python 3.9+
A GitHub App registered in your organization with the necessary permissions (e.g.,
Contents: Read/Write,Metadata: Read-only).The App must be installed on the target organization or repositories.
Installation
Clone or copy the
github_shim.pyandpyproject.tomlinto a folder.Install the dependencies:
pip install .
Finding Your Credentials
Identifier | Where to find it |
Client ID | Found on the General settings page of your GitHub App (e.g., |
Private Key | Generate and download the |
Installation ID | Navigate to your Org Settings > Installed GitHub Apps > Click Configure next to your app. The ID is the numeric string at the end of the URL (e.g., |
Configuration
Claude Desktop
Add the following to your claude_desktop_config.json (found at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"github-app-agent": {
"command": "github-mcp-shim",
"env": {
"GH_CLIENT_ID": "YOUR_CLIENT_ID",
"GH_INSTALLATION_ID": "YOUR_INSTALL_ID",
"GH_PRIVATE_KEY_PATH": "/absolute/path/to/your-app.private-key.pem",
"GH_REMOTE_MCP_URL": "https://api.githubcopilot.com/mcp" // optional
}
}
}
}Security Note
Keep your .pem private key file secure. Anyone with access to this file and your Client ID can impersonate your agent and access the repositories authorized during the app installation.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- FlicenseAqualityBmaintenanceRefined MCP server for GitHub GraphQL API. GitHub's official MCP Server exposes dozens of low-level tools that bloat token usage and are mostly impractical for LLMs. gh-mcp achieves the best of both worlds by providing a single, powerful interface: GitHub GraphQL, wrapped with smart abstractions.2-
- AlicenseNot gradedqualityCmaintenanceA production-ready MCP bridge server connecting Claude Chat to any GitHub repository for file operations, issue management, and code search via OAuth 2.0 authenticated Streamable HTTP transport.6MIT
- FlicenseBqualityBmaintenanceA lightweight MCP server that acts as a secure proxy for AI assistants to run local Git operations and GitHub API macros simultaneously.1-
- AlicenseCqualityBmaintenanceA policy-aware MCP server for GitHub and GitHub Actions that enables safe AI-assisted infrastructure workflows—inspecting repositories, preparing branches and pull requests, and constrained remote mutations behind explicit preview-bound approval tokens.18MIT