mcpField
G
GitHub MCP Server

GitHub MCP Server

Local
github.com/ds231Version Control0Updated 84w ago

About GitHub MCP Server

GitHub MCP Server is a FastAPI server for accessing selected GitHub repository and issue operations. It supports retrieving repository details, listing issues, and creating issues or comments.

Key features

  1. 01Retrieve repository details
  2. 02List repository issues
  3. 03Create issues
  4. 04Add issue comments
  5. 05Handle GitHub API errors

Use cases

  1. 01Inspect repository details through an MCP client
  2. 02Review issues for a repository
  3. 03Create an issue or comment on an existing issue

MCP support

The FastAPI server implements MCP and exposes GitHub repository details and issue operations to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

GitHub MCP Server

A FastAPI server implementing the Model Context Protocol for GitHub interactions.

Setup

  1. Clone the repository
  2. Create a virtual environment:
    python -m venv venv
    source venv/bin/activate 
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Create a .env file with your GitHub Personal Access Token:
    GITHUB_TOKEN=your_token_here
    
Usage

Start the server:

uvicorn server:app --reload --port 8000

API Endpoints

Get Repository Details
GET /repository/{owner}/{repo}
List Issues
GET /repository/{owner}/{repo}/issues
Create Issue
POST /repository/{owner}/{repo}/issues
Create Comment
POST /repository/{owner}/{repo}/issues/{issue_number}/comments

Error Handling

The server implements comprehensive error handling for all GitHub API interactions. Errors are logged and appropriate HTTP status codes are returned.

Type Hints

The codebase uses type hints throughout for better maintainability and IDE support.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.