GitHub Actions MCP Server
Trigger workflows, check run status, and manage CI/CD from Claude Desktop
The GitHub Actions MCP server lets Claude and other MCP-compatible agents interact with your GitHub Actions CI/CD pipelines. You can trigger workflow runs, query run history, fetch job logs, and cancel stuck runs — all from a natural-language prompt.
This is particularly useful for agentic coding workflows: after Claude edits your code, it can push a commit and immediately watch the Actions run to verify tests pass.
Prerequisites
- Node.js 18+ — required to run the server via
npx - GitHub Personal Access Token — needs
repoandworkflowscopes - Generate a token at: github.com/settings/tokens/new
Installation & Configuration
Add this block to your claude_desktop_config.json:
{
"mcpServers": {
"github-actions": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_yourTokenHere"
}
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Available Tools (5)
list_workflows
List workflows in a repolist_workflow_runs
Get recent run historyget_workflow_run
Fetch run details & statuscreate_workflow_dispatch
Trigger a workflow runcancel_workflow_run
Cancel an in-progress run
Use Cases
- Ask Claude "did the tests pass on the last push?" — it calls
list_workflow_runsand summarises - Trigger a deployment workflow after code review: "deploy to staging"
- Diagnose failing pipelines: Claude fetches job logs and explains the error
Tips & Gotchas
Tip: Use a fine-grained personal access token scoped to specific repositories rather than a classic token — it limits blast radius if the token leaks.
Gotcha:
create_workflow_dispatch only works for workflows that have a workflow_dispatch trigger defined in their YAML. If the trigger is missing you'll get a 422 error.Tip: The GitHub MCP server also covers Issues, PRs, code search, and file access — you get the full GitHub API through one config entry, not just Actions.
Source & Documentation
GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/github
Protocol: Model Context Protocol (MCP) — modelcontextprotocol.io
MCP Setup Pack — $15
20 ready-to-paste server configs + installer + doctor script
Get the Pack →
20 ready-to-paste server configs + installer + doctor script