GitHub MCP Server
Provides tools for interacting with GitHub API, enabling management of repositories, commits, and branches.
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 Serverlist my repositories"
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 Server
A Model Context Protocol server for interacting with the GitHub API.
Features
Tools
list_user_repos: List repositories for the authenticated userParameters:
type(optional): "owner", "all", or "member" (default: "owner")sort(optional): "created", "updated", "pushed", or "full_name" (default: "full_name")direction(optional): "asc" or "desc" (default: "asc")per_page(optional): Number of results per page (default: 30, max: 100)page(optional): Page number (default: 1)
get_repo: Get details about a specific repositoryParameters:
repo(required): The name of the repositoryowner(optional): The account owner. If not provided, uses authenticated user.
create_repo: Create a new repositoryParameters:
name(required): The name of the repositorydescription(optional): A short descriptionprivate(optional): Whether the repository is private (default: false)auto_init(optional): Create initial commit with empty README (default: false)
create_commit: Create a new commit with file changesParameters:
repo(required): The name of the repositoryowner(optional): The account owner. If not provided, uses authenticated user.branch(optional): The branch name (default: "main")message(required): The commit messagefiles(required): Array of files to include in commitEach file requires:
path: File path relative to repository rootcontent: File content
push: Push changes to a remote repositoryParameters:
repo(required): The name of the repositoryowner(optional): The account owner. If not provided, uses authenticated user.branch(optional): The branch name (default: "main")
pull: Pull changes from a remote repositoryParameters:
repo(required): The name of the repositoryowner(optional): The account owner. If not provided, uses authenticated user.branch(required): The branch name
Related MCP server: GitHub Enterprise MCP Server
Requirements
Node.js 18+
GitHub personal access token with appropriate permissions
Set
GITHUB_TOKENenvironment variable
Installation
npm install
npm run buildConfiguration
Set your GitHub token as an environment variable:
export GITHUB_TOKEN=your_token_hereUsage
Run the server:
npm startDevelopment
For development with auto-rebuild:
npm run watchDebugging
Use the MCP Inspector:
npm run inspectorThis 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 Servers
- AlicenseBqualityDmaintenanceEnables comprehensive GitHub operations through natural language including file management, repository administration, issue tracking, and advanced code searching.Last updated47461MIT
- AlicenseBqualityDmaintenanceEnables interaction with GitHub repositories through the GitHub API, allowing file operations, repository management, issue tracking, and code search through natural language commands.Last updated33244MIT
- Flicense-qualityBmaintenanceEnables users to interact with GitHub via natural language requests, executing API calls and returning structured responses.Last updated
- Alicense-qualityDmaintenanceEnables comprehensive interaction with the GitHub API for managing repositories, issues, pull requests, commits, and GitHub Actions workflows through natural language.Last updated174MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
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/lyderdev/github-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server