GitHub MCP Server logo

GitHub MCP Server

by jasona7

A versatile server implementation of the Model Context Protocol (MCP) designed to interact with GitHub repositories, issues, and discussions. It enables efficient management, automation, and enhanced collaboration by providing a structured interface to query, update, and analyze GitHub data.

View on GitHub

Last updated: N/A

What is GitHub MCP Server?

This MCP server provides a bridge between AI assistants and the GitHub API, allowing AI models to perform actions like searching repositories, viewing discussions, and analyzing repository activity.

How to use GitHub MCP Server?

To use this server, clone the repository, install dependencies, set up your GitHub token, and run the server script. You can then interact with the server using the provided client or by making direct API calls to the exposed endpoints.

Key features of GitHub MCP Server

  • Repository Management

  • Discussion Integration

  • Activity Analysis

  • Search Capabilities

Use cases of GitHub MCP Server

  • Building tools for GitHub

  • Automating GitHub tasks

  • Exploring new ways to engage with GitHub's ecosystem

  • Analyzing repository data

FAQ from GitHub MCP Server

What is the default port for the server?

The server starts on localhost:8004 by default.

What environment variables are required?

GITHUB_TOKEN, MCP_HOST, and MCP_PORT are the key environment variables.

What tools are available?

search_repositories, get_repository_details, get_repository_issues, get_repository_discussions, and get_top_repos_by_activity are available.

What permissions does the GitHub token need?

The GitHub Personal Access Token needs appropriate permissions to access the repositories and discussions you want to interact with.

What should I do if I get a 'Connection Refused' error?

Make sure the server is running and the port is not blocked by a firewall.