Used for environment handling and securely storing GitHub Personal Access Tokens required for authentication with the GitHub API.
Enables direct interaction with GitHub, allowing AI assistants to fetch user profiles, create and delete repositories, create and merge pull requests, and list repositories by username or authentication.
🚀 GitHub MCP Tools
A powerful set of tools built using the Model Context Protocol (MCP) framework to allow AI assistants and agents to interact directly with GitHub. Perfect for automating developer workflows via AI integration.
✨ Features
👤 Fetch detailed GitHub user profiles
📁 Create new repositories
❌ Delete repositories (with appropriate permissions)
🔄 Create and merge pull requests
📋 List repositories (authenticated or by username)
👋 Simple Hello World test tool
Related MCP server: PyGithub MCP Server
⚙️ Tech Stack
Python 3.8+
FastMCP (Model Context Protocol server)
GitHub REST API
requests,python-dotenvfor API integration and environment handling
📦 Installation
Clone the repository:
Create Github PAT Go to your Github Profile -> Settings -> Developer Setting -> Personal Access Token(PAT) -> Token (Classic) -> Generate New Token (Classic)
Create a .env file
Create a .env file
Add GITHUB_PAT=ghp_********************* in the .env file
Run the python file