Skip to main content
Glama
Livshitz
by Livshitz

mcp-github

MCP server for the GitHub REST API — repos, PRs, issues, branches, commits, reviews, and code search.

Usage

bun run src/mcp/cli.ts --stdio     # stdio mode (for MCP integration)
bun run src/mcp/cli.ts --port 3845 # HTTP mode

Env Vars

Variable

Required

Description

GITHUB_TOKEN

Yes

PAT with repo, read:org scopes

GITHUB_ALLOW_WRITES

No

Set true to enable PRs, reviews, comments, issues

GITHUB_ALLOW_DESTRUCTIVE

No

Set true to also enable merge operations

MCP_CACHE_DIR

No

Cache directory (default: .mcp-github/cache)

Tools

Read-only (always available):

  • GET /github/repos — List repos for user or org

  • GET /github/repos/:owner/:repo — Get repo details

  • GET /github/repos/:owner/:repo/pulls — List PRs

  • GET /github/repos/:owner/:repo/pulls/:number — Get PR details

  • GET /github/repos/:owner/:repo/issues — List issues

  • GET /github/repos/:owner/:repo/branches — List branches

  • GET /github/repos/:owner/:repo/commits — List commits

  • GET /github/search/code — Search code

  • GET /github/search/issues — Search issues/PRs

Write (requires GITHUB_ALLOW_WRITES=true):

  • POST /github/repos/:owner/:repo/pulls — Create PR

  • POST /github/repos/:owner/:repo/pulls/:number/reviews — Submit review

  • POST /github/repos/:owner/:repo/issues — Create issue

  • POST /github/repos/:owner/:repo/issues/:number/comments — Add comment

Destructive (requires GITHUB_ALLOW_DESTRUCTIVE=true):

  • PUT /github/repos/:owner/:repo/pulls/:number/merge — Merge PR

Architecture

Built on edge.libx.js RouterWrapper + describeMCP. Read-only by default with explicit opt-in for writes. Results spooled to disk via spool().

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/Livshitz/mcp-github'

If you have feedback or need assistance with the MCP directory API, please join our Discord server