MCP.so
登录

GitHub MCP Server

@jasona7

关于 GitHub MCP Server

A MCP Server with tools for interfacing with Discussions on Github

基本信息

分类

版本控制

运行时

python

传输方式

stdio

发布者

jasona7

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

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

概览

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.

评论

版本控制 分类下的更多 MCP 服务器