Skip to main content
Glama
RikiGomes

woodpecker-mcp

by RikiGomes

woodpecker-mcp

CI

MCP (Model Context Protocol) server for Woodpecker CI. Gives AI agents and MCP clients read-only visibility into pipeline status and logs across multiple self-hosted Woodpecker instances — so a code reviewer (human or agent) can check whether CI is green and pull the failing step's output without leaving the conversation.

Built against the Woodpecker v3 REST API (verified on v3.16.0). No write operations: the server never restarts, approves, or cancels pipelines.

Tools

Tool

Purpose

list_instances

List configured instances; check: true verifies connectivity + token per instance

list_repos

Repositories the token can access on an instance

list_pipelines

Recent pipelines for a repo, filterable by branch / event / status

get_pipeline

One pipeline with workflows, steps, exit codes, and failed_step_ids

get_step_logs

Log output of a step (tailed, default last 100 lines)

Repos are addressed as owner/name or by numeric Woodpecker repo id. get_pipeline accepts number: "latest" (optionally with branch).

Related MCP server: woodpecker-mcp

Configuration

Instances are configured via environment variables — one URL/token pair per instance:

# Single instance (named "default"). WOODPECKER_SERVER (the official CLI var) also works.
WOODPECKER_URL=https://ci.example.com
WOODPECKER_TOKEN=<personal access token>

# Or one pair per instance — the name becomes the `instance` argument on every tool:
WOODPECKER_PROD_URL=https://ci.example.com
WOODPECKER_PROD_TOKEN=...
WOODPECKER_STAGING_URL=https://ci.staging.example
WOODPECKER_STAGING_TOKEN=...

Tokens come from <server>/user/cli-and-api on each Woodpecker instance.

The server also loads a .env.woodpecker file from its working directory if present (MCP clients launch stdio servers with the project as working directory). Real environment variables take precedence over file values.

Instances with self-signed certificates: point Node at your CA with NODE_EXTRA_CA_CERTS=/path/to/ca.pem.

Usage with Claude Code

Register in a project's .mcp.json (or claude mcp add):

{
  "mcpServers": {
    "woodpecker": {
      "command": "npx",
      "args": ["-y", "github:RikiGomes/woodpecker-mcp"]
    }
  }
}

Alternatively, clone it once and point at the local build:

{
  "mcpServers": {
    "woodpecker": {
      "command": "node",
      "args": ["/path/to/woodpecker-mcp/dist/index.js"]
    }
  }
}

(after npm install && npm run build in the clone).

Development

Node >= 22.18 runs the TypeScript sources directly (type stripping):

npm install
npm run dev     # run the server from src/
npm run check   # typecheck
npm test        # vitest
npm run build   # emit dist/

Everything is plain ESM; relative imports use explicit .ts extensions and the build rewrites them to .js.

Testing with the MCP Inspector

The MCP Inspector is the quickest way to poke at the tools by hand:

npm run build
npx @modelcontextprotocol/inspector node dist/index.js -e WOODPECKER_URL=https://ci.example.com -e WOODPECKER_TOKEN=<token>

The Inspector does not pass your shell environment to the server it launches. Prefixing the command (WOODPECKER_URL=… npx @modelcontextprotocol/inspector …) or exporting beforehand sets the variable on the Inspector, not on this server — which then starts with no instances configured. Use one of:

  • the -e KEY=VALUE flags shown above — note they go after node dist/index.js, not before;

  • the Environment Variables fields in the Inspector's connection pane (then Connect / Restart);

  • a .env.woodpecker file in the directory you launch from (the name is exact — a plain .env is not read).

Scripted checks work too, via the Inspector's CLI mode:

npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list
npx @modelcontextprotocol/inspector --cli node dist/index.js --method tools/call --tool-name list_instances

Design notes

  • Read-only by contract. Intended for reviewer agents; there is deliberately no restart/approve/cancel surface.

  • Log tailing. Woodpecker returns a step's entire stored log in one response; get_step_logs tails (default 100 lines, max 2000) to protect the caller's context window. Exit-code entries are labelled [exit code].

  • Slug resolution. owner/name is resolved via /api/repos/lookup/… once and cached per process.

  • Sub-path hosting. Instance base URLs may include a sub-path (WOODPECKER_ROOT_PATH installs).

License

MIT — see LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    MCP server that connects AI assistants to Woodpecker CI for debugging pipeline failures, analyzing build logs, and troubleshooting CI/CD configurations.
    Last updated
    12
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Read-only MCP server for querying PostgreSQL, MySQL, and SQLite from AI agents — multi-database, safe by default.
    Last updated
    4
    18
    1
    ISC

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RikiGomes/woodpecker-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server