servicenow
MCP server that gives Claude Code tools to read, write, and configure a ServiceNow instance, enabling hands-off flow design and management via basic auth.
README
ServiceNow MCP Server
MCP server that gives Claude Code tools to read, write, and configure a ServiceNow instance.
🔧 Flow Designer — hands-off flow build
This server can build, compile, and publish Flow Designer flows programmatically — no browser, no UI "Activate", any scope — via the undocumented processflow API plus the CSRF g_ck header (the missing piece that makes basic auth work). Tools: flow_designer_get / flow_designer_save / flow_designer_compile (only basic-auth admin creds needed — no Script Runner).
➡️ See docs/flow-designer/ for the full kit: the recipe, the bundled servicenow-flow-creator skill, the gotchas, and a worked catalog-item example.
Setup
1. Install and build
npm install
npm run build
2. Configure credentials
Credentials are passed to the server through the MCP config env block (step 4). The code reads process.env only — there is no .env loading, so a .env file is ignored. You need three values:
SN_INSTANCE— your instance subdomain only (e.g.dev12345, not the fullhttps://…URL)SN_USERNAME— an admin userSN_PASSWORD— that user's password
The flow-designer kit (
flow_designer_*) and everytable_*tool need only these basic-auth admin creds — no Script Runner (step 3 is optional).
3. (Optional) Deploy Script Runner — only for the run_script tool
Flow-designer users can skip this entirely.
flow_designer_get/save/compileand everytable_*tool work with just the basic-auth admin creds from step 2. Script Runner is required only if you want therun_scripttool (arbitrary server-side GlideScript).
To enable run_script, deploy a Scripted REST API app to your PDI:
- Open ServiceNow Studio on your PDI
- Create a new scoped app: scope =
x_mcp_snc, name = "MCP Script Runner" - Create a Scripted REST API: name =
script_runner - Add a POST resource at
/executewith this script:
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var body = request.body.data;
var script = '' + body.script;
var evaluator = new GlideScopedEvaluator();
evaluator.putVariable('request', request);
evaluator.putVariable('response', response);
var result;
try {
var gr = new GlideRecord('sys_script_include');
gr.initialize();
gr.setValue('script', script);
result = evaluator.evaluateScript(gr, 'script', null);
if (result !== null && result !== undefined) {
response.setBody({ result: '' + result });
}
} catch (e) {
response.setStatus(500);
response.setBody({ error: '' + e });
return;
}
})(request, response);
Note: GlideScopedEvaluator allows injecting request and response into the script scope, so scripts CAN use response.setBody() directly for complex output. For simple scripts, the last expression value is auto-returned.
- Set the resource to require
adminrole
4. Add to Claude Code
Add to your Claude Code MCP config (~/.claude/settings.json or project settings):
{
"mcpServers": {
"servicenow": {
"command": "node",
"args": ["/absolute/path/to/servicenow-mcp-server/dist/index.js"],
"env": {
"SN_INSTANCE": "your-instance-name",
"SN_USERNAME": "admin",
"SN_PASSWORD": "your-password"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
table_read |
Query any ServiceNow table with filtering and pagination |
table_create |
Insert a record into any table |
table_update |
Update a record (tracks before/after state) |
table_delete |
Delete a record |
get_table_schema |
Get field definitions for a table |
get_choices |
Get choice list values for a field |
get_instance_info |
Get instance version and active plugins |
run_script |
Execute server-side GlideScript |
get_sys_properties |
Read system properties |
set_sys_property |
Set a system property value |
flow_designer_get |
Fetch a flow's editable processflow JSON |
flow_designer_save |
Build/save a flow (PUT the raw processflow object) |
flow_designer_compile |
Compile + publish a flow — hands-off "Activate" via /snapshot |
Plus more tool groups not listed above: catalog, change, CMDB, knowledge, import-set, batch, aggregate, and attachments. See
src/index.tsfor the full registration.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。