ServiceNow

A production-ready Model Context Protocol (MCP) server for ServiceNow platform integration. Built with TypeScript for Node.js 20+, this server enables LLMs and AI assistants to interact with ServiceNow instances through a standardized interface.

Downloads GitHub Forks TypeScript License: MIT ServiceNow MCP

now-ai-kit is the most advanced, comprehensive, and thoroughly tested ServiceNow MCP server available. It provides complete coverage across all major ServiceNow modules using the latest ServiceNow API references, with seamless, production-ready integration across all major AI providers and SDKs.


Why now-ai-kit

Broadest Module Coverage

150+ production-ready tools spanning every ServiceNow domain: ITSM, ITOM, HRSD, CSM, SecOps, GRC, Agile, ATF, Flow Designer, Scripting, Reporting, Now Assist, and more. No other MCP server comes close to this depth.

Any AI Provider or SDK

Works out of the box with every major AI interface — Claude, ChatGPT, Gemini, Grok, Cursor, Windsurf, GitHub Copilot, Continue, Cline, Amazon Q, JetBrains AI, Zed, Ollama, and more. No model-version lock-in. OAuth 2.0 and Basic Auth supported for every client. Role-based tool packages let you expose exactly the right tools per persona.

Multi-Instance Management

Connect and query multiple ServiceNow environments simultaneously — production, staging, and dev — from a single AI session. Switch instance context on the fly, run cross-environment comparisons, and manage ReleaseOps workflows without leaving your AI assistant.

Four-Tier Permission Control

A granular, environment-variable-driven permission model ensures every operation is explicitly authorised. Read is always on; write, CMDB, scripting, and Now Assist capabilities each require a dedicated opt-in flag — keeping your instance safe by default.

Role-Based Tool Packages

Ten pre-built persona packages — service desk, change coordinator, platform developer, ITOM engineer, AI developer, and more. Expose only the tools each role needs, reducing noise and enforcing least-privilege access for every AI client.

Production-Ready from Day One

Full TypeScript types, 100+ real-world examples, complete reference documentation across 8 guides, and per-client setup guides for all six AI clients. Built on the latest ServiceNow latest release APIs with OAuth 2.0 for every integration.


Quick Links

ResourceLink
All 150+ Tools Referencedocs/TOOLS.md
Client Setup (Claude, GPT, Gemini, Cursor, VS Code)docs/CLIENT_SETUP.md
Role-Based Tool Packagesdocs/TOOL_PACKAGES.md
Now Assist & AI Integrationdocs/NOW_ASSIST.md
ATF Testing Guidedocs/ATF.md
Scripting Managementdocs/SCRIPTING.md
Reporting & Analyticsdocs/REPORTING.md
Multi-Instance Setupdocs/MULTI_INSTANCE.md
100+ Real-World ExamplesEXAMPLES.md
ChangelogCHANGELOG.md

Module Coverage

17 domain modules covering the full ServiceNow platform:

ModuleKey Capabilities
Core & CMDBRecord query, schema discovery, CMDB CIs, ITOM Discovery, MID Servers
Incident ManagementFull incident lifecycle — create, update, resolve, close, work notes
Problem ManagementProblem records, root cause analysis, known errors
Change ManagementChange requests, CAB approvals, closures
Task ManagementGeneric tasks, my-task lists, completions
Knowledge BaseSearch, create, update, publish KB articles
Service Catalog & ApprovalsCatalog browsing, order items, SLA tracking, approval workflows
User & Group ManagementUsers, groups, membership, role assignments
Reporting & AnalyticsAggregate queries, trend analysis, Performance Analytics, scheduled jobs
ATF TestingTest suites, test execution, ATF Failure Insight
Now Assist / AINLQ, AI Search, summaries, resolution suggestions, Agentic Playbooks
ScriptingBusiness rules, script includes, client scripts, changesets
Agile / ScrumStories, epics, sprints, scrum tasks
HR Service Delivery (HRSD)HR cases, HR services, employee profiles, onboarding/offboarding
Customer Service Management (CSM)Customer cases, accounts, contacts, products, SLAs
Security Operations & GRCSecOps incidents, vulnerabilities, GRC risks, controls, threat intel
Flow Designer & Process AutomationFlows, subflows, triggers, executions, Process Automation playbooks

