Skip to content
← All MCP servers

Is the Jenkins MCP server safe? What it can reach

What the Jenkins MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

The Jenkins MCP Server plugin, hosted under jenkinsci, turns a Jenkins controller into an MCP server. Clients sign in with a Jenkins user API token over HTTP Basic. It can start, replay, rebuild and cancel builds and create pipeline jobs with that user’s permissions. The plugin has had two permission-check advisories, so keep it updated.

Who maintains it

ImplementationKindStatus
jenkinsci/mcp-server-plugin (Jenkins plugin, mcp-server)Officialactive

It runs as a hosted remote server.

How it signs in

Send a Jenkins user API token with HTTP Basic authentication. The tools run with that Jenkins user’s permissions.

Scope or permissionAccess
Overall/SystemRead (for getSystemLog and getLogRecorders)read

What its tools can do

KindTools
ReadgetJob, getJobs, getQueueItem, getBuild, getBuildLog, searchBuildLog, getReplayScripts, getTestResults, getFlakyFailures, getJobScm, getBuildScm, getBuildChangeSets, findJobsWithScmUrl, whoAmI, getStatus, getSystemLog, getLogRecorders
WritecreatePipeline, updateBuild
Can’t be undonetriggerBuild, rebuildBuild, replayBuild, cancelBuild

The docs list no tool that deletes jobs or builds. triggerBuild, rebuildBuild and replayBuild run pipelines, which can deploy. replayBuild runs a pipeline with a modified script. The docs name required permissions only for the two system-log tools.

Built-in limits

OptionWhat it does
Jenkins permissionsCreate a dedicated user and give it only the Jenkins permissions it needs; the docs say standard Jenkins permissions apply.
allowUnauthenticatedMcpSystem property, default false. Setting it to true weakens CSRF protection; leave it false on any controller browsers or anonymous users can reach.
requireOriginMatch / requireOriginHeaderOrigin checks. requireOriginMatch is on by default; requireOriginHeader=true also rejects requests with no Origin header.
disableMcpSse / disableMcpStreamable / disableMcpStatelessSystem properties that turn off each transport endpoint.

The risks

  • A build log or commit message the agent reads could carry an injected instruction to call triggerBuild, rebuildBuild or replayBuild, which can run a deploy pipeline with your credentials.
  • replayBuild runs a modified pipeline script, and getReplayScripts reads pipeline source; an earlier advisory covered a missing permission check on replay scripts.
  • Build logs can contain secrets that leak through printed environment variables, and getBuildLog and searchBuildLog return them to the model.
  • The API token carries one Jenkins user’s rights across every job that user can see, and the plugin has had permission-check advisories (SECURITY-3622, SECURITY-3759).

Limit it in Claude Code

Claude Code names MCP tools mcp__jenkins__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__jenkins__replayBuild",
      "mcp__jenkins__rebuildBuild"
    ],
    "ask": [
      "mcp__jenkins__triggerBuild",
      "mcp__jenkins__cancelBuild",
      "mcp__jenkins__createPipeline",
      "mcp__jenkins__updateBuild"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml under [mcp_servers.<name>]. Use enabled_tools to keep only the tools you need, or disabled_tools to remove the risky ones.

Checklist

  • Update the plugin to the latest version first.
  • Use a dedicated Jenkins user with read-only and limited build permissions.
  • Leave allowUnauthenticatedMcp false.
  • Deny replayBuild and rebuildBuild; ask before triggerBuild.
  • Keep secrets out of build logs.

Checked against the vendor documentation on November 25, 2026. Jenkins plugin site: MCP Server · CloudBees docs: MCP Server plugin · jenkinsci/mcp-server-plugin README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing