How to integrate ServiceNow MCP with Kimi Code

Connect Kimi Code to ServiceNow MCP. List all open incidents assigned to me, create a new servicenow change request, and more using natural language, with authentication handled for you.

ServiceNow logoServiceNow
BasicOauth2S2s Oauth2

ServiceNow is a cloud-based platform for automating digital workflows across IT, HR, and operations. It streamlines processes and improves efficiency for enterprise teams.

148 Tools

How to integrate ServiceNow MCP with Kimi Code

Kimi Code is Moonshot AI's open-source coding agent, powered by Kimi K2.6. It runs in your terminal, reads and edits code, executes shell commands, and plans multi-step tasks, with native MCP support for extending it to outside tools.

In this guide, I will explain the easiest and most secure way to connect your ServiceNow account to Kimi Code via Composio Connect, so it can list all open incidents assigned to me, create a new ServiceNow change request, update priority of ticket INC0012345 to high, and more without ever putting your account credentials at risk.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate ServiceNow with

Why use Composio?

Composio provides:

  • Access to 1,700+ managed apps from a single MCP endpoint. This makes it convenient for agents to run cross-app workflows.
  • Managed OAuth. You do not have to worry about authentication and authorization flows for every app.
  • Programmatic tool calling. Allows LLMs to write code in a remote workbench to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
  • Large tool response handling outside the LLM context. This minimizes context bloat from large tool responses.
  • Dynamic just-in-time access to thousands of tools across hundreds of apps. Composio loads the tools your agent needs, so LLMs are not overwhelmed by tools they do not need.

Connect ServiceNow to Kimi Code

Kimi Code is a TypeScript agent distributed through npm. It acts as an MCP client and reads server definitions from an mcp.json file, and it can also add and authenticate servers conversationally through /mcp-config. Composio is a remote HTTP server that authenticates with OAuth, so no API key is stored anywhere.

1. Install Kimi Code

The quickest way is the official install script, which requires no pre-installed Node.js and places the kimi executable on your PATH.

bash
# macOS or Linux
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

# Windows PowerShell
irm https://code.kimi.com/kimi-code/install.ps1 | iex

# Confirm the installation
kimi --version

2. Log in

Start Kimi Code in your project directory, then sign in from the interactive UI:

bash
kimi

Run /login and choose Kimi Code OAuth using the device-code flow, or use a Moonshot API key.

3. Add Composio with /mcp-config

In current versions of Kimi Code, MCP servers are managed inside the app, not with a shell subcommand. From the interactive UI, run:

bash
/mcp-config
Kimi Code MCP config flow for adding the Composio MCP server

Tell it the server name and URL in plain language. For example:

Server name is Composio, and here is the server URL: https://connect.composio.dev/mcp

Kimi Code asks whether to add it globally, at ~/.kimi-code/mcp.json, or project-local for the current checkout, then writes the entry for you:

