Skip to main content

MCP server with GitHub repository and workflow tools

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gfg_github_tools_mcp_server-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gfg_github_tools_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for gfg_github_tools_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 61fb1b045090deb0ff0c9476c49b4d1bef282ad63515365e91c1c5133aa4194c
MD5 8335291353886ae31e6ff45e053cf966
BLAKE2b-256 511b89968bc06c404f26b88237ca5ec3945d5aa426ddcf692bbf1e0d1a1cb2cc

See more details on using hashes here.

File details

Details for the file gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a95f70ba4ef127250ff0c515586713f0a5b753a393f378cbb7811f8b886db5
MD5 d161a622ef0cb3ef7eaa5b752cefa429
BLAKE2b-256 6c06c6a9488cb9db5a5905b1a85ebf63c679f85c2b5ac751c47c0d5a8700cb5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page