Skip to main content

GitHub Tools MCP Server (Python)

This MCP server provides these tools:

  • github_search_repositories
  • github_get_workflow_run_detail
  • github_get_workflow_run_logs_download_url
  • github_get_workflow_run_attempt_detail
  • github_get_workflow_run_attempt_logs_download_url

Prerequisites

  • Python 3.10+
  • A GitHub token in GITHUB_TOKEN (recommended to avoid rate limits)

Setup

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run

python server.py

The server uses stdio transport by default, which is what MCP clients expect.

Tools

github_search_repositories

Searches repositories using GitHub's repository search endpoint.

Inputs:

  • query (string, required)
  • sort (string, optional: best-match | stars | forks | help-wanted-issues | updated)
  • order (string, optional: asc | desc)
  • per_page (int, optional, 1-100)
  • page (int, optional, >= 1)

github_get_workflow_run_detail

Gets one workflow run detail from GitHub Actions.

Inputs:

  • owner (string, required)
  • repo (string, required)
  • run_id (int, required)

github_get_workflow_run_logs_download_url

Gets a temporary download URL for a workflow run logs archive. This endpoint returns a 302 response and the URL in the Location header.

Inputs:

  • owner (string, required)
  • repo (string, required)
  • run_id (int, required)

github_get_workflow_run_attempt_detail

Gets details for a specific workflow run attempt.

Inputs:

  • owner (string, required)
  • repo (string, required)
  • run_id (int, required)
  • attempt_number (int, required)
  • exclude_pull_requests (bool, optional, default false)

github_get_workflow_run_attempt_logs_download_url

Gets a temporary download URL for a workflow run attempt logs archive. This endpoint returns a 302 response and the URL in the Location header.

Inputs:

  • owner (string, required)
  • repo (string, required)
  • run_id (int, required)
  • attempt_number (int, required)

Release files for gfg-github-tools-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gfg-github-tools-mcp-server 0.1.0
File Size Uploaded
gfg_github_tools_mcp_server-0.1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gfg-github-tools-mcp-server 0.1.0
File Interpreter ABI Platform
gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / gfg_github_tools_mcp_server-0.1.0.tar.gz

Download URL gfg_github_tools_mcp_server-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61fb1b045090deb0ff0c9476c49b4d1bef282ad63515365e91c1c5133aa4194c
BLAKE2b-256 checksum
How to use checksums
511b89968bc06c404f26b88237ca5ec3945d5aa426ddcf692bbf1e0d1a1cb2cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl

Download URL gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6a95f70ba4ef127250ff0c515586713f0a5b753a393f378cbb7811f8b886db5
BLAKE2b-256 checksum
How to use checksums
6c06c6a9488cb9db5a5905b1a85ebf63c679f85c2b5ac751c47c0d5a8700cb5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page