npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jenkins-server-mcp

v1.0.2

Published

Jenkins MCP server — manage jobs, builds, logs and CI/CD pipelines via AI

Readme

jenkins-server-mcp

Jenkins MCP 服务器 — 让 AI 编程助手直接操作 Jenkins CI/CD 流水线。

安装

npm install -g jenkins-server-mcp

或通过 npx 直接使用:

npx -y jenkins-server-mcp

前置条件

在 Jenkins 上生成 API Token:

  1. 登录 Jenkins → 右上角用户名 → Configure(设置)
  2. 找到 API TokenAdd new Token → 生成并复制

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | JENKINS_URL | 是 | Jenkins 地址,如 http://jenkins.sx1211.cn | | JENKINS_USER | 是 | Jenkins 用户名 | | JENKINS_API_TOKEN | 是 | Jenkins API Token |

也兼容 MCP_JENKINS_URL / MCP_JENKINS_USER / MCP_JENKINS_API_TOKEN

配置

Cursor

~/.cursor/mcp.json 中添加:

{
  "mcpServers": {
    "jenkins": {
      "command": "npx",
      "args": ["-y", "jenkins-server-mcp"],
      "env": {
        "JENKINS_URL": "http://jenkins.sx1211.cn",
        "JENKINS_USER": "你的用户名",
        "JENKINS_API_TOKEN": "你的API Token"
      }
    }
  }
}

Claude Code

claude mcp add --transport stdio --scope user jenkins \
  --env JENKINS_URL=http://jenkins.sx1211.cn \
  --env JENKINS_USER=你的用户名 \
  --env JENKINS_API_TOKEN=你的Token \
  -- npx -y jenkins-server-mcp

可用工具

| 工具 | 说明 | |------|------| | jenkins_get_server_info | 获取 Jenkins 服务器信息 | | jenkins_list_jobs | 列出任务(支持文件夹层级) | | jenkins_get_job | 获取任务详情 | | jenkins_list_builds | 列出最近构建 | | jenkins_get_build | 获取单次构建详情 | | jenkins_get_build_log | 获取构建控制台日志 | | jenkins_trigger_build | 触发构建(支持参数) | | jenkins_stop_build | 停止运行中的构建 | | jenkins_get_queue | 查看构建队列 | | jenkins_cancel_queue_item | 取消队列任务 | | jenkins_list_nodes | 列出 Jenkins 节点 | | jenkins_search_jobs | 按关键词搜索任务 |

任务路径说明

jobPath 使用 / 分隔文件夹层级,例如:

  • 根目录任务:web/home
  • 中文任务名:云朵用户线索数据推送系统
  • 嵌套文件夹:folder/subfolder/jobname

本地开发

cd jenkins-server-mcp
npm install
JENKINS_URL=http://jenkins.sx1211.cn JENKINS_USER=xxx JENKINS_API_TOKEN=xxx node index.js

测试

npm test

License

MIT