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
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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