github-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GH_TOKEN | No | GitHub personal access token. Recommended but not required if `gh` is already authenticated. | |
| GITHUB_MCP_ALLOWED_ROOTS | Yes | Allowed root directories for repository operations. | |
| GITHUB_MCP_DEFAULT_REMOTE | No | Default remote name. | origin |
| GITHUB_MCP_DEFAULT_BASE_BRANCH | No | Default base branch name. | main |
| GITHUB_MCP_REQUIRE_CLEAN_WORKTREE | No | Require clean worktree before operations. | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| github_repo_statusA | Inspect a local Git repository status, branch, remotes, upstream, and MCP allowed roots. |
| github_pull_mainA | Fetch, switch to the base branch, and fast-forward pull from the configured remote. |
| github_create_feature_branchB | Create a new feature branch from the base branch after validating safety constraints. |
| github_push_feature_branchA | Push a non-protected feature branch and set upstream. Refuses main/master. |
| github_create_pull_requestB | Create a ready-for-review pull request from a pushed feature branch into the base branch. |
| github_prepare_feature_workflowA | Check status, update main, and create a new feature branch. Does not push or create a PR. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- 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/matiasnjacob/github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server