Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GH_TOKENNoGitHub personal access token. Recommended but not required if `gh` is already authenticated.
GITHUB_MCP_ALLOWED_ROOTSYesAllowed root directories for repository operations.
GITHUB_MCP_DEFAULT_REMOTENoDefault remote name.origin
GITHUB_MCP_DEFAULT_BASE_BRANCHNoDefault base branch name.main
GITHUB_MCP_REQUIRE_CLEAN_WORKTREENoRequire clean worktree before operations.true

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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