GitHub MCP Server
GitHub MCP Server
A Model Context Protocol (MCP) server for interacting with GitHub. This tool allows AI assistants to perform various GitHub operations including repository management, file operations, issue tracking, and more.
Features
Repository Operations: Create repositories, fork repositories
File Operations: Create, update, and read files, push multiple files in a single commit
Issue Management: Create, update, list, and comment on issues
Pull Requests: Create pull requests
Branch Management: Create branches
Search Capabilities: Search code, repositories, issues, and users
Commit History: List commits
Setup
Prerequisites
Node.js 18 or higher
A GitHub Personal Access Token with appropriate permissions
Installation
Clone this repository
Install dependencies:
npm installBuild the project:
npm run build
Configuration
This MCP server requires a GitHub Personal Access Token to authenticate with the GitHub API. The token should be provided as an environment variable:
GITHUB_PERSONAL_ACCESS_TOKEN=your_token_hereWhen deploying with Smithery, the token is configured through the githubPersonalAccessToken configuration option.
Usage
Running Locally
To run the server locally:
GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here node dist/index.jsDeploying with Smithery
This repository includes the necessary configuration files for deploying with Smithery:
Dockerfile: Defines how to build the Docker image for the MCP serversmithery.yaml: Configures how Smithery should start the MCP server
Refer to the Smithery documentation for deployment instructions.
Development
Building
npm run buildLinting
npm run lintLicense
MIT
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/renantrendt/mcp-github'
If you have feedback or need assistance with the MCP directory API, please join our Discord server