Authentication

Both Basic Auth and OAuth 2.0 are fully supported across all client integrations:

MethodBest For
Basic AuthDevelopment, personal instances, quick setup
OAuth 2.0 Client CredentialsProduction deployments, service accounts
OAuth 2.0 Password GrantAutomated CI/CD pipelines

Permission System

A four-tier permission model keeps your instance safe by default:

TierEnvironment VariableCovers
0 — Read(always on)All query and read operations
1 — WriteWRITE_ENABLED=trueCreate/update across ITSM, HRSD, CSM, Agile
2 — CMDB WriteCMDB_WRITE_ENABLED=trueCI create/update in the CMDB
3 — ScriptingSCRIPTING_ENABLED=trueBusiness rules, script includes, changesets
4 — Now AssistNOW_ASSIST_ENABLED=trueAI Agentic Playbooks, NLQ, AI Search

Role-Based Tool Packages

Set MCP_TOOL_PACKAGE to expose only the tools relevant to each persona:

PackagePersonaTools Included
fullAdministratorsAll 150+ tools
service_deskL1/L2 AgentsIncidents, tasks, approvals, KB, SLA
change_coordinatorChange ManagersChanges, CAB, CMDB, approvals
knowledge_authorKB AuthorsKnowledge base create/publish
catalog_builderCatalog AdminsCatalog, users, groups
system_administratorSys AdminsUsers, groups, reports, logs
platform_developerDevelopersScripts, ATF, changesets
itom_engineerITOM EngineersCMDB, Discovery, MID servers, events
agile_managerScrum MastersStories, epics, sprints
ai_developerAI BuildersNow Assist, NLQ, Agentic Playbooks

Getting Started

Prerequisites

  • Node.js 20+nodejs.org
  • A ServiceNow instance (free developer instance at developer.servicenow.com)
  • An AI client: Claude Desktop, Claude Code, Cursor, VS Code, or any OpenAI/Gemini-compatible client

Install

# Option A — npm (recommended)
npm install -g now-ai-kit

# Option B — clone from source
git clone https://github.com/habenani-p/servicenow-mcp.git
cd servicenow-mcp
npm install && npm run build

Configure

cp .env.example .env

Edit .env:

# ServiceNow instance URL (no trailing slash)
SERVICENOW_INSTANCE_URL=https://yourinstance.service-now.com

# Auth method: basic or oauth
SERVICENOW_AUTH_METHOD=basic
SERVICENOW_BASIC_USERNAME=your.username
SERVICENOW_BASIC_PASSWORD=your_password

# Permission gates (start with all off for safety)
WRITE_ENABLED=false
CMDB_WRITE_ENABLED=false
SCRIPTING_ENABLED=false
NOW_ASSIST_ENABLED=false

# Optional: limit tools to a role package
# MCP_TOOL_PACKAGE=service_desk

Connect to Claude Desktop

Find your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add the server:

{
  "mcpServers": {
    "now-ai-kit": {
      "command": "node",
      "args": ["/absolute/path/to/servicenow-mcp/dist/server.js"],
      "env": {
        "SERVICENOW_INSTANCE_URL": "https://yourinstance.service-now.com",
        "SERVICENOW_AUTH_METHOD": "basic",
        "SERVICENOW_BASIC_USERNAME": "your.username",
        "SERVICENOW_BASIC_PASSWORD": "your_password",
        "WRITE_ENABLED": "false"
      }
    }
  }
}

Restart Claude Desktop. You will see now-ai-kit listed in the MCP servers panel.

Connect to Claude Code

claude mcp add now-ai-kit node /absolute/path/to/servicenow-mcp/dist/server.js \
  --env SERVICENOW_INSTANCE_URL=https://yourinstance.service-now.com \
  --env SERVICENOW_AUTH_METHOD=basic \
  --env SERVICENOW_BASIC_USERNAME=your.username \
  --env SERVICENOW_BASIC_PASSWORD=your_password

