MCP.so
ログイン

GitHub MCP Server

@jasona7

基本情報

カテゴリ

バージョン管理

トランスポート

stdio

作者

jasona7

GitHub MCP Server について

A MCP Server with tools for interfacing with Discussions on Github

GitHub MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

GitHub MCP Server のツール

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

よくある質問

1

What prerequisites are needed?

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

2

How do I configure the server?

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

3

What tools does the server provide?

`search_repositories`, `get_repository_details`, `get_repository_issues`, `get_repository_discussions`, and `get_top_repos_by_activity`.

4

How to troubleshoot connection refused errors?

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

5

What about GitHub API rate limiting?

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

コメント

「バージョン管理」の他のコンテンツ