Skip to main content
Glama
GitHub Actions MCP Server

GitHub Actions MCP Server

by lockround

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-github-repo

Parse a GitHub URL or owner/repo string into {owner, repo}

list-workflows

List all workflows in a repo

get-workflow

Get a specific workflow by ID or filename

trigger-workflow

Trigger a workflow_dispatch event with inputs

get-workflow-run

Get latest or specific workflow run status

cancel-workflow-run

Cancel a running workflow

trigger-repository-dispatch

Trigger a repository_dispatch event

Related MCP server: github-mcp-server

Requirements

  • Node.js >= 18

  • A GitHub token with repo scope (workflow scope for triggering workflows):

    • GITHUB_TOKEN env var

Build

npm install
npm run build

Run

stdio (default, for MCP hosts that spawn a child process)

GITHUB_TOKEN=xxx node dist/index.js

HTTP (Streamable HTTP transport)

GITHUB_TOKEN=xxx node dist/index.js --transport http --port 3000
# → http://127.0.0.1:3000/mcp

Via npx (after publishing)

GITHUB_TOKEN=xxx npx github-actions-mcp --transport http --port 3000

Usage 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 Standard fetch export: rejects GET, proxies the POST body to the MCP handler)

  • vercel.json — Node 20 runtime, maxDuration: 30

  • .env.example — lists required GITHUB_TOKEN environment variable

Steps

  1. Set the GITHUB_TOKEN environment variable in the Vercel project settings (or via vercel env add GITHUB_TOKEN).

  2. Deploy:

    vercel --prod
  3. The 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/mcp

Test with MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

Project 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 tool

Available Tools

7 tools
cancel-workflow-runA
Destructive

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

    A3.6/5.0

    Scored across 7 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers