Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

by ds231

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

Related MCP server: GitHub MCP Server

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables LLMs to interact with GitHub repositories, issues, pull requests, and workflows through the Model Context Protocol. It provides a comprehensive set of tools for repository management, issue tracking, code search, and CI/CD automation.
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to directly operate GitHub repositories, such as listing issues, through the Model Context Protocol.
      2
      295 npm
      2
      Apache 2.0