github-mcp-tool
Allows managing GitHub repositories, files, and user information.
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-toolCreate a new private repo called my-api"
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.
π MCP Tool for GitHub
Overview
The MCP (Model Context Protocol) Tool helps manage and track model context in GitHub repositories. It allows you to document important details like model versions, datasets, metrics, and training configurations.
Related MCP server: GitHub MCP Server
π¦ Overview
The MCP Tool for GitHub is designed to help manage:
Repositories
Files (create/update/delete)
User information
GitHub API requests
β¨ Features
π§βπ» 1. User Info
git_info(username: str)Fetch public GitHub user profile information.
π 2. Repository Management
create_repo(repo_name: str, private: bool, description: str)Create a new repository (private/public).
delete_repo(username: str, repo_name: str)Delete a repository by username and repo name.
π 3. File Operations in Repository
create_file(...)Add a new file to a repository.
Content is automatically base64 encoded.
update_file(...)Update an existing file.
Requires the file's SHA from GitHub.
delete_file(...)Delete a file.
Requires SHA and commit message.
π 4. Request Utility
make_request(...)Handles all API interactions (
GET,POST,PUT,DELETE).Authenticated via GitHub Token.
Centralized method to perform various actions like:
Create repositories
Upload/update/delete files
Fetch user/repo data
π 5. Authentication & Setup
Reads GitHub token securely from
.envfile.Sets proper headers (
User-Agent,Accept,Authorization).Fully asynchronous requests using
httpx.
π§° Prerequisites
β Python 3.7+
β Git & uv installed
π .env File Format
Create a .env file in the root directory and add:
GITHUB_TOKEN=your_personal_access_token_hereπ οΈ Setup & Usage
# Clone the Repo
git clone https://github.com/jalaj-pandey/github-mcp-tool.git
# Change Directory
cd github-mcp-tool
# Initialize virtual environment using uv
uv init
uv venv
.venv/Scripts/activate # Use `source ./venv/bin/activate` on Unix/Mac
# Add dependencies
uv add mcp[cli] httpx python-dotenv
# Start MCP dev server
mcp dev main.pyThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Access the GitHub API, enabling file operations, repository management, search functionality, andβ¦
Manage repositories, users, releases, and automate GitHub workflows
GitHub MCP β wraps the GitHub public REST API (no auth required for public endpoints)
GitHub Private MCP Pack β access private repos, org data via OAuth.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.3118MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with GitHub repositories through the GitHub API using fastMCP. Supports repository information retrieval and management with secure token-based authentication.
- AlicenseNot gradedqualityDmaintenanceEnables GitHub API integration via MCP, allowing search, repository details, file contents, and issue management.467ISC
- FlicenseNot gradedqualityCmaintenanceEnables users to read and manage GitHub repositories through MCP, with destructive operations gated behind explicit confirmation and dry-run previews.1
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jalaj-pandey/github-mcp-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server