Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 96 Actions

Jenkins MCP Server
for AI Agents

Connect your AI agent to StackOne's Jenkins MCP server and give it 96 MCP tools out of the box. Auth, tool execution, and security all managed.

Jenkins logo
Jenkins MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

96 Agent Actions

Agents can read, write, delete and run operations in Jenkins. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Jenkins MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Jenkins tool response scanned for prompt injection in milliseconds, with 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Jenkins call.

Tools Discovery →

What is the Jenkins MCP Server?

A Jenkins MCP server lets AI agents read and write Jenkins data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Jenkins MCP server ships with 96 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Jenkins MCP Tools

Every StackOne action for Jenkins, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.

Builds

  • List Builds

    List the builds of a job.

  • Get Build

    Fetch full detail of a single build.

  • Delete Build

    Permanently delete a build record.

Credentials

  • Create Credentials

    Create a credential in a domain from an XML body.

  • Get Credential

    Get the JSON representation of a single credential (metadata, not secrets).

  • List Credentials

    List credentials in a domain of a credentials store.

  • Update Credential

    Replace the XML configuration of an existing credential.

  • Delete Credential

    Permanently remove a stored credential from a Jenkins credentials store and domain.

Domains

  • Create Domain

    Create a credentials domain in a store from a domain XML document.

  • Delete Domain

    Permanently remove a credentials domain and every credential stored in it.

Domain Configs

  • Get Domain Config

    Read the XML definition of a credentials domain, including its name, description and specifications.

  • Update Domain Config

    Replace the XML definition of a credentials domain with a new document.

Unified Roles

  • List Unified Roles

    List unified roles in Jenkins.

  • Get Unified Role

    Get a unified Jenkins role by ID.

Unified Users

  • List Unified Users

    List unified users in Jenkins.

  • Get Unified User

    Get a unified Jenkins user by ID.

Jobs

  • Create Job

    Create a job from a raw XML config.

  • Copy Job

    Copy an existing job within the same folder.

  • List Jobs

    List top-level jobs and folders.

  • Get Job

    Get one job's details (builds, health, nextBuildNumber).

  • Delete Job

    Permanently delete a job.

Job Configs

  • Get Job Config

    Fetch the job config.xml.

  • Update Job Config

    Replace a job config.xml.

Nodes

  • Create Node

    Create a permanent (DumbSlave) agent via doCreateItem.

  • List Nodes

    List all nodes (agents and built-in) with executor counts.

  • Get Node

    Get a single node's details (executors, labels, offline state).

  • Delete Node

    Permanently delete a node.

Node Configs

  • Get Node Config

    Return a node's config.xml.

  • Update Node Config

    Replace a node's config.xml.

Queue Items

  • List Queue Items

    List all items waiting in the Jenkins build queue.

  • Get Queue Item

    Fetch one queue item by its queue id.

Roles

  • Add Role

    Create (or overwrite) a role of a given type.

  • Get Role

    Get one role permissions, pattern, assigned SIDs and template.

  • Remove Roles

    Delete one or more roles of a type.

Templates

  • Add Template

    Create a project permission template.

  • Get Template

    Get one project permission template with its permission ids.

  • Remove Templates

    Remove project permission templates.

Users

  • Get User

    Get one Jenkins user by id.

  • Delete User

    Delete a Jenkins user record.

Views

  • Create View

    Create a view from config XML.

  • List Views

    List all views on the controller.

  • Get View

    Get a view with its jobs.

  • Delete View

    Permanently remove a view. The jobs it lists are not affected.

View Configs

  • Get View Config

    Read the config.xml definition of a view, including its job filters and columns.

  • Update View Config

    Replace the config.xml definition of a view with a new XML document.

