GitHub Actions MCP Server
Allows managing GitHub Actions workflows in repositories, including listing workflows, retrieving workflow details, triggering workflow_dispatch events, checking and canceling workflow runs, and triggering repository_dispatch events.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Actions MCP Server list all workflows in octocat/hello-world"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub Actions MCP Server
MCP server for managing GitHub Actions workflows. Supports both stdio (default) and HTTP (Streamable HTTP) transports.
Features
7 tools:
Tool | Description |
| Parse a GitHub URL or |
| List all workflows in a repo |
| Get a specific workflow by ID or filename |
| Trigger a |
| Get latest or specific workflow run status |
| Cancel a running workflow |
| Trigger a |
Related MCP server: github-mcp-server
Requirements
Node.js >= 18
A GitHub token with
reposcope (workflowscope for triggering workflows):GITHUB_TOKENenv var
Build
npm install
npm run buildRun
stdio (default, for MCP hosts that spawn a child process)
GITHUB_TOKEN=xxx node dist/index.jsHTTP (Streamable HTTP transport)
GITHUB_TOKEN=xxx node dist/index.js --transport http --port 3000
# → http://127.0.0.1:3000/mcpVia npx (after publishing)
GITHUB_TOKEN=xxx npx github-actions-mcp --transport http --port 3000Usage with opencode
Add to opencode.json:
{
"mcp": {
"github-actions": {
"type": "local",
"command": ["node", "/path/to/dist/index.js"],
"environment": { "GITHUB_TOKEN": "{env:GITHUB_TOKEN}" }
}
}
}Or run over HTTP:
{
"mcp": {
"github-actions": {
"type": "remote",
"url": "http://127.0.0.1:3000/mcp"
}
}
}Deploy on Vercel
The server can be deployed as a Vercel Node.js function that exposes the HTTP (Streamable HTTP) transport at https://<your-app>.vercel.app/api/mcp.
Files
api/mcp.ts— Vercel function adapter (Web Standardfetchexport: rejects GET, proxies the POST body to the MCP handler)vercel.json— Node 20 runtime,maxDuration: 30.env.example— lists requiredGITHUB_TOKENenvironment variable
Steps
Set the
GITHUB_TOKENenvironment variable in the Vercel project settings (or viavercel env add GITHUB_TOKEN).Deploy:
vercel --prodThe MCP endpoint is
https://<your-app>.vercel.app/api/mcp.
Use with an MCP host
{
"mcpServers": {
"github-actions": {
"url": "https://<your-app>.vercel.app/api/mcp"
}
}
}Run locally with Vercel CLI
vercel dev
# → http://localhost:3000/api/mcpTest with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsProject Structure
src/
├── index.ts # Entry point — transport selection (stdio|http)
├── server.ts # McpServer factory, registers all tools
├── github.ts # GitHub REST API client
└── tools/ # Zod input schemas per toolAvailable Tools
7 toolscancel-workflow-runADestructive
Cancel a running GitHub Actions workflow.
Inputs: repo (required), owner (required), run_id (required).
get-workflowC
Get details of a specific GitHub Actions workflow by ID or filename.
Inputs: repo (required), owner (required), workflow_id (required).
get-workflow-runB
Get the latest or a specific GitHub Actions workflow run status.
Inputs: repo (required), owner (required), run_id, status, +1 more.
list-workflowsA
List all GitHub Actions workflows for a repository.
Inputs: repo (required), owner (required), page, per_page.
parse-github-repoA
Parse a GitHub URL or "owner/repo" string into structured owner and repo fields.
Inputs: url_or_repo (required).
trigger-repository-dispatchC
Trigger a repository_dispatch event to start a workflow.
Inputs: repo (required), owner (required), event_type (required), client_payload.
trigger-workflowB
Trigger a GitHub Actions workflow via workflow_dispatch event.
Inputs: ref (required), repo (required), owner (required), workflow_id (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct resources (workflow definitions, workflow runs, repo parsing). However, trigger-workflow and trigger-repository-dispatch can both start workflows, and get-workflow vs get-workflow-run could be confused without reading descriptions carefully.
All tool names follow a consistent lower-case hyphenated verb-object pattern, such as list-workflows, trigger-workflow, and cancel-workflow-run. There is no mixing of naming conventions or vague verbs.
Seven tools is a well-scoped size for a GitHub Actions-focused server. Each tool serves a distinct operational purpose without unnecessary bloat or redundancy.
The server covers core workflow discovery, triggering, run status, and cancellation. Missing operations like listing all workflow runs, re-running workflows, or fetching logs create minor gaps, but the main lifecycle is reasonably represented.
Related MCP Connectors
Manage repositories, users, releases, and automate GitHub workflows
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables managing GitHub repositories, files, and user information through MCP, with support for creating, updating, and deleting repository contents, as well as fetching user profiles.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.-
- FlicenseNot gradedqualityCmaintenanceEnables users to read and manage GitHub repositories through MCP, with destructive operations gated behind explicit confirmation and dry-run previews.1-
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible AI clients to manage GitHub repositories and issues and trigger repository dispatch events via tools and a REST API.MIT