GitHub Actions MCP Server
Manage CI/CD workflows with GitHub Actions through your AI assistant - trigger runs, check status, and debug failures.
GitHub Actions MCP Server
Manage GitHub Actions workflows directly from your AI assistant. The GitHub Actions MCP server enables natural language interaction with your CI/CD pipelines, from inspecting workflow runs to debugging failed jobs and managing secrets.
This server is essential for DevOps engineers managing complex multi-repository CI pipelines, developers debugging failing builds, and platform teams maintaining workflow standards across their organization.
What it Does
- Workflow Management: List and inspect workflows
- Run Control: Trigger workflow runs and monitor progress
- Job Debugging: View logs and diagnose failed jobs
- Artifact Access: Download and inspect build artifacts
- Secret Management: View and update repository secrets
Installation
# Using npx
npx -y @anthropic-ai/mcp-server-github-actions
# Using Docker
docker run -i --rm -e GITHUB_TOKEN mcp/github-actions
Configuration
{
"mcpServers": {
"github-actions": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-github-actions"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}
Available Tools
| Tool | Purpose | Category |
|---|---|---|
list_workflows | List all workflows in a repository | Workflows |
list_runs | List workflow runs with status filtering | Runs |
get_run | Get details of a specific workflow run | Runs |
trigger_run | Trigger a workflow dispatch event | Control |
cancel_run | Cancel a running workflow | Control |
get_logs | Fetch logs for a specific job | Debugging |
list_artifacts | List artifacts from a workflow run | Artifacts |
list_secrets | List repository secrets (names only) | Secrets |
Common Workflows
Debugging a Failed CI Run
- List recent workflow runs and identify the failed one
- Get details of the failed run to see which job failed
- Retrieve the full logs for the failed job
- Ask "Summarize what caused this failure based on the logs"
- Fix the issue and re-run the workflow
Automated Deployment Pipeline
- Trigger a deployment workflow for a specific environment
- Monitor the run progress as it executes
- Check each job's status as it completes
- Review deployment artifacts after successful completion
- Share the run summary with your team
Auditing Workflow Activity
- List all workflows across your repositories
- Query recent runs for each workflow
- Identify workflows with high failure rates
- Review logs of recent failures to find patterns
- Generate a workflow health report
Example Prompts
- "Show me the latest workflow runs for main branch"
- "Why did the CI workflow fail?"
- "Trigger the deployment workflow for staging"
- "Show logs from the test job"
- "List all workflows in this repository"
- "Find all failed workflows in the last week"
Troubleshooting
| Issue | Likely Cause | Solution |
|---|---|---|
| "Workflow not found" | Incorrect repository or workflow name | Verify the workflow filename in .github/workflows/ |
| "Token expired" | GitHub token needs renewal | Generate a new token with appropriate scopes |
| "Permission denied" | Token lacks required scopes | Ensure token has workflow and actions:read scopes |
| "Workflow disabled" | Workflow has been disabled manually | Re-enable the workflow in GitHub UI or via API |
Required Permissions
repo- Full repository accessworkflow- Update GitHub Actions workflowsactions:read- View workflow runs and jobs
Related Articles
PostgreSQL MCP Server
PostgreSQL MCP servers enable AI models to interact with PostgreSQL databases, providing capabilities for structured data operations, SQL queries, transaction management, and advanced data indexing.
Docker MCP Server
Manage Docker containers, images, networks, and volumes through AI assistants using natural language with the Docker MCP Server.
Gmail MCP Server
Gmail MCP server provides AI assistants with the ability to read, search, send, and manage Gmail messages including thread management, label organization, and inbox triage.