bash
{
  "mcpServers": {
    "Composio": {
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

There is no transport field to set. Kimi Code infers HTTP from the url.

4. Restart the session

The new server is picked up on a fresh session, not the current one. Start a new session:

bash
/new

On the new session, Kimi Code detects that the server needs authorization and prompts you to run:

bash
/mcp-config login Composio

5. Authorize with OAuth

Run the command Kimi suggests:

bash
/mcp-config login composio

Kimi Code opens Composio's authorization page or surfaces a URL. Approve access, then return to the session. You should see confirmation that the Composio MCP server is connected.

Composio authorization page for Kimi Code MCP setup

Check the connection status any time with /mcp. Composio should appear as connected with its tools listed.

Kimi Code showing Composio connected after OAuth authorization

Connect your ServiceNow account

Back in a Kimi Code session, ask the agent to connect to ServiceNow or give it any ServiceNow-related task.

For example, ask it to:

  • "List all open incidents assigned to me"
  • "Create a new ServiceNow change request"
  • "Update priority of ticket INC0012345 to high"

It will prompt you to authenticate and authorize access to ServiceNow.

That is it. Composio tools are now available in Kimi Code, and your ServiceNow account is ready to use.

Conclusion

You have successfully connected ServiceNow to Kimi Code using Composio Connect. Your agent can now manage ServiceNow from the terminal with natural language, without exposing credentials in prompts or local scripts.

Since the same Composio endpoint exposes 1,700+ apps, you can add Slack, Calendar, Linear, and more to the same server and chain them into cross-app workflows.

TOOLS

Supported Tools

Every ServiceNow action and event your agent gets out of the box.

Cancel change conflict check

Cancels the running conflict checking process for a specified ServiceNow change request.

Create a record

Creates a new record in a specified ServiceNow table with the provided field values.

Create attachment upload

Uploads a file as a multipart form-data attachment to a specified record in ServiceNow.

Create CI Lifecycle Management Action

Adds a named CI action to one or more configuration items (CIs).

Create ci lifecycle mgmt operators

Registers the authenticated non-workflow user as a CI Lifecycle Management operator.

Set CI Operational State

Sets an operational-state label for one or more configuration items (CIs).

Create CMDB Application Service

Creates an application service in ServiceNow CMDB or updates an existing one if a service with the same name already exists.

Create CMDB Linux Server

Creates a Linux server configuration item in the ServiceNow cmdb_ci_linux_server table with the supplied attributes.

Create CMDB Instance

Inserts one record with the supplied fields into classname through the ServiceNow Table API, not the CMDB Instance API.

Create CMDB Instance Relation

Creates an inbound and/or outbound relation for a specific configuration item (CI) in the ServiceNow CMDB.

Create data classification classify

Assigns pre-defined or user-defined data classifications to existing dictionary entries.

Create data classification clear

Removes all data classifications from one or more Dictionary [sys_dictionary] entries.

Enhanced CI Identify/Reconcile

Inserts or updates configuration items (CIs) in ServiceNow CMDB using the enhanced Identification and Reconciliation API.

Query CMDB Identify Reconcile

Sends a non-committing simulation request to the ServiceNow IRE query endpoint.

CMDB Identify Reconcile QueryEnhanced

Sends a non-committing simulation request to the enhanced ServiceNow IRE query endpoint.

Create Import Set

Submits incoming data to a specified ServiceNow import staging table for transformation into a target table.

Create Incident

Creates a new incident in ServiceNow with supplied incident fields, including urgency, impact, state and caller.

Create ServiceNow Interaction

Creates a ServiceNow interaction, then updates its short description and context table through the Table API because the Interaction create endpoint ignores those two fields.

Close Interaction

Closes an existing interaction record in ServiceNow by changing its state to closed.

Create push installation

Registers or updates a device token for receiving push notifications through ServiceNow.

Remove Push Installation

Deactivates a mobile device installation from receiving push notifications using the ServiceNow Push Installation API.

Create servic catalog items add to cart

Adds a specified catalog item to the current user's ServiceNow shopping cart.

Submit Service Catalog Producer Item

Submits a Service Catalog producer item with optional variables to create a record in ServiceNow.

Checkout Service Catalog Cart

Posts an empty request to the documented Service Catalog checkout endpoint for the authenticated user's current cart.

Submit Service Catalog Cart Order

Posts without a request body to the documented Service Catalog submit_order endpoint for the authenticated user's current cart.

Create servicecatalog items checkout guide

Posts to an order guide's checkout_guide endpoint.

Order Service Catalog Item Now

Orders a specified ServiceNow Service Catalog item immediately.

Insert Multiple Import Set Records

Inserts multiple records into a specified ServiceNow staging table and triggers the associated transform map.

Create sn chg rest change

Creates a new change request in ServiceNow using the Change Management REST API.

Create Change Request CI Association

Creates an association between a change request and one or more configuration items (CIs) in ServiceNow.

Start Change Conflict Check

Starts the conflict checking process for a ServiceNow change request, identifying scheduling conflicts with other changes or blackout windows.

Create sn chg rest change emergency

Creates an emergency change request through the ServiceNow Change Management API with a short description and optional description, affected CI, and reason.

Create Normal Change Request

Creates a normal change request in ServiceNow using the Change Management REST API.

Create sn chg rest change standard

Creates a new standard change request in ServiceNow using a pre-approved standard change template.

Create Change Task

Creates a new task for a ServiceNow change request using the Change Management REST API.

Create sn cicd app batch install

Installs two or more ServiceNow application packages in a single batch operation via the CICD API.

Install App from Repository

Installs the specified application from the ServiceNow app repository.

Run Full Instance Scan

Initiates a full instance scan by running all active checks present in the ServiceNow instance.

Create sn cicd instance scan suite scan combo

Runs a CI/CD scan using a suite and target (scoped app) combination in ServiceNow.

Activate Plugin

Activates the specified plugin in ServiceNow's CICD Plugin API.

Run Test Suite

Starts an automated test suite using ServiceNow's CI/CD Pipeline API, identified by sys_id or name.

Create SD-WAN Trouble Ticket

Creates one record through the ServiceNow Table API, not the TMF Trouble Ticket Open API.

Create TMF Service Category

Inserts one record in the ServiceNow sc_category table through the Table API, not a TMF Catalog Management endpoint.

Create or Update CMDB CI via IRE

Creates or updates CMDB configuration items (CIs) using the ServiceNow Identification and Reconciliation Engine (IRE) via the identify-reconcile endpoint.

Delete a record

Permanently deletes a specific record from a ServiceNow table using its sys_id.

Delete attachment by

Permanently deletes a specific attachment from ServiceNow using its sys_id.

Delete change task

Permanently deletes a specific task from a ServiceNow change request using its sys_id.

Delete CI Lifecycle Action

Removes a named CI action from one or more configuration items through the supported CI Lifecycle Management API.

Delete ci lifecycle mgmt operators

Permanently unregisters an operator from the ServiceNow CI Lifecycle Management system.

Delete cmdb instance relation

Permanently deletes a specific CMDB CI (Configuration Item) relation using its sys_id.

Delete emergency change request

Permanently deletes a specific emergency change request from ServiceNow using its sys_id.

Delete incident by

Permanently deletes a specific incident from ServiceNow using its sys_id.

Delete servicecatalog cart

Removes a specific item from the current ServiceNow Service Portal shopping cart.

Delete service catalog cart empty

Empties and may delete a Service Catalog shopping cart using its sys_id.

Delete sn chg rest change

Permanently deletes a specific change request using its sys_id via the Change Management REST API.

Delete Normal Change Request

Permanently deletes a normal change request identified by its sys_id using the ServiceNow Change Management REST API.

Delete sn chg rest change standard

Permanently deletes a standard change request from ServiceNow using its sys_id.

Get Activity Subscription Activities

Retrieves activity records from the ServiceNow ActivitySubscription API.

Get Activity Subscription Facets

Retrieves activity subscription facets for a specified ServiceNow activity context and context instance.

Get Agent Intelligence Solution Prediction

Requests a prediction from a named ServiceNow Agent Intelligence solution, optionally supplying input field values.

List Agent Intelligence Solution Predictions

Returns predictions for multiple ServiceNow Predictive Intelligence solutions.

Get All Data Classes

Retrieves data classification records from the ServiceNow data_classification table.

Get App Service CMDB Content

Retrieves configuration items associated with an application service in ServiceNow CMDB, identified by its sys_id.

Get attachment by

Retrieves metadata for a specific attachment by its sys_id from ServiceNow.

Get attachment file

Downloads the binary file attachment with the specified sys_id from ServiceNow.

Get Attachment List

Retrieves metadata for multiple file attachments from ServiceNow's Attachment API.

Get change ci schedule

Retrieves change scheduling information for a specific ServiceNow configuration item and requested duration.

Get Change Conflict Status

Retrieves the conflict status for a ServiceNow change request, identifying scheduling conflicts with other changes or blackout windows.

Get change nextstates

Retrieves a list of available next states for a specified change request based on the current state and workflow.

Get Change Request Configuration Items

Retrieves configuration items (CIs) associated with a specific change request in ServiceNow.

Get change schedule

Retrieves scheduling information for a ServiceNow change request.

Get CI Lifecycle Management Action

Returns the active CI Lifecycle Management actions associated with a configuration item (CI), identified by the CI's sys_id.

Check CI Compatibility

Determines whether two named CI actions are compatible according to ServiceNow CI Lifecycle Management rules.

Check CI Lease Expiration Status

Determines whether the specified requestor's lease has expired for a named CI action applied to a configuration item (CI).

Check CI Not Allowed Ops Transition

Determines whether CIs of a specified class are prohibited from transitioning from one operational-state label to another.

Validate CI Lifecycle Management Requestor

Validates whether a specified active workflow requestor exists and is valid in ServiceNow CI Lifecycle Management.

Get CI Lifecycle Mgmt Status

Retrieves the current operational status for a Configuration Item (CI) in ServiceNow CMDB using the CI Lifecycle Management API.

Get CMDB Linux Server by ID

Retrieves a single CMDB Linux server configuration item (CI) by its sys_id, including its attributes and relationship information.

Find CSDM Application Service

Finds and returns basic information about one or more application services in the ServiceNow CMDB using the CSDM (Common Service Data Model) app_service find_service endpoint.

Get CMDB Instance by Class

Retrieves configuration items (CIs) from a specified CMDB class using the ServiceNow CMDB Instance API.

Get CMDB Instance by ID

Retrieves a single CMDB configuration item (CI) by its class name and sys_id, including its attributes and relationship information.

Get CMDB Class Metadata

Retrieves metadata and schema information for a specified CMDB (Configuration Management Database) class.

Get Cloud Catalog Services

Retrieves records from the ServiceNow sc_cat_item table through the Table API, not the Cloud Services Catalog API.

Get Email by ID

Retrieves a specific email record from ServiceNow's Email [sys_email] table by its sys_id.

Get Global User Role Inheritance

Retrieves a ServiceNow user's directly granted and inherited roles for reviewing role assignments and troubleshooting access.

Get import

Retrieves the specified import staging record and its associated target records.

Get Incidents

Retrieves incidents from the ServiceNow incident table with optional encoded filtering, pagination and field selection.

Get Performance Analytics Scorecards

Retrieves Performance Analytics scorecards and indicator details from the Analytics Hub, optionally filtering by indicator UUID and including scores.

Get records

Lists records from a specified ServiceNow table; it does not retrieve a single record by sys_id.

Get Record Types

Retrieves all available table record types from the ServiceNow instance using the Table API documentation endpoint.

Get servicatalog items by

Retrieves a specific Service Catalog item from ServiceNow using its sys_id.

Get Catalog Item Variables

Retrieves the list of variables defined for a ServiceNow Service Catalog item.

Get Service Catalog Cart

Retrieves the details of all items within the logged-in user's Service Catalog shopping cart.

Get Service Catalog Cart Delivery Address

Retrieves the delivery/shipping address configured for a user's Service Catalog shopping cart.

Get Service Catalog Catalog by ID

Retrieves the available information for a specified service catalog by its sys_id.

Get Service Catalog Catalog Categories

Retrieves the list of available categories for a specified ServiceNow Service Catalog.

Get Service Catalog Category by ID

Retrieves the available information for a specified service catalog category by its sys_id.

Get Service Catalog Item Delegation

Verifies whether a delegated user has access to a specific ServiceNow Service Catalog item.

Get Service Catalog Items List

Retrieves a list of catalog items from ServiceNow's Service Catalog API.

Get Service Catalog Wishlist List

Retrieves the list of items in the logged-in user's ServiceNow Service Catalog wishlist.

Get sn cdm shared libraries upload status

Retrieves the current status of a ServiceNow shared library upload by upload ID.

Get sn chg rest change by

Retrieves the full ServiceNow change request record for the supplied sys_id, including provider fields beyond the commonly used typed fields in the schema.

Get sn chg rest change emergency by

Retrieves a specific emergency change request from ServiceNow using its sys_id.

Get sn chg rest change emergency list

Retrieves emergency change requests from ServiceNow with encoded-query filtering, field selection, pagination, and display value options.

List ServiceNow Change Requests

Retrieves one or more change requests from ServiceNow based on specified filter criteria.

Get sn chg rest change model by

Retrieves a specific change model from ServiceNow using its sys_id.

Get sn chg rest change model list

Retrieves one or more change models from ServiceNow's Change Management API.

Get Normal Change Request by ID

Retrieves a specific normal change request from ServiceNow using its sys_id via the Change Management REST API.

List ServiceNow Normal Change Requests

Retrieves one or more normal change requests from ServiceNow's Change Management API.

Get sn chg rest change standard by

Retrieves a specific standard change request from ServiceNow using its sys_id.

Get sn chg rest change standard list

Retrieves standard change requests from ServiceNow with query filtering, field selection, pagination, and display value options.

Get ServiceNow Standard Change Template by ID

Retrieves a specific standard change template from ServiceNow using its sys_id.

List ServiceNow Standard Change Templates

Retrieves one or more standard change templates from ServiceNow's Change Management API.

Get Change Tasks

Retrieves one or more tasks associated with a specific ServiceNow change request.

Get sn cicd app batch results

Retrieves the results of a batch application install operation from ServiceNow CI/CD.

Get Instance Scan Result

Retrieves the current progress and status of a CI/CD instance scan operation in ServiceNow.

Get CI/CD Progress

Retrieves the current progress and status of a CI/CD operation in ServiceNow.

Get sn cicd testsuite results

Retrieves the results of a test suite run from ServiceNow CI/CD based on the result ID.

Get stats

Retrieves aggregate statistics for a specified ServiceNow table, including COUNT, AVG, MIN, MAX, and SUM calculations.

Get Table Record by ID

Retrieves the record identified by the specified sys_id from the specified table.

Get table incident by

Retrieves a single incident record from ServiceNow by its sys_id using the Table API.

Get user

Retrieves a specific user record from ServiceNow using its sys_id.

Get users

Lists user records from the ServiceNow sys_user table for tasks such as finding active users or users in a department.

List CMDB Linux Servers

Retrieves Linux server configuration items (CIs) from the ServiceNow CMDB using the cmdb_ci_linux_server class.

List CMDB Configuration Items

Retrieves configuration items (CIs) from the ServiceNow CMDB using the base cmdb_ci class.

List CMDB Relationship Types

Retrieves CMDB relationship types from the ServiceNow cmdb_rel_type table using the Table API.

List Service Catalog Catalogs

Retrieves a list of ServiceNow Service Catalog catalogs to which the user has access.

Refresh Impacted Services for Change

Refreshes and repopulates the impacted services/configuration items for a change request in ServiceNow using the Change Management REST API.

Retrieve sn cicd update set

Starts retrieval of an update set from a remote instance through the ServiceNow CICD Update Set API.

Schedule change first available

Updates the planned start and end times of a ServiceNow change request to the first available schedule slot.

Update cmdb csdm app service populate service

Populates an application service through the deprecated CSDM population endpoint.

Update CMDB CSDM App Service Service Details

Updates basic details and relationships through the deprecated CSDM endpoint.

Update cmdb instance by

Updates an existing configuration item (CI) record in the ServiceNow CMDB by its sys_id.

Update CMDB Instance by ID

Updates a specific ServiceNow CMDB configuration item by class and sys_id using the Table API.

Update conversation member drop

Sends a request to drop an agent from an Agent Chat conversation.

Update incident by

Updates an existing incident in ServiceNow identified by its sys_id using the Table API.

Update openframe voice interaction

Updates an OpenFrame interaction record identified by sys_id.

Update servicecatalog cart

Updates an existing item in the ServiceNow Service Portal shopping cart.

Update servicecatalog items submit guide

Evaluates an order guide without placing an order.

Update sn chg rest change

Updates an existing change request in ServiceNow using the Change Management REST API.

Update sn chg rest change emergency

Updates an existing emergency change request by sys_id using the ServiceNow Change Management API.

Update Normal Change Request

Updates a normal change request identified by its sys_id using the ServiceNow Change Management REST API.

Update ServiceNow Standard Change Request

Updates a standard change request in ServiceNow using its sys_id.

Update sn chg rest change task

Updates an existing change request task in ServiceNow using the Change Management REST API.

Update SD-WAN Trouble Ticket

Partially updates one Incident [incident] record through the ServiceNow Table API, not the TMF Trouble Ticket Open API.

Update Trouble Ticket

Partially updates one record by sys_id through the ServiceNow Table API, not the TMF Trouble Ticket Open API.

Update table record

Updates an existing record in a specified ServiceNow table using the Table API.

Upload Attachment to ServiceNow Record

Uploads a file as an attachment to a specified record in ServiceNow.

FAQ

Frequently asked questions

Start with ServiceNow.It takes 30 seconds.

Managed auth, hosted MCP servers, and every ServiceNow tool your agent needs.Free to start.

Start building