loidodev
MCP Serverloidodevpublic

github mcp server

A Model Context Protocol server for GitHub integration

Repository Info

1
Stars
0
Forks
1
Watchers
1
Issues
TypeScript
Language
-
License

About This Server

A Model Context Protocol server for GitHub integration

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 server for interacting with the GitHub API.

Features

Tools

  • list_user_repos: List repositories for the authenticated user

    • Parameters:
      • 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 repository

    • Parameters:
      • repo (required): The name of the repository
      • owner (optional): The account owner. If not provided, uses authenticated user.
  • create_repo: Create a new repository

    • Parameters:
      • name (required): The name of the repository
      • description (optional): A short description
      • private (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 changes

    • Parameters:
      • repo (required): The name of the repository
      • owner (optional): The account owner. If not provided, uses authenticated user.
      • branch (optional): The branch name (default: "main")
      • message (required): The commit message
      • files (required): Array of files to include in commit
        • Each file requires:
          • path: File path relative to repository root
          • content: File content
  • push: Push changes to a remote repository

    • Parameters:
      • repo (required): The name of the repository
      • owner (optional): The account owner. If not provided, uses authenticated user.
      • branch (optional): The branch name (default: "main")
  • pull: Pull changes from a remote repository

    • Parameters:
      • repo (required): The name of the repository
      • owner (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_TOKEN environment variable

Installation

npm install
npm run build

Configuration

Set your GitHub token as an environment variable:

export GITHUB_TOKEN=your_token_here

Usage

Run the server:

npm start

Development

For development with auto-rebuild:

npm run watch

Debugging

Use the MCP Inspector:

npm run inspector

Quick Start

1

Clone the repository

git clone https://github.com/loidodev/github-mcp-server
2

Install dependencies

cd github-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerloidodev
Repogithub-mcp-server
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation