ServiceNow MCP Server

io.github.jschuller由 GitHub 账号 jschuller 发布v0.9.3更新于 Oct 30, 2026

ServiceNow MCP server: Table API, CMDB, schema, aggregates, update sets and four Agent Skills.

概览

AI 生成的概览

把助手连接到 ServiceNow 实例,可查询数据表、读取表结构与 CMDB 数据、执行聚合统计并查看更新集。

可以做什么
  • 在任意 ServiceNow 表中查询、创建、更新和删除记录,并执行聚合计数与统计
  • 列出、读取和写入 CMDB 配置项,并查看其关联关系
  • 查看表结构、当前用户、系统属性,以及某表或字段被哪些地方引用
  • 列出、读取和创建更新集,设置当前更新集并查看其变更
  • 读取随包提供的资源(表结构、实例信息、CMDB 类层级),以及四套引导式技能工作流
适用场景
适合需要处理 ServiceNow ITSM 或 CMDB 数据、希望助手直接回答记录、字段、角色、数据质量或待发布更新集相关问题的场景,免去在平台上逐页点击。适用于开发者和管理员,可在开发者实例或配有集成用户的企业实例上使用。
运行要求
以 Python 包形式在本地运行,通过 uvx 启动,需要先安装 uv。需配置 SERVICENOW_INSTANCE_URL 及凭据:基本认证用 SERVICENOW_USERNAME 与 SERVICENOW_PASSWORD,OAuth 用 SERVICENOW_CLIENT_ID 与 SERVICENOW_CLIENT_SECRET,或使用 SERVICENOW_API_KEY。需要能访问该实例的网络,可见范围由该用户在 ServiceNow 中的角色决定。
安装前请注意
客户端配置中会保存 ServiceNow 凭据(SERVICENOW_PASSWORD、SERVICENOW_CLIENT_SECRET、SERVICENOW_API_KEY),请勿写入共享文件。写入类工具会创建、更新和删除记录、配置项与更新集;在不会确认写入的客户端上应启用 SERVICENOW_READ_ONLY 或使用只读身份。SERVICENOW_ALLOW_JS_QUERIES 允许在查询中使用任意 javascript。更新集与系统属性需要管理员角色。数据只发送到你的实例。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ServiceNow MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[ServiceNow MCP Server]

ServiceNow MCP Server

[PyPI] [Downloads] [CI] [License]

Connect Claude Code, GitHub Copilot, Codex, opencode, Antigravity or any MCP client to ServiceNow:
query any table, read schema and CMDB, review update sets. Free, MIT, works on a free developer instance.


uvx mcp-server-servicenow gives an AI assistant the ServiceNow developer data plane: the Table API, the data dictionary, Stats API aggregates, the CMDB and update sets, on any release from Tokyo up. It runs alongside ServiceNow's own MCP servers (how they differ).

What you can ask

  • "Which fields does cmdb_ci_server have, including inherited ones?"
  • "Who holds admin, and which roles are granted directly instead of through a group?"
  • "Review update set 'Q3 fixes' before I promote it."
  • "Which server CIs are missing an IP address or an owner?"
  • "How many open incidents does each assignment group have?" (any table works, not just the platform ones)

Quick start

About ten minutes on a free developer instance. On a company instance, ask your ServiceNow admin for the user in step 2.

1. Get a ServiceNow instance

Sign up for a free Personal Developer Instance (PDI) — it comes with demo incidents, changes and CIs. PDIs hibernate after a few hours idle: wake yours from the developer portal before you start.

2. Create an integration user

Don't connect as admin: new instances refuse REST basic auth for it (why), and the server needs far less.

  1. Sign in as admin and go to All › User Administration › Users › New.
  2. User ID mcp.integration, Identity type Machine (this ticks Web service access only), and tick Internal Integration User. If your form has no Identity type, tick Web service access only yourself. Submit, then open the user again.
  3. Set Password, and keep the password for step 3.
  4. Roles › Edit: add itil and snc_read_only, save.

That user can read incidents, changes, problems, CMDB and aggregates, and can't change anything. Schema, update sets and writes need more: see roles.

3. Add the server to your client

You need uv (uvx runs the server without installing it). In Claude Code:

bash
read -rs SERVICENOW_PASSWORD     # paste the password; it is not shown or kept in your historyclaude mcp add servicenow \  -e SERVICENOW_INSTANCE_URL=https://devNNNNNN.service-now.com \  -e SERVICENOW_USERNAME=mcp.integration \  -e SERVICENOW_PASSWORD="$SERVICENOW_PASSWORD" \  -- uvx mcp-server-servicenow

Or install the Claude Code plugin, which adds the four skills as slash commands. It reads the same SERVICENOW_* variables from the shell that starts Claude Code (details):

bash
claude plugin marketplace add jschuller/mcp-server-servicenowclaude plugin install servicenow@mcp-server-servicenow
Windows (PowerShell)

Install uv with winget install astral-sh.uv, then:

powershell
$s = Read-Host 'Password' -AsSecureString$p = [Runtime.InteropServices.Marshal]::PtrToStringBSTR([Runtime.InteropServices.Marshal]::SecureStringToBSTR($s))claude mcp add servicenow -e SERVICENOW_INSTANCE_URL=https://devNNNNNN.service-now.com -e SERVICENOW_USERNAME=mcp.integration -e "SERVICENOW_PASSWORD=$p" -- uvx mcp-server-servicenow
VS Code (GitHub Copilot)

[Install in VS Code]

The button adds the server to your VS Code user profile and asks for the instance URL, user and password on first start, storing the password securely. Or add this to .vscode/mcp.json. Use Copilot Chat in Agent mode.

json
{  "inputs": [    { "type": "promptString", "id": "servicenow-url", "description": "ServiceNow instance URL, e.g. https://devNNNNNN.service-now.com" },    { "type": "promptString", "id": "servicenow-password", "description": "Password for mcp.integration", "password": true }  ],  "servers": {    "servicenow": {      "type": "stdio",      "command": "uvx",      "args": ["mcp-server-servicenow"],      "env": {        "SERVICENOW_INSTANCE_URL": "${input:servicenow-url}",        "SERVICENOW_USERNAME": "mcp.integration",        "SERVICENOW_PASSWORD": "${input:servicenow-password}"      }    }  }}
Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

json
{  "mcpServers": {    "servicenow": {      "command": "uvx",      "args": ["mcp-server-servicenow"],      "env": {        "SERVICENOW_INSTANCE_URL": "https://devNNNNNN.service-now.com",        "SERVICENOW_USERNAME": "mcp.integration",        "SERVICENOW_PASSWORD": "your-password"      }    }  }}

Codex, opencode, Antigravity, Cursor, pi, the Claude Code plugin and keeping the password out of config files: client setup.

4. Check it works

Ask: "List the 5 most recent incidents." The start-here user holds snc_read_only, so the server lists only the 13 read-only tools. Give the user write roles (and remove snc_read_only) and the 7 write tools appear; your client asks before each write.

No answer? Run the same configuration with --check. It makes read-only requests, prints one line per check (instance reachable, identity, roles, table read, schema, aggregates) and never prints a secret:

bash
SERVICENOW_INSTANCE_URL=https://devNNNNNN.service-now.com SERVICENOW_USERNAME=mcp.integration \  SERVICENOW_PASSWORD="$SERVICENOW_PASSWORD" uvx mcp-server-servicenow --check

Got an answer back? Say which client and ServiceNow release in Show and tell — it tells us what works. Questions go to Q&A.

If it doesn't work

You seeFix
Got HTML instead of JSONThe PDI is asleep: wake it and retry
401The user isn't Web service access only, or the password is wrong (401)
403The user lacks a role for that table or tool (roles)

Everything else: run --check (above), then TROUBLESHOOTING.

Tools

20 tools, 5 resources and 4 skills. Full reference: tools, resources and skills.

GroupTools
Table APIlist_records get_record create_record update_record delete_record aggregate_records
CMDBlist_ci get_ci create_ci update_ci get_ci_relationships
Systemget_table_schema get_current_user get_system_properties find_references
Update setslist_update_sets get_update_set create_update_set set_current_update_set list_update_set_changes

Resources: table schemas, instance info, the current update set, the CMDB class hierarchy and an encoded-query reference — read without a tool call.

Skills: four guided workflows for the Now Platform, served over MCP as skill:// resources so every client gets them with no plugin:

  • exploring-tables: schemas, choice lists, a record's history, what touches a table or field, the encoded-query reference;
  • analyzing-access: who holds which roles, team rosters and group members, and what a 403 or a missing field means;
  • reviewing-update-sets: risk categories and a pre-promotion checklist;
  • servicenow-cmdb: CMDB data quality and CSDM conformance.

To run with the tools only, add the server without the plugin (claude mcp add, or an mcp.json entry) and set SERVICENOW_SKILLS=off (or --skills off). off changes only what the server serves: the Claude Code plugin still loads the four skills from its own folder (configuration).

Community skills: skills for applications such as ITSM, and for your own conventions, live in their authors' repositories, each with its own eval results:

The incident triage skill that shipped here until 0.9.0 is now an example.

Roles

ServiceNow's ACLs decide what the user can do; the server adds nothing on top.

You wantRolesRun with
Read ITSM and CMDB data (the start-here user)itil + snc_read_onlyno flag: write tools are hidden for snc_read_only
…and create or update incidents and CIsitil (no snc_read_only)no flag; the client asks before writes (--read-only on clients that don't ask)
…and delete incidents, problems, changesadd itil_admin
Table schemasadd personalize_dictionary
Update sets, system propertiesadmin — on a PDI only

Per-tool detail: roles per tool. Setting up a company instance: recommended integration identity.

Safety and governance

  • Read-only mode — --read-only hides the 7 write tools and refuses any non-GET request.
  • Read-only identities see read-only tools — when the user holds snc_read_only the write tools are hidden without a flag. A convenience, not a control: ServiceNow refuses those writes anyway.
  • Table scope lives in ServiceNow — ACLs and REST API access policies on the integration user decide which tables and fields it can read, dot-walks included.
  • Audit log — one JSON line per tool call or resource read: who, which table, outcome; written fields by name only, never their values, and secret-like values in queries masked.
  • Your client approves writes — every tool is annotated read-only or destructive, so Claude Code, Copilot and Codex ask before a write. Clients that don't ask (opencode by default, pi) need a read-only identity, or --read-only when the identity can write.

Flags and environment variables: configuration.

Works with

Verified with 0.8.0 on 2026-10-11 against ServiceNow Brazil, and the 0.9.0 skills re-checked in Claude Code and Codex: Claude Code 2.1.296, VS Code 1.140 with GitHub Copilot, Codex CLI 0.162.1, opencode 1.19.0, Antigravity CLI 1.1.20 and pi 1.1.0. Claude Desktop, Cursor and any other client that speaks MCP over stdio or Streamable HTTP should work too; behaviour per client: client setup.

More

Write your own skills: EXTENDING.md covers the template, the validator and how to share them. Next: MCP prompts.

Related: sn-app-template — a ServiceNow scoped app template for Claude Code + now-sdk that pairs with this server.

License

MIT. An independent project, not affiliated with or endorsed by ServiceNow, Inc. ServiceNow is a trademark of ServiceNow, Inc.

来源:README.md,提交 cac68dd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v0.9.3最新Oct 29, 2026
  2. v0.9.2Oct 21, 2026
  3. v0.9.1Oct 13, 2026
  4. v0.8.0Oct 12, 2026
  5. v0.7.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分