Woodpecker CI MCP Server
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., "@Woodpecker CI MCP Serverwhy did pipeline #42 fail for owner/project?"
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.
Woodpecker CI MCP Server
A Model Context Protocol (MCP) server that connects AI assistants to Woodpecker CI. Debug pipeline failures, analyze build logs, troubleshoot CI/CD configurations, and and manage your whole Woodpecker instance (pipelines, repositories, secrets, registries, cron jobs, agents, forges, users, organizations and the queue) with AI assistance.
MCP Client Setup
Add to your MCP client configuration:
Standalone Binary
{
"woodpecker-ci": {
"command": "woodpecker-mcp",
"env": {
"WOODPECKER_TOKEN": "your-token-here",
"WOODPECKER_URL": "https://your-woodpecker-instance.com"
}
}
}Docker
{
"woodpecker-ci": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "WOODPECKER_TOKEN",
"-e", "WOODPECKER_URL",
"ghcr.io/j04n-f/woodpecker-mcp"
],
"env": {
"WOODPECKER_TOKEN": "your-token-here",
"WOODPECKER_URL": "https://your-woodpecker-instance.com"
}
}
}Related MCP server: GoCD MCP Server
Quick Start
Install dependencies
bun installRun the server
# Development with inspector bun run devSet environment variables using Inspector
WOODPECKER_URL="https://your-woodpecker-instance.com" WOODPECKER_TOKEN="your-personal-access-token"Start development environment
# Start Gitea + Woodpecker CI for testing ./scripts/setup-environment.sh # Access services: # - Gitea: http://localhost:3000 (woodpecker/woodpecker123) # - Woodpecker: http://localhost:8000
Configuration
Getting Your Woodpecker Token
Go to your Woodpecker CI instance
Click your profile icon → "CLI & API"
Copy the personal access token
Set it as
WOODPECKER_TOKEN
API Reference
The server covers the Woodpecker CI REST API. Tools marked 🔒 require a Woodpecker admin token, and tools marked ⚠️ are destructive (MCP clients will usually ask before running them).
Secrets, registries and agents take a scope parameter, so one tool works at every level: repo (with repoId), org (with orgId), or global (agents only support org and global).
Repositories
Tool | Description | Parameters |
| Find a repository by full name |
|
| List all repositories on the server | Optional: |
| Get repository details |
|
| Your pull/push/admin access to a repository |
|
| List branches |
|
| List open pull requests |
|
| Activate a repository |
|
| Update repository settings (only provided fields change) |
|
| Repair a repository's webhook |
|
| Repair webhooks of all repositories | – |
| Make yourself the repository owner |
|
| Move the repository to another forge repo |
|
| Deactivate, or fully remove, a repository |
|
Pipelines and logs
Tool | Description | Parameters |
| List repository pipelines |
|
| Get detailed pipeline info |
|
| View pipeline configuration |
|
| Pipeline metadata, including previous pipeline info |
|
| Trigger a manual pipeline |
|
| Restart a pipeline |
|
| Cancel a running pipeline |
|
| Approve a pipeline awaiting approval |
|
| Decline a pipeline awaiting approval |
|
| Delete a pipeline |
|
| Get logs of a step |
|
| Delete logs of a step |
|
| Delete all logs of a pipeline |
|
Secrets, registries and cron jobs
Tool | Description | Parameters |
| List or inspect secrets (values are never returned) |
|
| Create or update a secret |
|
| Delete a secret |
|
| List or inspect registry credentials (passwords are never returned) |
|
| Create or update registry credentials |
|
| Delete registry credentials |
|
| List or inspect cron jobs |
|
| Create or update a cron job |
|
| Run a cron job now |
|
| Delete a cron job |
|
Users and organizations
Tool | Description | Parameters |
| The authenticated user | – |
| Your recent pipelines across repositories | Optional |
| Repositories you can access, with their last pipeline | Optional |
| Re-sync your repositories and permissions from the forge | – |
| List or inspect users |
|
| Create or update a user |
|
| Delete a user |
|
| List organizations | Optional pagination |
| Get an organization by ID or full name |
|
| Your membership/admin status in an organization |
|
| Delete an organization |
|
Agents, forges and server
Tool | Description | Parameters |
| List agents |
|
| Inspect an agent or its running tasks |
|
| Register an agent (returns its one-time token) |
|
| Update an agent (only provided fields change) |
|
| Delete an agent |
|
| List or inspect configured forges |
|
| Add or update a forge |
|
| Delete a forge |
|
| Queue stats with pending, waiting and running tasks | – |
| Pending and running pipelines across all repositories | – |
| Pause or resume the pipeline queue | – |
| Server version and health | – |
| Read or change the server log level |
|
| Public key used to sign pipeline payloads | – |
Not exposed
A few endpoints are intentionally left out because they don't fit a request/response tool or would be unsafe: the SSE streams (/stream/*), pprof debug endpoints, the inbound forge webhook (/hook), badge images, /queue/norunningpipelines (blocks until something runs), and /user/token (it returns or resets the token this server authenticates with).
AI Prompts
Prompt | Description |
| Systematic analysis of pipeline failures |
Development
Available Commands
# Development
bun run dev # Start with inspector
bun run build # Build production binary
# Code Quality
bun run lint # Check code style
bun run lint:fix # Auto-fix issuesLocal Testing Environment
The included Docker Compose setup provides:
Gitea: Git forge with webhooks
Woodpecker CI: Complete CI/CD environment
Test repository: Sample project with pipeline configuration
Perfect for testing MCP integration without external dependencies.
Examples
Debug a Failed Pipeline
AI: Can you check why pipeline #42 failed for repository owner/project?Analyze Build Performance
AI: Show me the recent pipeline performance for my main repository and identify any bottlenecks.Configuration Review
AI: Review the pipeline configuration for repository owner/project and suggest improvements.Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureFollow the coding standards:
bun run lintCommit changes:
git commit -m 'feat: add amazing feature'Submit a Pull Request
License
MIT License - see LICENSE for details.
Ready to supercharge your Woodpecker CI workflows with AI assistance! 🚀🤖
This server cannot be deployed
Maintenance
Related MCP Connectors
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Inspect and control your Northflank projects, services, jobs, and builds from your AI assistant.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
- mcpOAuthcom.vibgrate
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables automated analysis of Woodpecker CI pipeline failures with intelligent error detection and fix suggestions. Supports both direct pipeline analysis and IDE-integrated git-context analysis using repository names, PR numbers, or branch information.6 npm3ISC
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query and manage GoCD pipelines, stages, and jobs through the Model Context Protocol. It allows users to trigger builds, analyze failures, and access build logs or artifacts using the GoCD REST API.02MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Jenkins CI/CD servers, including checking build status, triggering builds, and retrieving build logs.8MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to manage and operate Venelx CI/CD pipelines through the Venelx REST API, including listing projects, triggering builds, checking status, tailing logs, accessing artifacts and workers, and diagnosing signing or GitHub access.911 npmMIT