itsm
ServiceNow MCP, CLI, and Lua Integration for AI Agents
ServiceNow integration docs for AI agents: MCP gateway setup, ServiceNow CLI commands, Lua API reference, credentials, and function schemas.
10 functions 7 read 3 write Username and password auth
ServiceNow for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
servicenow- route_slug
servicenow- package
servicenow- auth_strategy
basicUsername and password- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. ServiceNow CLIHeadless setup and direct function calls. ServiceNow MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
ServiceNow MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for ServiceNow.
Claude Code ServiceNow MCP setup for Claude Code. Cursor ServiceNow MCP setup for Cursor. Codex ServiceNow MCP setup for Codex. OpenAI Agents ServiceNow MCP setup for OpenAI Agents SDK. Claude Agent SDK ServiceNow MCP setup for Claude Agent SDK. Vercel AI SDK ServiceNow MCP setup for Vercel AI SDK. LangChain ServiceNow MCP setup for LangChain. LangGraph ServiceNow MCP setup for LangGraph. CrewAI ServiceNow MCP setup for CrewAI. MCP clients ServiceNow MCP setup for Generic MCP Clients.
ServiceNow CLI Matrix
Use these pages for direct ServiceNow CLI workflows in scripts, CI, cron, and agent wrappers.
CI ServiceNow CLI for CI. Cron Jobs ServiceNow CLI for cron jobs. Shell Scripts ServiceNow CLI for shell scripts. Headless Automation ServiceNow CLI for headless automation. Coding Agents ServiceNow CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
servicenow.servicenow_list_incidents | Read read | 2 | List incidents from the ServiceNow incident table. Supports filtering via an encoded query string (sysparm_query) and a configurable result limit. |
servicenow.servicenow_get_incident | Read read | 1 | Retrieve a single ServiceNow incident by its sys_id. Returns the full incident record. |
servicenow.servicenow_create_incident | Write write | 3 | Create a new ServiceNow incident. Provide a short description, an optional full description, and a priority level. |
servicenow.servicenow_update_incident | Write write | 2 | Update an existing ServiceNow incident. Provide the incident sys_id and the fields to update. |
servicenow.servicenow_list_tasks | Read read | 2 | List tasks from the ServiceNow task table. Supports filtering via an encoded query string and a configurable result limit. |
servicenow.servicenow_get_task | Read read | 1 | Retrieve a single ServiceNow task by its sys_id. Returns the full task record. |
servicenow.servicenow_create_task | Write write | 4 | Create a new ServiceNow task. Provide a short description and optional additional fields. |
servicenow.servicenow_list_users | Read read | 2 | List users from the ServiceNow sys_user table. Supports filtering via an encoded query string and a configurable result limit. |
servicenow.servicenow_get_user | Read read | 1 | Retrieve a single ServiceNow user by their sys_id. Returns the full user record. |
servicenow.servicenow_get_current_user | Read read | 0 | Get the profile of the currently authenticated ServiceNow user. Useful for verifying credentials and retrieving the logged-in user's details. |