Connect to Cursor

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "now-ai-kit": {
      "command": "node",
      "args": ["/absolute/path/to/servicenow-mcp/dist/server.js"],
      "env": {
        "SERVICENOW_INSTANCE_URL": "https://yourinstance.service-now.com",
        "SERVICENOW_AUTH_METHOD": "basic",
        "SERVICENOW_BASIC_USERNAME": "your.username",
        "SERVICENOW_BASIC_PASSWORD": "your_password"
      }
    }
  }
}

For full setup guides for every client (including OAuth 2.0 variants), see docs/CLIENT_SETUP.md.


Example Interactions

Once connected, ask your AI assistant in plain language:

Show me all open P1 incidents assigned to the Network Operations group.
Create an incident for a VPN outage affecting the London office, high urgency, assign to IT Network team.
What CMDB CIs does the ERP application depend on?
Run the Regression Test Suite and show me any failures with ATF Failure Insight details.
Summarise the last 30 days of incident trends by category.
Open an HR onboarding case for new employee Jane Smith starting Monday.
List all high-severity vulnerabilities on production servers that are still open.
Trigger the Employee Offboarding flow for user john.doe with effective date 2025-03-01.
Find all customer cases for Acme Corp that are past their SLA breach date.
Show me GRC risks in the Data Privacy category that are still in draft state.

For 100+ real-world examples with expected inputs, outputs, and advanced workflows, see EXAMPLES.md.


Advanced Configuration

OAuth 2.0

SERVICENOW_AUTH_METHOD=oauth
SERVICENOW_INSTANCE_URL=https://yourinstance.service-now.com
SERVICENOW_CLIENT_ID=your_oauth_client_id
SERVICENOW_CLIENT_SECRET=your_oauth_client_secret
SERVICENOW_OAUTH_GRANT_TYPE=client_credentials

Multi-Instance Setup

Manage multiple ServiceNow environments with instances.json:

{
  "instances": [
    {
      "name": "production",
      "url": "https://prod.service-now.com",
      "authMethod": "oauth",
      "clientId": "...",
      "clientSecret": "..."
    },
    {
      "name": "dev",
      "url": "https://dev12345.service-now.com",
      "authMethod": "basic",
      "username": "admin",
      "password": "..."
    }
  ]
}

See docs/MULTI_INSTANCE.md for full instructions.

Docker

docker build -t now-ai-kit .
docker run -e SERVICENOW_INSTANCE_URL=https://yourinstance.service-now.com \
           -e SERVICENOW_AUTH_METHOD=basic \
           -e SERVICENOW_BASIC_USERNAME=admin \
           -e SERVICENOW_BASIC_PASSWORD=password \
           now-ai-kit

Supported AI Clients

ClientTypeAuth MethodsConfig Guide
Claude DesktopDesktop appBasic, OAuth 2.0clients/claude-desktop/SETUP.md
Claude CodeCLIBasic, OAuth 2.0clients/claude-code/SETUP.md
ChatGPT / OpenAIAPI / WebBasic, OAuth 2.0clients/openai/SETUP.md
Gemini / Vertex AIAPI / CLIBasic, OAuth 2.0clients/gemini/SETUP.md
Grok (xAI)API / WebBasic, OAuth 2.0docs/CLIENT_SETUP.md
CursorAI code editorBasic, OAuth 2.0clients/cursor/SETUP.md
Windsurf (Codeium)AI code editorBasic, OAuth 2.0docs/CLIENT_SETUP.md
GitHub Copilot (VS Code)IDE extensionBasic, OAuth 2.0clients/vscode/SETUP.md
Continue.devVS Code / JetBrainsBasic, OAuth 2.0docs/CLIENT_SETUP.md
ClineVS Code extensionBasic, OAuth 2.0docs/CLIENT_SETUP.md
Amazon Q DeveloperIDE / CLIBasic, OAuth 2.0docs/CLIENT_SETUP.md
JetBrains AI AssistantIDE pluginBasic, OAuth 2.0docs/CLIENT_SETUP.md
ZedAI editorBasic, OAuth 2.0docs/CLIENT_SETUP.md
Ollama (local models)Local runtimeBasicdocs/CLIENT_SETUP.md

