XenMCPby Xenaxio

Catalog / Jenkins

Updated:

Connect Jenkins to Claude

In beta

Ask 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

Join the beta and connect Already in? Add it in the console

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.

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