MCP server with GitHub repository and workflow tools
Project description
GitHub Tools MCP Server (Python)
This MCP server provides these tools:
github_search_repositoriesgithub_get_workflow_run_detailgithub_get_workflow_run_logs_download_urlgithub_get_workflow_run_attempt_detailgithub_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, defaultfalse)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gfg_github_tools_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: gfg_github_tools_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61fb1b045090deb0ff0c9476c49b4d1bef282ad63515365e91c1c5133aa4194c
|
|
| MD5 |
8335291353886ae31e6ff45e053cf966
|
|
| BLAKE2b-256 |
511b89968bc06c404f26b88237ca5ec3945d5aa426ddcf692bbf1e0d1a1cb2cc
|
File details
Details for the file gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gfg_github_tools_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a95f70ba4ef127250ff0c515586713f0a5b753a393f378cbb7811f8b886db5
|
|
| MD5 |
d161a622ef0cb3ef7eaa5b752cefa429
|
|
| BLAKE2b-256 |
6c06c6a9488cb9db5a5905b1a85ebf63c679f85c2b5ac751c47c0d5a8700cb5d
|