# ServiceNow CLI for AI Agents

```json
{
  "title": "ServiceNow CLI for AI Agents",
  "toolkit": "ServiceNow",
  "toolkit_slug": "servicenow",
  "framework": "CLI",
  "framework_slug": "cli",
  "url": "https://composio.dev/toolkits/servicenow/framework/cli",
  "markdown_url": "https://composio.dev/toolkits/servicenow/framework/cli.md",
  "updated_at": "2026-05-06T08:28:03.486Z"
}
```

## Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.
With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With ServiceNow, agents can list all open incidents assigned to me, create a new servicenow change request, update priority of ticket inc0012345 to high, and more — all without worrying about authentication.
This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end ServiceNow automation.

## Also integrate ServiceNow with

- [ChatGPT](https://composio.dev/toolkits/servicenow/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/servicenow/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/servicenow/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/servicenow/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/servicenow/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/servicenow/framework/codex)
- [Cursor](https://composio.dev/toolkits/servicenow/framework/cursor)
- [VS Code](https://composio.dev/toolkits/servicenow/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/servicenow/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/servicenow/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/servicenow/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/servicenow/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/servicenow/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/servicenow/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/servicenow/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/servicenow/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/servicenow/framework/crew-ai)

## TL;DR

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:
- Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
- Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
- Tool discovery: Search, inspect, and execute 20,000+ tools across 1000+ apps from one interface.
- Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
- Type generation: Generate typed schemas for autocomplete and type safety in your projects.

## Connect ServiceNow to CLI

### Prerequisites
Install the Composio CLI, authenticate, and initialize your project:

```bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login
```

## What is the ServiceNow MCP server, and what's possible with it?

The ServiceNow MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your ServiceNow account. It provides structured and secure access so your agent can perform ServiceNow operations on your behalf.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SERVICENOW_ATTACH_FILE_TO_RECORD` | Attach file to record | Attaches a file to a specified record in a servicenow table. this endpoint allows you to attach a file with the provided details to the specified record. |
| `SERVICENOW_CREATE_A_RECORD` | Create a record | Creates a new record in a specified servicenow table. this endpoint allows you to create a new record with the provided data in the specified table. |
| `SERVICENOW_DELETE_A_RECORD` | Delete a record | Deletes a record from a specified servicenow table. this endpoint allows you to delete a record with the provided id from the specified table. |
| `SERVICENOW_FIND_FILE` | Find file | Finds a file in a specified servicenow table. this endpoint allows you to find a file with the provided name in the specified table. |
| `SERVICENOW_GET_RECORDS` | Get records | Retrieves a record from a specified servicenow table. this endpoint allows you to retrieve a record with the provided id from the specified table. |

## Supported Triggers

None listed.

## Complete Code

None listed.

## Conclusion

- Try asking your coding agent to perform various ServiceNow operations
- Explore cross-app workflows by connecting more toolkits
- Set up triggers for real-time automation
- Use composio generate for typed schemas in your projects

## How to build ServiceNow MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/servicenow/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/servicenow/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/servicenow/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/servicenow/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/servicenow/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/servicenow/framework/codex)
- [Cursor](https://composio.dev/toolkits/servicenow/framework/cursor)
- [VS Code](https://composio.dev/toolkits/servicenow/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/servicenow/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/servicenow/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/servicenow/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/servicenow/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/servicenow/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/servicenow/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/servicenow/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/servicenow/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/servicenow/framework/crew-ai)

## Related Toolkits

- [Google Sheets](https://composio.dev/toolkits/googlesheets) - Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
- [Notion](https://composio.dev/toolkits/notion) - Notion is a collaborative workspace for notes, docs, wikis, and tasks. It streamlines team knowledge, project tracking, and workflow customization in one place.
- [Airtable](https://composio.dev/toolkits/airtable) - Airtable combines the flexibility of spreadsheets with the power of a database for easy project and data management. Teams use Airtable to organize, track, and collaborate with custom views and automations.
- [Asana](https://composio.dev/toolkits/asana) - Asana is a collaborative work management platform for teams to organize and track projects. It streamlines teamwork, boosts productivity, and keeps everyone aligned on goals.
- [Google Tasks](https://composio.dev/toolkits/googletasks) - Google Tasks is a to-do list and task management tool integrated into Gmail and Google Calendar. It helps you organize, track, and complete tasks across your Google ecosystem.
- [Linear](https://composio.dev/toolkits/linear) - Linear is a modern issue tracking and project planning tool for fast-moving teams. It helps streamline workflows, organize projects, and boost productivity.
- [Jira](https://composio.dev/toolkits/jira) - Jira is Atlassian’s platform for bug tracking, issue tracking, and agile project management. It helps teams organize work, prioritize tasks, and deliver projects efficiently.
- [Clickup](https://composio.dev/toolkits/clickup) - ClickUp is an all-in-one productivity platform for managing tasks, docs, goals, and team collaboration. It streamlines project workflows so teams can work smarter and stay organized in one place.
- [Monday](https://composio.dev/toolkits/monday) - Monday.com is a customizable work management platform for project planning and collaboration. It helps teams organize tasks, automate workflows, and track progress in real time.
- [Addressfinder](https://composio.dev/toolkits/addressfinder) - Addressfinder is a data quality platform for verifying addresses, emails, and phone numbers. It helps you ensure accurate customer and contact data every time.
- [Agiled](https://composio.dev/toolkits/agiled) - Agiled is an all-in-one business management platform for CRM, projects, and finance. It helps you streamline workflows, consolidate client data, and manage business processes in one place.
- [Ascora](https://composio.dev/toolkits/ascora) - Ascora is a cloud-based field service management platform for service businesses. It streamlines scheduling, invoicing, and customer operations in one place.
- [Basecamp](https://composio.dev/toolkits/basecamp) - Basecamp is a project management and team collaboration tool by 37signals. It helps teams organize tasks, share files, and communicate efficiently in one place.
- [Beeminder](https://composio.dev/toolkits/beeminder) - Beeminder is an online goal-tracking platform that uses monetary pledges to keep you motivated. Stay accountable and hit your targets with real financial incentives.
- [Boxhero](https://composio.dev/toolkits/boxhero) - Boxhero is a cloud-based inventory management platform for SMBs, offering real-time updates, barcode scanning, and team collaboration. It helps businesses streamline stock tracking and analytics for smarter inventory decisions.
- [Breathe HR](https://composio.dev/toolkits/breathehr) - Breathe HR is cloud-based HR software for SMEs to manage employee data, absences, and performance. It simplifies HR admin, making it easy to keep employee records accurate and up to date.
- [Breeze](https://composio.dev/toolkits/breeze) - Breeze is a project management platform designed to help teams plan, track, and collaborate on projects. It streamlines workflows and keeps everyone on the same page.
- [Bugherd](https://composio.dev/toolkits/bugherd) - Bugherd is a visual feedback and bug tracking tool for websites. It helps teams and clients report website issues directly on live sites for faster fixes.
- [Canny](https://composio.dev/toolkits/canny) - Canny is a platform for managing customer feedback and feature requests. It helps teams prioritize product decisions based on real user insights.
- [Chmeetings](https://composio.dev/toolkits/chmeetings) - Chmeetings is a church management platform for events, members, donations, and volunteers. It streamlines church operations and improves community engagement.

## Frequently Asked Questions

### What is the Composio Universal CLI?

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1000+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

### Which coding agents work with the Composio CLI?

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with ServiceNow and other connected apps.

### How is the CLI different from using an MCP server for ServiceNow?

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

### How safe is my ServiceNow data when using the Composio CLI?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your ServiceNow data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
