Koichi Okuda/github-actions-mcp-server
Built by Metorial, the integration platform for agentic AI.
Koichi Okuda/github-actions-mcp-server
Server Summary
List workflows
View workflows
Trigger workflows
Cancel workflows
Rerun workflows
Analyze workflow runs
Retrieve job details
Error handling
Type validation
MCP Server for the GitHub Actions API, enabling AI assistants to manage and operate GitHub Actions workflows. Compatible with multiple AI coding assistants including Claude Desktop, Codeium, and Windsurf.
list_workflows
owner
(string): Repository owner (username or organization)repo
(string): Repository namepage
(optional number): Page number for paginationperPage
(optional number): Results per page (max 100)get_workflow
owner
(string): Repository owner (username or organization)repo
(string): Repository nameworkflowId
(string or number): The ID of the workflow or filenameget_workflow_usage
owner
(string): Repository owner (username or organization)repo
(string): Repository nameworkflowId
(string or number): The ID of the workflow or filenamelist_workflow_runs
owner
(string): Repository owner (username or organization)repo
(string): Repository nameworkflowId
(optional string or number): The ID of the workflow or filenameactor
(optional string): Filter by user who triggered the workflowbranch
(optional string): Filter by branchevent
(optional string): Filter by event typestatus
(optional string): Filter by statuscreated
(optional string): Filter by creation date (YYYY-MM-DD)excludePullRequests
(optional boolean): Exclude PR-triggered runscheckSuiteId
(optional number): Filter by check suite IDpage
(optional number): Page number for paginationperPage
(optional number): Results per page (max 100)get_workflow_run
owner
(string): Repository owner (username or organization)repo
(string): Repository namerunId
(number): The ID of the workflow runget_workflow_run_jobs
owner
(string): Repository owner (username or organization)repo
(string): Repository namerunId
(number): The ID of the workflow runfilter
(optional string): Filter jobs by completion status ('latest', 'all')page
(optional number): Page number for paginationperPage
(optional number): Results per page (max 100)trigger_workflow
owner
(string): Repository owner (username or organization)repo
(string): Repository nameworkflowId
(string or number): The ID of the workflow or filenameref
(string): The reference to run the workflow on (branch, tag, or SHA)inputs
(optional object): Input parameters for the workflowcancel_workflow_run
owner
(string): Repository owner (username or organization)repo
(string): Repository namerunId
(number): The ID of the workflow runrerun_workflow
owner
(string): Repository owner (username or organization)repo
(string): Repository namerunId
(number): The ID of the workflow runThis MCP server is compatible with multiple AI coding assistants including Claude Desktop, Codeium, and Windsurf.
First, make sure you have built the project (see Build section below). Then, add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"github-actions": {
"command": "node",
"args": [
"/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": ""
}
}
}
}
Add the following configuration to your Codeium MCP config file (typically at ~/.codeium/windsurf/mcp_config.json
on Unix-based systems or %USERPROFILE%\.codeium\windsurf\mcp_config.json
on Windows):
{
"mcpServers": {
"github-actions": {
"command": "node",
"args": [
"/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": ""
}
}
}
}
Windsurf uses the same configuration format as Codeium. Add the server to your Windsurf MCP configuration as shown above for Codeium.
Clone the repository and build:
git clone https://github.com/ko1ynnky/github-actions-mcp-server.git
cd github-actions-mcp-server
npm install
npm run build
For Windows systems, use the Windows-specific build command:
git clone https://github.com/ko1ynnky/github-actions-mcp-server.git
cd github-actions-mcp-server
npm install
npm run build:win
Alternatively, you can use the included batch file:
run-server.bat [optional-github-token]
This will create the necessary files in the dist
directory that you'll need to run the MCP server.
Prerequisites
Running the Server on Windows
Using the batch file (simplest method):
run-server.bat [optional-github-token]
This will check if the build exists, build if needed, and start the server.
Using npm directly:
npm run start
Setting GitHub Personal Access Token on Windows
For full functionality and to avoid rate limiting, you need to set your GitHub Personal Access Token.
Options:
Pass it as a parameter to the batch file:
run-server.bat your_github_token_here
Set it as an environment variable:
set GITHUB_PERSONAL_ACCESS_TOKEN=your_github_token_here
npm run start
Troubleshooting Windows Issues
If you encounter issues:
Build errors: Make sure TypeScript is installed correctly.
npm install -g typescript
Permission issues: Ensure you're running the commands in a command prompt with appropriate permissions.
Node.js errors: Verify you're using a compatible Node.js version.
node --version
List workflows in a repository:
const result = await listWorkflows({
owner: "your-username",
repo: "your-repository"
});
Trigger a workflow:
const result = await triggerWorkflow({
owner: "your-username",
repo: "your-repository",
workflowId: "ci.yml",
ref: "main",
inputs: {
environment: "production"
}
});
Authentication Errors:
Rate Limiting:
Type Validation Errors:
This MCP server is licensed under the MIT License.