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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP Toolscreate a new repository called 'ai-project' with a Python .gitignore"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π 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