GitHub MCP Server built with FastAPI

GitHub MCP Server built with FastAPI

mcp-server-snehaapratap•bysnehaapratap

A FastAPI implementation of a Model Context Protocol server that lets AI assistants interact with GitHub to fetch user and repository data, manage issues, and star repositories.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Fetches GitHub user details and lists the authenticated user's repositories.
  • •Creates and lists issues in repositories, and stars repositories.
  • •Offers optional AI-powered summarization of GitHub issues.
  • •Authenticates to GitHub using a personal access token and is built asynchronously with FastAPI.

BEST FOR

  • •AI assistants that need to read GitHub user and repository information.
  • •Automating GitHub issue creation and listing through assistant-driven workflows.
  • •Summarizing repository issues for quicker triage.

ABOUT MCP-SERVER-SNEHAAPRATAP

GitHub MCP Server built with FastAPI is cataloged as an MCP server attributed to snehaapratap. A FastAPI implementation of a Model Context Protocol server that lets AI assistants interact with GitHub to fetch user and repository data, manage issues, and star repositories. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for GitHub MCP Server built with FastAPI are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with GitHub?

It uses a GitHub personal access token set via environment variables, and error hints note that the token should have the 'repo' scope.

What future enhancements are planned?

Planned additions include pull request management, WebSockets for real-time GitHub notifications, and deployment on AWS or GCP with CI/CD.

Upstream README

View this exact version on GitHub

README.md · 0b483266ec04 · Fetched 2026-11-13 11:01:52 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🚀 GitHub MCP Server - FastAPI Implementation

🌟 Overview

This project implements a Model Context Protocol (MCP) server using FastAPI, enabling AI assistants like Claude to interact with GitHub. The server provides API endpoints to fetch user details, manage repositories, create issues, and automate GitHub workflows.

✨ Features

  • ✅ Fetch GitHub user details and repositories
  • ✅ Create and manage issues in repositories
  • ✅ List all issues in a repository
  • ✅ Star a repository
  • ✅ AI-powered GitHub Issue Summarization (Optional)
  • ✅ Secure API with GitHub OAuth Token
  • ✅ Asynchronous FastAPI implementation

🛠️ Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/snehaapratap/mcp-server.git
cd mcp-server

2️⃣ Create & Activate a Virtual Environment

python3 -m venv venv
source venv/bin/activate  

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Set Up Environment Variables

Create a .env file in the root directory and add your GitHub Personal Access Token (PAT):

GITHUB_TOKEN=your_personal_access_token

5️⃣ Run the FastAPI Server

uvicorn server:app --reload

The server will start on http://127.0.0.1:8000.


🔥 API Endpoints

MethodEndpointDescription
GET/Health check for MCP server
GET/github/userFetch GitHub user details
GET/github/reposGet all repositories of the authenticated user
POST/github/create-issueCreate an issue in a repository
GET/github/list-issuesList all issues in a repository
PUT/github/star-repoStar a repository
POST/github/summarize-issuesAI-powered issue summarization (Optional)

⚡ Usage Examples (cURL)

🔹 Get User Details

curl -X GET "http://127.0.0.1:8000/github/user"

🔹 Fetch Repositories

curl -X GET "http://127.0.0.1:8000/github/repos"

🔹 Create an Issue

curl -X POST "http://127.0.0.1:8000/github/create-issue?owner=your-username&repo=your-repo&title=New%20Issue&body=This%20is%20a%20test%20issue"

🔹 Star a Repository

curl -X PUT "http://127.0.0.1:8000/github/star-repo?owner=your-username&repo=your-repo"

🎥 Slides

📌 View the Slides


🛡️ Error Handling

The API handles errors gracefully and returns meaningful messages:

{
  "error": "Invalid GitHub Token",
  "hint": "Ensure your token has the 'repo' scope."
}

🎯 Future Enhancements

  • 🔹 Support for pull requests management
  • 🔹 Implement WebSockets for real-time GitHub notifications
  • 🔹 Deploy on AWS/GCP with CI/CD pipeline

💡 Contributing

Want to improve this project? Feel free to open a pull request or file an issue!


👨‍💻 Author

🔹 Sneha P Pratap
🔹 GitHub: @snehaapratap
🔹 LinkedIn: Sneha Prem Pratap


Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for GitHub MCP Server built with FastAPI from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-snehaapratap)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools