github-mcp-server-sse
GitHub MCP Server (SSE)
Documentation
GitHub MCP Server
Model Context Protocol (MCP) を使用したGitHub統合サーバーです。このサーバーはLLM(大規模言語モデル)アプリケーションがGitHub APIと通信するための標準化されたインターフェースを提供します。
機能
このサーバーは以下の機能を提供します:
- リポジトリの検索
- リポジトリの作成
- ファイルの内容の取得
- ファイルの作成・更新
- 複数ファイルの一括プッシュ
- リポジトリのフォーク
- Pull Requestの作成
- Pull Requestの詳細取得
- Pull Requestへのレビュー追加
インストール
go get github.com/yamagai/github-mcp-server-sse使用方法
標準入出力モード (Stdio)
# 環境変数でGitHubトークンを設定
export GITHUB_TOKEN=your_github_token
# サーバーを起動(デフォルトは標準入出力モード)
github-mcp
# または明示的に標準入出力モードを指定
github-mcp -t stdioSSEモード
# 環境変数でGitHubトークンを設定(または各リクエストのAuthorizationヘッダーで指定)
export GITHUB_TOKEN=your_github_token
# デフォルトポート(8080)でSSEサーバーを起動
github-mcp -t sse
# カスタムポートでSSEサーバーを起動
github-mcp -t sse -p 3000SSEモードでは、HTTPリクエストのAuthorizationヘッダーにGitHubトークンを含めることもできます:
curl -H "Authorization: Bearer YOUR_GITHUB_TOKEN" http://localhost:8080/eventsDockerコンテナでの使用
SSEモードでサーバーを実行するDockerコンテナが提供されています。
ビルド方法
# Dockerイメージをビルド
docker build -t github-mcp-server-sse .実行方法
# 環境変数でGitHubトークンを指定して実行
docker run -p 8080:8080 -e GITHUB_TOKEN=your_github_token github-mcp-server-sse
# カスタムポートで実行(環境変数でポートを指定)
docker run -p 3000:3000 -e GITHUB_TOKEN=your_github_token -e PORT=3000 github-mcp-server-sseツール一覧
| ツール名 | 説明 |
|---|---|
| search_repositories | GitHubリポジトリを検索します |
| create_repository | 新しいGitHubリポジトリを作成します |
| get_file_contents | GitHubリポジトリからファイルの内容を取得します |
| create_or_update_file | GitHubリポジトリにファイルを作成または更新します |
| push_files | 複数のファイルを一度にGitHubリポジトリにプッシュします |
| fork_repository | GitHubリポジトリをフォークします |
| create_pull_request | GitHubリポジトリに新しいPull Requestを作成します |
| get_pull_request | GitHubリポジトリからPull Requestの詳細を取得します |
| create_pull_request_review | Pull Requestにレビューを作成します |
開発
# 依存関係の解決
go mod tidy
# ビルド
go build
# テスト
go test ./...コマンドラインオプション
| オプション | 短縮形 | 説明 | デフォルト値 |
|---|---|---|---|
| --transport | -t | 使用するトランスポートタイプ (stdio または sse) | stdio |
| --port | -p | SSEサーバーのポート番号 | 8080 |
参考
このプロジェクトはMCP-Goライブラリを使用しています。詳細なドキュメントについては、そちらを参照してください。
ライセンス
MIT
Frequently asked questions
What is github-mcp-server-sse?
github-mcp-server-sse is GitHub MCP Server (SSE)
How do I install github-mcp-server-sse?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is github-mcp-server-sse open source?
Yes — it is hosted on GitHub at https://github.com/yamagai/github-mcp-server-sse.
Related MCP tools
MCP server for Grafana Go-based implementation. Trusted by 1700+ developers. Trusted by 1700+ developers. Trusted by 1700+ developers.
Flux Operator is a Kubernetes controller for managing the lifecycle of Flux CD for the Model Context Protocol. Enhance AI assistants with powerful integrations.
MCP server connecting to Kubernetes Go-based implementation.
:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-gra...
MCP Toolbox for Databases is an open source MCP server for databases. Go-based implementation. Trusted by 10900+ developers.
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP