连接器指南阅读约 6 分钟36 个 MCP 工具7 种语言

如何通过 MCP 将 ServiceNow 连接到 ChatGPT

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

HC作者:HelpCode 团队更新于 6 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

ServiceNow

ServiceNow

Work in ServiceNow ITSM from your AI: find, open, update, resolve and close incidents, handle change requests and problems, follow service catalog requests and order items, search the knowledge base, look up users, groups and CMDB configuration items, and query any table.

个工具

36

区域

INTL

类别

IT 服务管理

身份验证

Basic Auth

所需环境变量

SERVICENOW_INSTANCESERVICENOW_USERNAMESERVICENOW_PASSWORD
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 ServiceNow,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

试试这样问

ServiceNow 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

ServiceNow · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → ServiceNow、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

ServiceNow + ChatGPT

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

SERVICENOW_INSTANCE, SERVICENOW_USERNAME, SERVICENOW_PASSWORD

步骤 1 — 获取凭证

ServiceNow 管理员只需设置一次,大约 10 分钟。想先试用的话,可以使用 https://developer.servicenow.com 提供的免费个人开发者实例。

  1. 创建一个集成用户:User Administration → Users → New。为其设置用户 ID 和强密码,勾选 Web service access only(该用户无法登录界面),并保持 Password needs reset 不勾选,否则第一次调用会失败。
  2. 为该用户分配工作所需的角色:
    • itil 可读写事件、问题、变更请求、请求、请求项和目录任务,并可读取 CMDB。
    • snc_platform_rest_api_access,仅当你的实例将 REST 访问限制为该角色时才需要(REST API 访问策略)。
    • 知识文章的可读范围取决于知识库的用户条件;只有撰写文章才需要 knowledge 角色。
    • 如需只读连接器,在 itil 之外再添加 snc_read_only:这样实例会拒绝所有写入。不要使用 admin。
  3. 将 SERVICENOW_INSTANCE 设置为实例名称本身(https://dev123456.service-now.com 对应 dev123456),将 SERVICENOW_USERNAME 和 SERVICENOW_PASSWORD 设置为集成用户的凭据。安装连接器:它使用 Basic 认证登录,安装检查会列出一条事件。

ACL 依然生效:用户能查看和修改的内容取决于实例的 ACL。无权读取的记录不会报错,而是直接不出现在列表中,因此列表意外为空时,通常是 ACL 的原因,或者在启用域分离时,是用户所属域的原因。

用 OAuth 代替密码:在实例上打开 System OAuth → Application Registry → New → Create an OAuth API endpoint for external clients,将重定向 URL 设置为 https://cloud.anythingmcp.com/api/mcp-oauth/callback(自托管:<your AnythingMCP URL>/api/mcp-oauth/callback)并保存。在 AnythingMCP 中打开连接器,将 Authentication 切换为 OAuth 2.0,填写客户端 ID 和密钥、授权 URL https://<instance>.service-now.com/oauth_auth.do 和令牌 URL https://<instance>.service-now.com/oauth_token.do,保存后点击 Authorize with Provider。登录的人将成为所有使用该连接器的人的 ServiceNow 用户,并具有该用户的角色。刷新令牌默认有效期为 100 天,过期后需重新授权。启用多因素登录的账户需要使用 OAuth,因为 Basic 认证无法应答第二个因素。

覆盖范围:事件(创建、更新、添加工作备注或客户评论、解决、关闭)、变更请求、问题、服务目录请求和请求项(含其订购表单的答案)、订购目录项、知识库搜索、用户、组及其成员、CMDB 配置项及其关系、附件,以及用户有权读取的任何其他表,并可按任意字段分组计数。

先确认:每个执行写入的工具都会注明这一点,AI 会向你展示将要更改的内容,并等待你确认。客户评论通常会通过电子邮件发送给报告人。写入操作会像在界面中修改一样,以集成用户的名义触发你的业务规则、工作流、SLA 和通知。servicenow_delete_record 安装时默认关闭。

筛选:列表类工具接受 ServiceNow 编码查询,例如 active=true^priority=1^assignment_group.name=Service Desk。最简单的获取方式是在界面中操作:筛选一个列表,右键点击筛选路径(breadcrumb),然后选择 Copy query。列表默认返回 20 条记录,每次调用最多 1,000 条。

常见错误:401 表示用户名或密码错误、用户被锁定或未激活,或 OAuth 授权已过期。403 Failed API level ACL Validation 或 Insufficient rights:用户缺少相应角色或 ACL,或者 REST 访问策略阻止了调用。404 No Record found:该表中不存在此记录,或者记录被 ACL 隐藏。已进入休眠的个人开发者实例会返回一个唤醒页面:在 developer.servicenow.com 上打开它一次即可。

自定义域名:使用自有主机名提供服务的实例,需要在连接器设置中将基础 URL 改为 https://<host>/api。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 +,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: ServiceNow。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
servicenow_list_incidentsList incidents from the incident table, newest first by default
servicenow_get_incidentRead one incident by its number (INC0010023) with all its fields, including sys_id, which the update tools need
servicenow_create_incidentOpen a new incident. short_description is required; impact and urgency (1 High, 2 Medium, 3 Low) set the priority
servicenow_update_incidentChange fields of an incident by sys_id (from servicenow_get_incident): reassign, change state, impact or urgency, put on hold (state 3…
servicenow_add_noteAdd a work note (internal, fulfillers only) or an additional comment (visible to the caller or requester, and usually e-mailed to them) to…
servicenow_resolve_incidentResolve an incident: sets state 6 (Resolved) with the resolution code (close_code) and resolution notes (close_notes), which ServiceNow…
servicenow_close_incidentClose an incident: sets state 7 (Closed) with the resolution code (close_code) and resolution notes (close_notes), which ServiceNow…
servicenow_list_change_requestsList change requests from the change_request table, newest first by default
servicenow_get_change_requestRead one change request by its number (CHG0030001) with all its fields, including sys_id, which the update tools need
servicenow_create_change_requestCreate a change request (type normal or emergency) in state New
servicenow_update_change_requestChange fields of a change request by sys_id: plans, planned window, assignment, risk, or the state (-5 New, -4 Assess, -3 Authorize, -2…
servicenow_list_problemsList problems from the problem table, newest first by default
servicenow_get_problemRead one problem by its number (PRB0040001) with all its fields, including sys_id, which the update tools need
servicenow_create_problemOpen a problem record for the root cause behind one or more incidents
servicenow_update_problemChange fields of a problem by sys_id: assignment, root cause (cause_notes), fix (fix_notes), workaround, known_error, or the state (101…
servicenow_list_requestsList service catalog requests (REQ numbers) from the sc_request table, newest first by default
servicenow_list_requested_itemsList requested items (RITM numbers, one per ordered catalog item) from the sc_req_item table, newest first by default
servicenow_get_requested_itemRead one requested item by its number (RITM0010001) with all its fields, including sys_id, which the update tools need
servicenow_get_requested_item_variablesRead the variables (the questions of the catalog form and the requester's answers) of one requested item by its sys_id
servicenow_search_catalog_itemsSearch the service catalog for items the integration user may order ("laptop", "VPN access", "new hire")
servicenow_get_catalog_itemRead one catalog item by sys_id with its order form: variables (name, label, type, mandatory, choices), price and description
servicenow_order_catalog_itemOrder a catalog item right away (Order Now): creates a request (REQ) with a requested item (RITM) and starts its approvals and fulfilment…
servicenow_search_knowledgeSearch knowledge articles by keywords with ServiceNow's text index (the same search as the knowledge portal, on title and body)
servicenow_get_knowledge_articleRead one knowledge article by its number (KB0010001): title, body (text, HTML), knowledge base, category, author, state and validity
servicenow_find_usersFind active users by part of their name, e-mail or user ID
servicenow_find_groupsFind active groups (assignment groups, approval groups) by part of their name
servicenow_list_group_membersList the members of a group by the group's sys_id (from servicenow_find_groups): user sys_id, name, user ID and e-mail
servicenow_find_configuration_itemsFind configuration items (servers, applications, network gear, services) in the CMDB by part of their name, IP address, FQDN or serial…
servicenow_get_configuration_itemRead one configuration item with the CMDB Instance API: all its attributes plus its outbound and inbound relationships (Runs on, Depends…
servicenow_query_tableQuery any table the integration user may read with the Table API: sysparm_query (encoded query), sysparm_fields, sysparm_limit…
servicenow_get_recordRead one record of any table by sys_id, with all fields or the ones given
servicenow_count_recordsCount records with the Aggregate API instead of fetching them, optionally grouped by a field: open incidents per assignment group, changes…
servicenow_list_choicesList the allowed values of a choice field on this instance (sys_choice): state, close_code, category, subcategory, hold_reason, impact…
servicenow_update_recordChange fields of any record by table and sys_id with a PATCH (only the fields given change), e.g. close a catalog task (sc_task state 3) or…
servicenow_delete_recordDelete a record of any table by sys_id
servicenow_list_attachmentsList the files attached to a record (any table): file_name, content_type, size_bytes, sys_id, created on and by, and download_link

示例提示

  • “显示分配给 Service Desk 组的所有未关闭的优先级 1 事件,按从旧到新排列。”
  • “为慕尼黑办公室的 VPN 故障创建一个事件,影响为高,紧急度为中,并分配给 Network Operations。”
  • “现在每个分配组各有多少未关闭的事件?”
  • “在知识库中搜索如何重置 MFA 设备,并总结步骤。”

FAQ

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

你的 ServiceNow 智能体只差一次点击。

安装连接器,粘贴密钥,向 ChatGPT 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 ServiceNow 连接到 Claude

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

连接器

如何通过 MCP 将 ServiceNow 连接到 Cursor

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

连接器

如何通过 MCP 将 ServiceNow 连接到 Gemini

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

连接器

如何通过 MCP 将 ServiceNow 连接到 Meta Muse

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

连接器

ServiceNow 接入 MCP:从任意 AI 代理处理 ServiceNow ITSM 工作

让你的 AI 直接在 ServiceNow ITSM 中工作:查找、创建、更新、解决和关闭事件,处理变更请求和问题,跟进服务目录请求并订购目录项,搜索知识库,查找用户、组和 CMDB 配置项,并查询任意表。

连接器

如何通过 MCP 将 Avito 连接到 ChatGPT

让你的 AI 使用你的 Avito 企业账户:列出广告并修改价格,读取浏览、联系和来电统计,检查自动上传 (autoload) 的上传记录及其错误、Feed 格式和钱包,并读取 Avito Messenger 聊天。发送消息和修改自动上传设置为可选功能,默认关闭。