Catalog / Jenkins
Updated:
Connect Jenkins to Claude
In betaAsk Claude why last night’s build went red, what the log says and which jobs have been failing for a week – straight from your Jenkins.
Your address for Claudehttps://jenkins-acme.xenmcp.com/mcp
Jenkins has an official MCP Server plugin (MIT): with it, Jenkins itself is an MCP server at /mcp-server/mcp. It signs in with a Jenkins user and their API token – but Claude in the app and ChatGPT cannot send such a key for each person.
That is what XenMCP’s OAuth bridge is for: you enter the address, user and token once, and everyone on the team signs in to XenMCP as themselves. The token stays encrypted with us, access can be revoked per person, and every call is logged. No sandbox is needed – XenMCP only forwards.
What you can ask Claude
- Which jobs have been red since yesterday? Summarise the error from each log.
- Search the last build of “backend-deploy” for “OutOfMemoryError” and show the lines before it.
- How long have the “frontend” builds taken lately, and which was the slowest?
- Rerun the last failed build of “nightly-tests”.
Typical tools
getJobs / getJob / getBuild- Jobs, their state, and builds with result, duration and cause
getBuildLog / searchBuildLog- Read the console log page by page and search it for text or patterns
getQueueItem / getStatus / whoAmI- Queue, Jenkins status and the signed-in user
getLogRecorders / getSystemLog- Jenkins system log (administrators only)
triggerBuild / rebuildBuild / cancelBuild / updateBuild- Start, rerun and cancel builds, change descriptions – only if the Jenkins user may
getReplayScripts / replayBuild- See pipeline scripts and run them again with changes – only with the Replay permission; better not give it to the AI
What you need to connect
- Jenkins with HTTPS and the MCP Server plugin (Manage Jenkins → Plugins → Available plugins → “MCP Server”)
- The Jenkins URL set in Manage Jenkins → System – otherwise several tools fail with “Root URL isn’t configured”
- A Jenkins user of its own for the AI and its API token (user → Security → Add new API token)
Security
- Jenkins decides what the AI may do: with the Matrix Authorization plugin give the user only read access (Overall/Read, Job/Read) – then it cannot start builds. It should never have Replay or the script console: those run arbitrary code.
- XenMCP forwards calls unchanged and does not filter tools; “read only” here means a Jenkins user without build permissions.
- The API token is stored encrypted (AES-256-GCM) at XenMCP, not with everyone on the team. It can be revoked in Jenkins at any time, and single people’s access in XenMCP.
- XenMCP always connects from the same IP address – you can allow it in the firewall in front of Jenkins.
Built on
We use the open server Jenkins MCP Server plugin (MIT), build the image ourselves from a pinned version and review the tool descriptions before release.
Frequently asked questions
Do I need XenMCP if Jenkins already has an MCP server?
Not for Claude Code or Cursor alone: there you enter the address and token directly. XenMCP is worth it when Claude in the app or ChatGPT should reach it, or several people with their own sign-in, revocation and a log.
How do I add Jenkins in XenMCP?
In the panel: Add a server → Your own server. Address https://jenkins.example.com/mcp-server/mcp, key type “User and password (Basic)”, the API token as the password. “Check connection” lists the tools.
Does it work without the plugin?
Not yet. We plan an own read-only server over Jenkins’s REST API when enough teams need it – tell us on Discord.
Guides
- Connect an MCP server to Claude – web, desktop, mobile and developer toolsConnect an MCP server to Claude – as a connector on the web and your phone, locally via claude_desktop_config.json, and with claude mcp add in Claude Code.
- Connect an MCP server to ChatGPT – step by stepHow to add a remote MCP server to ChatGPT as a custom plugin, sign in with OAuth and use its tools in a chat – and why API-key servers need a bridge.
- Using an MCP server with an API key in Claude – four ways comparedYour MCP server wants an API key in a header, but Claude is built around OAuth? Here are four ways to connect them – from request headers to an OAuth bridge.
- What is MCP? The Model Context Protocol explainedMCP connects AI assistants such as Claude or ChatGPT to your data and tools. How the protocol works, what the risks are and how to keep them small.
More servers
-
Docker
In beta
Ask Claude why a container restarted, what is in its logs and how much memory it uses – without SSH and without
docker logs. - Grafana In beta Ask about the logs, metrics and dashboards of your own Grafana in plain language – from Claude on the web, on your phone or in your IDE. XenMCP runs the official Grafana MCP server for you in Germany.
- Elasticsearch In beta Search the logs and data in your self-hosted Elasticsearch in plain language – from Claude on the web, on your phone or in your IDE.
Connect Jenkins to Claude?
Sign up and confirm your email. Servers marked “In beta” you can connect right after your invitation; for planned ones your interest decides the order.
Join the beta