What's New in v2.0

  • 154 tools across 17 domain modules (up from 16 tools in v1.0)
  • HRSD module — HR cases, services, profiles, onboarding/offboarding workflows
  • CSM module — Customer cases, accounts, contacts, products, SLA tracking
  • Security Operations & GRC — SecOps incidents, vulnerabilities, risks, controls, threat intel
  • Flow Designer — List, inspect, trigger, and monitor flows and subflows
  • OAuth 2.0 for all six AI clients
  • Role-based tool packages — 10 persona-specific packages
  • Now Assist Agentic Playbooks — latest release AI automation
  • ATF Failure Insight — latest release test failure diagnostics
  • 61 unit tests covering all permission tiers, routing, and domain handlers
  • Complete documentation — 8 reference guides in docs/

Documentation

GuideDescription
docs/TOOLS.mdComplete reference for all 150+ tools with parameters, return types, and permission requirements
docs/CLIENT_SETUP.mdStep-by-step setup for all six AI clients, both Basic Auth and OAuth 2.0
docs/TOOL_PACKAGES.mdRole-based package reference — which tools each persona package includes
docs/NOW_ASSIST.mdNow Assist and AI integration guide — NLQ, AI Search, Agentic Playbooks
docs/ATF.mdATF testing guide — suites, test runs, ATF Failure Insight
docs/SCRIPTING.mdScripting management — business rules, script includes, changesets
docs/REPORTING.mdReporting and analytics — aggregate queries, Performance Analytics
docs/MULTI_INSTANCE.mdMulti-instance configuration via instances.json or environment variables
EXAMPLES.md100+ real-world examples with inputs, outputs, and advanced workflows

Development

# Install dependencies
npm install

# Run in development mode (hot reload)
npm run dev

# Build
npm run build

# Run all tests
npm test

# Type check
npm run type-check

# Lint
npm run lint

Project Structure

src/
  server.ts              — MCP server entry point
  servicenow/
    client.ts            — ServiceNow REST API client (Basic + OAuth)
    types.ts             — Full TypeScript type definitions
  tools/
    index.ts             — Tool router & role-based package system
    core.ts              — Core platform & CMDB (16 tools)
    incident.ts          — Incident management (7 tools)
    problem.ts           — Problem management (4 tools)
    change.ts            — Change management (5 tools)
    task.ts              — Task management (4 tools)
    knowledge.ts         — Knowledge base (6 tools)
    catalog.ts           — Service catalog & approvals (10 tools)
    user.ts              — User & group management (8 tools)
    reporting.ts         — Reporting & analytics (8 tools)
    atf.ts               — ATF testing (9 tools)
    now-assist.ts        — Now Assist / AI (10 tools)
    script.ts            — Scripting management (16 tools)
    agile.ts             — Agile / Scrum (9 tools)
    hrsd.ts              — HR Service Delivery (12 tools)
    csm.ts               — Customer Service Management (11 tools)
    security.ts          — Security Operations & GRC (11 tools)
    flow.ts              — Flow Designer & Process Automation (10 tools)
  utils/
    permissions.ts       — Four-tier permission gate functions
    errors.ts            — Typed error classes
tests/
  tools/                 — Unit tests (61 passing)
docs/                    — Reference documentation (8 guides)
clients/                 — Per-client setup and config files
  claude-desktop/
  claude-code/
  cursor/
  vscode/
  codex/
  gemini/

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

  • Bug reports and feature requests: open an issue
  • New tool domains, additional tests, or documentation improvements are especially appreciated
  • All PRs require npm test to pass

Security

If you discover a security vulnerability, please follow the responsible disclosure process in SECURITY.md. Do not open a public issue.


License

MIT — free for personal and commercial use.


If now-ai-kit saves you time, please consider starring the repository — it helps others discover the project.

GitHub Stars

Related Servers