mcp-server-github-actions is an MCP (Model Context Protocol) server focused on GitHub Actions workflow management. It allows AI assistants to directly operate CI/CD processes, including viewing run records, reading logs, re-running failed jobs, canceling builds, and triggering deployments, thereby avoiding switching back and forth between the browser and the editor.
Purpose
The tool is designed to solve the problem that GitHub's official MCP server does not cover Actions. When CI fails, developers usually need to open a browser, find the run record, click to view the logs, and analyze the error. mcp-server-github-actions enables AI assistants to directly answer questions such as "Why did the last CI fail?" or "Re-run the failed jobs," integrating the operations into the development environment.
Main capabilities
- List workflow runs
- Get run details
- Re-run failed jobs
- Cancel an in-progress run
- List build artifacts
- Trigger workflow_dispatch events
- Read log URLs
Usage
This server can be used with any MCP client, including Claude Desktop, Cursor, and VS Code Copilot. Configuration requires providing a GitHub personal access token (PAT) with Actions read and write permissions, and setting the GITHUB_TOKEN environment variable in the MCP client configuration.
Configuration example
- For Cursor: add the server configuration in the MCP settings (such as ~/.cursor/mcp.json or project-level configuration).
- For Claude Desktop: add the configuration in claude_desktop_config.json.
- For VS Code: add the configuration in user settings or .vscode/mcp.json.
Token creation
- Go to GitHub Settings > Developer settings > Personal access tokens.
- Choose a fine-grained token (recommended) or a classic token.
- Fine-grained: select the repository, then enable Actions: Read and Write permissions.
- Classic: enable the repo scope (including Actions).
Agent Plugins installation
This repository is an Agent Plugins 1.0.0 package, containing plugin.json, a portable mcp.json, and a skills/ directory. For Cursor, you can clone the repository and copy or symlink it to ~/.cursor/plugins/local/mcp-server-github-actions, then reload the window. Skills and MCP will appear under Customize > Plugins. Note: Agent Plugins v1 does not provide OAuth, so GITHUB_TOKEN needs to be set in the MCP client configuration. Because the token must remain in an environment variable, no one-click install button is provided.
Applicable scenarios
- Developers want to monitor and operate CI/CD processes without leaving the editor.
- Need to quickly diagnose the cause of CI failures and re-run jobs.
- Automatically trigger deployments or cancel builds.
- Integrate with AI assistants to query workflow status via natural language.
Limitations
- Requires a GitHub personal access token, and the token must have Actions read and write permissions.
- OAuth is not supported; the token must be manually configured in an environment variable.
- No one-click installation is provided because the token cannot be securely embedded in an install link.
- The functional scope is limited to GitHub Actions and does not cover repositories, issues, or pull requests (these are handled by the official MCP server).
Example prompts
- "List the last 5 workflow runs of ofershap/mcp-server-docker"
- "Show the workflows in the microsoft/vscode repository"
- "Get the details of run 12345 in owner/repo"
- "Re-run the failed jobs of run 67890 in my-org/my-repo"
- "Cancel the currently running workflow run 11111"
- "List the build artifacts of the latest run in owner/repo"
- "Trigger the deploy.yml workflow on the staging branch of my-org/my-app"
- "What is the status of this project's most recent CI run?"
This tool is licensed under the MIT License and developed by Ofer Shapira。