Other (51)

  • Create Account By Admin

    Create a Jenkins user account as an admin (HudsonPrivateSecurityRealm only).

  • Add Job To View

    Add a job to a list view.

  • Get Build Console Output

    Return the full plain-text console log of a build.

  • Get Build Progressive Text

    Fetch console log text from a byte offset for incremental tailing.

  • Get Build Test Report

    Fetch the aggregated test report of a build.

  • Get Build Stages

    Describe a Pipeline run with its stages.

  • Get Build Environment Variables

    Fetch injected environment variables of a build.

  • Get Pending Input Actions

    List input steps currently waiting on a Pipeline run.

  • Get Credential Config

    Fetch the XML configuration of a credential.

  • List Credential Domains

    List the credential domains in a credentials store.

  • Get Unified Credentials

    Get the current Jenkins connection's unified credentials and identity.

  • Get Current User

    Get the raw identity of the connected Jenkins account.

  • List Plugins

    List installed plugins with version, enabled, hasUpdate, dependencies, url, active, bundled.

  • Get Update Center

    Get Update Center state: sites, available and pending updates, and install jobs.

  • Get All Roles

    List all roles of one role type with their assigned users/groups.

  • Get Role Assignments

    List every SID (user/group) with the roles assigned to it for a role type.

  • Get Matching Jobs

    Preview which items a project role pattern matches.

  • Get Matching Agents

    Preview which agents a slave role pattern matches.

  • Get Load Statistics

    Get executor and queue load time series for the whole controller.

  • Get Server Info

    Get top-level Jenkins controller info.

  • List People

    List people (users) known to Jenkins via the asynchPeople view.

  • Set Next Build Number

    Set next build number (requires Next Build Number plugin).

  • Delete Role Strategy User

    Remove a user from every role of one role type.

  • Delete Role Strategy Group

    Remove a group from every role of one role type.

  • Remove Job From View

    Remove a job from a list view.

  • Stop Build

    Request a graceful abort of a running build.

  • Submit Description

    Set the description text of a build.

  • Toggle Log Keep

    Toggle the keep-this-build-forever flag.

  • Proceed Input

    Approve a pending Pipeline input step that has no parameters.

  • Abort Input

    Reject (abort) a pending Pipeline input step.

  • Enable Job

    Turn a disabled Jenkins job back on so it can be triggered and scheduled again.

  • Disable Job

    Stop a Jenkins job from being built, by triggers or manually, until it is enabled again.

  • Rename Job

    Rename a job within its folder.

  • Build Job

    Trigger a build of a non-parameterized job.

  • Build Job With Parameters

    Trigger a parameterized build.

  • Wipe Out Workspace

    Delete every file in the job workspace on the agents so the next build starts clean.

  • Toggle Offline

    Toggle a node offline/online.

  • Launch Agent

    Relaunch a disconnected agent (Computer.doLaunchSlaveAgent).

  • Change Offline Cause

    Update the reason shown on a node that is already temporarily offline.

  • Install Necessary Plugins

    Install plugins named in a posted XML document.

  • Uninstall Plugin

    Uninstall an installed plugin by short name.

  • Cancel Queue Item

    Remove a pending item from the build queue by id.

  • Assign User Role

    Grant a Role Strategy role to a Jenkins user by adding their user id to it.

  • Assign Group Role

    Assign a group to a role.

  • Unassign User Role

    Remove a user from a role.

  • Unassign Group Role

    Remove a group from a role.

  • Cancel Quiet Down

    Cancel quiet-down mode so Jenkins starts builds again.

  • Quiet Down

    Put Jenkins into quiet-down mode so no new builds start.

  • Restart

    Restart Jenkins immediately without waiting for builds.

  • Safe Restart

    Queue a safe restart: running builds finish first, no new builds start.

  • Validate Jenkinsfile

    Lint a Declarative Jenkinsfile.

Set Up Your Jenkins MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Jenkins in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Check More Developer Tools MCP Servers

Vercel

371+ actions

Linear

222+ actions

Azure DevOps

185+ actions

ElevenLabs

182+ actions

Cursor

164+ actions

GitLab

156+ actions

Postman

153+ actions

Jenkins MCP Server FAQ

Does StackOne have a Jenkins MCP server?
Yes. StackOne offers a managed Jenkins MCP server with 96 pre-built actions, and every action is tested and QA'd by StackOne. Connect it to Claude, Cursor, and any other MCP client, or to any agent framework through the AI Action SDK. It ships with managed agent authentication, prompt injection defense, and tool discovery with server-side execution that preserve your agent's context window and keep reasoning performance.
Jenkins MCP server vs direct API integration: what's the difference?
A Jenkins MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software work, where backend code calls Jenkins. A Jenkins MCP server is for AI agents that discover and call Jenkins at runtime, such as MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI. StackOne provides both.
How does Jenkins authentication work for AI agents?
Jenkins authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK to get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Jenkins account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Jenkins MCP tools vulnerable to prompt injection?
Yes. Jenkins MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content, such as documents, messages, tickets, records, or free-text fields, is a potential vector. StackOne Defender scans every tool response before it enters the agent's context. It runs regex patterns in ~1ms, then a MiniLM classifier in ~4ms. Accuracy is 88.7%, and it runs entirely on CPU.
What is the context bloat of a Jenkins agent and how do I avoid it?
Context bloat happens when Jenkins tool schemas and API responses eat your Jenkins agent's memory, preventing it from reasoning effectively. A single Jenkins query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery reduces it by loading only the tools relevant to each query.
Can I limit which actions my Jenkins agent can access?
Yes. You can limit which actions your Jenkins agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Jenkins MCP server?
Yes. You can create custom agent actions for your Jenkins MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Jenkins's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Jenkins MCP server?
Skip a Jenkins MCP server if your integration is purely software-to-software, because direct Jenkins API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Jenkins actions at runtime.
What AI frameworks and AI clients does the StackOne Jenkins MCP server support?
The StackOne Jenkins MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

Connect AI to every company system and control what it can do in each one, down to the field.