
mcp github
A Model Context Protocol (MCP) server for interacting with GitHub
Repository Info
About This Server
A Model Context Protocol (MCP) server for interacting with GitHub
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
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 install - Build 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_here
When 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.js
Deploying 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 build
Linting
npm run lint
License
MIT
Quick Start
Clone the repository
git clone https://github.com/renantrendt/mcp-githubInstall dependencies
cd mcp-github
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.