gh-mcp
Click on "Install 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., "@gh-mcpshow my open pull requests"
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.
gh-mcp
This is a very thin wrapper around the gh CLI.
Security
This server passes any command directly to gh without filtering. It can do anything your authenticated GitHub token allows.
To control what the server can do, scope your token:
Recommended: Create a fine-grained personal access token with only the repository access and permissions your AI tool needs.
Alternatively: Use a classic PAT with the minimum required scopes.
The server prevents shell injection by design — commands are passed as argument arrays to Bun.spawn, never interpolated into a shell string.
Related MCP server: github-graphql-mcp-server
Installation
1. Install the GitHub CLI
Download the GitHub CLI. Or use brew install gh. Verify your installation.
gh --version2. Install bun
This project uses bun for package management. Verify your installation.
bun --version3. Clone the repo and install dependencies
git clone https://github.com/jarrettmeyer/gh-mcp.git
cd gh-mcp
bun install4. Add the server to your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Note: bun installs to ~/.bun/bin/, which is not on the default PATH. Use the full path to the bun executable.
{
"mcpServers": {
"gh": {
"command": "/Users/your-username/.bun/bin/bun",
"args": ["run", "/path/to/gh-mcp/src/index.ts"]
}
}
}Restart Claude Desktop.
Claude Code
Install from your terminal:
claude mcp add gh -- bun run /path/to/gh-mcp/src/index.tsIf gh is in a non-standard location, pass GH_PATH via --env:
claude mcp add gh --env GH_PATH=/opt/homebrew/bin/gh -- bun run /path/to/gh-mcp/src/index.tsUsage
send_command
Execute a gh CLI command. Pass everything that would follow gh on the command line as the command string.
Parameter | Type | Description |
| string | The |
Examples:
List open pull requests in a repo:
command: "pr list --repo owner/repo"
View an issue:
command: "issue view 42 --repo owner/repo"
Check the authenticated user:
command: "auth status"This tool works with any MCP-compatible client, including Claude Desktop, Claude Code, and Cursor.
Additional Configuration
GH_PATH
By default, the server resolves gh from your PATH. If gh is installed in a non-standard location (e.g. Homebrew on Apple Silicon), set GH_PATH to its absolute path:
{
"mcpServers": {
"gh": {
"command": "/Users/your-username/.bun/bin/bun",
"args": ["run", "/path/to/gh-mcp/src/index.ts"],
"env": {
"GH_PATH": "/opt/homebrew/bin/gh"
}
}
}
}Resources
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that wraps the GitHub CLI to provide comprehensive access to repository management, pull requests, issues, and workflows. It enables users to perform complex GitHub operations and interact with the GitHub API through a standardized interface.131ISC
- Flicense-qualityFmaintenanceEnables executing arbitrary GraphQL queries and mutations against GitHub's API through a single MCP tool.13
- Flicense-qualityBmaintenanceA GitHub MCP server that wraps the gh CLI to expose GitHub operations like issues, pull requests, branches, labels, repositories, CI actions, and Projects V2 as tools for MCP clients.
- Alicense-qualityAmaintenanceA single static Go binary that exposes GitHub operations (repos, branches, commits, file contents, issues, PRs, and search) as MCP tools, enabling agents to read and write GitHub data with no runtime dependencies.MIT
Related MCP Connectors
Monday.com MCP — wraps the Monday.com GraphQL API (BYO API key)
Product Hunt MCP — wraps the Product Hunt GraphQL API v2 (api.producthunt.com)
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarrettmeyer/gh-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server