MCP.so
ログイン

GitHub MCP Server

@Joseph19820124

GitHub MCP Server について

A GitHub MCP server demo with create repository functionality

基本情報

カテゴリ

バージョン管理

ランタイム

python

トランスポート

stdio

公開者

Joseph19820124

設定

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

{
  "mcpServers": {
    "joseph-github-mcp-server": {
      "command": "python",
      "args": [
        "main.py"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is GitHub MCP Server?

The GitHub MCP Server is a Model Context Protocol (MCP) server that provides GitHub repository creation functionality. It allows AI applications and other MCP clients to programmatically create new GitHub repositories with customizable settings using the standard MCP protocol over stdin/stdout.

How to use GitHub MCP Server?

Clone the repository, install Python dependencies via pip install -r requirements.txt, set the GITHUB_TOKEN environment variable with a token that has repo and user scopes, then run python main.py. The server listens for JSON‑RPC 2.0 requests (e.g., tools/call with tool name create_repository) over stdio. Test it by sending echo '{"method": "tools/list", "id": "1"}' | python main.py.

Key features of GitHub MCP Server

  • Create a new GitHub repository with a required name
  • Set an optional description and privacy setting
  • Communicate via MCP protocol over stdin/stdout
  • Returns full repository details on success
  • Requires Python 3.8 or higher

Use cases of GitHub MCP Server

  • Automate repository creation during CI/CD workflows
  • Let an AI assistant create a GitHub repo on your behalf
  • Integrate repository provisioning into MCP‑capable applications

FAQ from GitHub MCP Server

What GitHub permissions are required?

The personal access token needs repo (for repository access) and user (for user information) scopes.

How do I set the GitHub token?

Set the token as an environment variable: export GITHUB_TOKEN="your_github_personal_access_token".

What Python version is needed?

Python 3.8 or higher is required.

How is the server invoked?

The server runs as a subprocess communicating via JSON‑RPC 2.0 over stdio. MCP clients send tools/list and tools/call requests to discover and use the create_repository tool.

Is the repository private by default?

No, the private parameter defaults to false, making repositories public unless explicitly set to true.

コメント

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