Skip to main content
Glama
nhevers

mcp-github

by nhevers

mcp-github

MCP server for GitHub operations. Provides tools for repository management, issues, pull requests and code search.

Installation

pip install -r requirements.txt

Related MCP server: GitHub Prod MCP

Quick Start

from mcpgithub import GitHubServer

server = GitHubServer(token="ghp_...")
server.run()

Features

  • Repository listing and management

  • Issue and PR operations

  • Code and repository search

  • File read and write operations

  • Branch management

MCP Tools

list_repos

List repositories for a user or organization.

{
  "name": "list_repos",
  "arguments": {
    "owner": "username",
    "type": "all"
  }
}

get_file

Get contents of a file from a repository.

{
  "name": "get_file",
  "arguments": {
    "owner": "username",
    "repo": "repo-name",
    "path": "src/main.py"
  }
}

create_issue

Create a new issue.

{
  "name": "create_issue",
  "arguments": {
    "owner": "username",
    "repo": "repo-name",
    "title": "Bug report",
    "body": "Description..."
  }
}

search_code

Search for code across repositories.

{
  "name": "search_code",
  "arguments": {
    "query": "function authenticate",
    "language": "python"
  }
}

create_pr

Create a pull request.

{
  "name": "create_pr",
  "arguments": {
    "owner": "username",
    "repo": "repo-name",
    "title": "Add feature",
    "head": "feature-branch",
    "base": "main"
  }
}

Configuration

server = GitHubServer(
    token="ghp_...",
    default_owner="myorg"
)

Environment variables:

GITHUB_TOKEN=ghp_...
GITHUB_DEFAULT_OWNER=myorg

Examples

Claude Desktop configuration

{
  "mcpServers": {
    "github": {
      "command": "python",
      "args": ["-m", "mcpgithub"],
      "env": {
        "GITHUB_TOKEN": "ghp_..."
      }
    }
  }
}

License

MIT

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

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • A MCP server built for developers enabling Git based project management with project and personal…

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.

View all MCP Connectors

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

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