MCP.so
Sign In

GitHub MCP Server

@jasona7

About GitHub MCP Server

A MCP Server with tools for interfacing with Discussions on Github

Basic information

Category

Version Control

Runtime

python

Transports

stdio

Publisher

jasona7

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp_github_discussions": {
      "command": "python",
      "args": [
        "scripts/mcp/github/mcp_github_server.py"
      ]
    }
  }
}

Tools

5

Search for repositories based on various criteria

Get detailed information about a repository

Fetch issues from a repository

Fetch discussions from a repository

Get trending repositories by activity

Overview

What is GitHub MCP Server?

GitHub MCP Server is an implementation of the Model Context Protocol (MCP) that bridges AI assistants with the GitHub API. It allows AI models to search repositories, view discussions, analyze repository activity, and fetch repository statistics.

How to use GitHub MCP Server?

After installing dependencies (pip install requests) and setting the GITHUB_TOKEN environment variable, start the server with python scripts/mcp/github/mcp_github_server.py. Use the included client (python scripts/mcp/github/mcp_github_client.py) to interact via a terminal UI or call the exposed tools directly.

Key features of GitHub MCP Server

  • Repository management and advanced search
  • GitHub Discussions integration
  • Activity analysis and trending repos
  • Terminal UI client for exploration
  • Configurable host and port via environment variables

Use cases of GitHub MCP Server

  • Automate retrieval of repository metadata and issues
  • Analyze GitHub Discussions for community insights
  • Find trending repositories by recent activity or stars
  • Integrate AI assistants with GitHub workflows

FAQ from GitHub MCP Server

What prerequisites are needed?

Python 3.8+ and a GitHub Personal Access Token with appropriate permissions.

How do I configure the server?

Set environment variables: GITHUB_TOKEN (required), MCP_HOST (default localhost), and MCP_PORT (default 8004).

What tools does the server provide?

search_repositories, get_repository_details, get_repository_issues, get_repository_discussions, and get_top_repos_by_activity.

How to troubleshoot connection refused errors?

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

What about GitHub API rate limiting?

The server handles rate limits but may slow down during heavy usage.

Comments

More Version Control MCP servers