GitHub MCP Server

by Sami-07

285 downloads
Not rated
GitHub

About

A Simple custom-built MCP server that provides GitHub integration features through various tools and resources.

Details

Author
Sami-07
Downloads
285
Categories
Developer Tools

- Get user information and profile details
- List user repositories and followers
- Get and create repository issues
- Get commit statuses for a specific SHA
- Retrieve owner (authenticated user) information
- Resource-based access to GitHub data via custom URI scheme
- Simple setup with a personal access token

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name GitHub MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pip install -r requirements.txt, create a .env file with your GITHUB_TOKEN, and run python server.py. The server then exposes tools and resources for interacting with GitHub (e.g., user info, repositories, issues, commit statuses).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "github mcp server": {
            "custom-github-mcp-server": {
                "command": "python",
                "args": [
                    "server.py"
                ]
            }
        }
    }
}

McpServers

{
    "custom-github-mcp-server": {
        "command": "python",
        "args": [
            "server.py"
        ]
    }
}

GitHub MCP Server

A Simple custom-built MCP server that provides GitHub integration features through various tools and resources.

Demo

https://github.com/user-attachments/assets/63b92a95-56f3-4290-9c73-acc4ad407246

Features

- Get user information and profile details
- List user repositories and followers
- Get repository issues
- Create new issues
- Get commit statuses
- Get owner information
- Resource-based access to GitHub data

Setup

1. Install dependencies:

pip install -r requirements.txt

2. Create a .env file in the project root and add your GitHub token:

GITHUB_TOKEN=your_github_token_here

You can create a GitHub token at: https://github.com/settings/personal-access-tokens with the following permissions:
- repo (Full control of private repositories)
- read:user (Read user profile data)
- user:follow (Follow and unfollow users)

Available Tools

- owner_info(): Get information about the authenticated GitHub user
- get_user_info(username): Get information about a GitHub user
- list_followers(username, limit=10): List followers for a GitHub user
- list_repositories(username, limit=5): List repositories for a GitHub user
- get_repo_issues(owner, repo, state="open"): Get issues for a repository
- create_issue(owner, repo, title, body, labels=None): Create a new issue
- get_commit_statuses(owner, repo, sha): Get commit statuses for a specific commit SHA

Available Resources

- github://user/{username}: Get a user's GitHub profile
- github://followers/{username}: List a user's followers
- github://repos/{username}: List a user's repositories
- github://issues/{owner}/{repo}: Get issues for a repository
- github://commit-status/{owner}/{repo}/{sha}: Get commit statuses for a specific commit

Running the Server

python server.py

Example Usage

```python

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.