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.
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
{
"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
371+ actions
222+ actions
185+ actions
182+ actions
164+ actions
156+ actions
153+ actions
Platform Resources
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, the security risks they share, and when to use one, both or a hybrid.
12 min
MCP vs API: What Hundreds of Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building hundreds of connectors that serve both, here's when each approach wins.
14 min read
Jenkins MCP Server FAQ
Does StackOne have a Jenkins MCP server?
Jenkins MCP server vs direct API integration: what's the difference?
How does Jenkins authentication work for AI agents?
origin_owner_id.Are Jenkins MCP tools vulnerable to prompt injection?
What is the context bloat of a Jenkins agent and how do I avoid it?
Can I limit which actions my Jenkins agent can access?
Can I create custom agent actions for my Jenkins MCP server?
When should I NOT use a Jenkins MCP server?
What AI frameworks and AI clients does the StackOne Jenkins MCP server support?
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.