Skip to main content

A developer & debug-focused MCP server for ServiceNow — platform introspection, change intelligence, debugging, investigations, and documentation generation.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

servicenow-devtools-mcp banner

PyPI version Python versions License

servicenow-devtools-mcp

A developer and debug-focused Model Context Protocol (MCP) server for ServiceNow. Provides a comprehensive suite of tools across 20 tool groups for platform introspection, change intelligence, debugging, record management, ITSM workflows, CMDB operations, service catalog, automated investigations, documentation generation, and Flow Designer analysis.

Quick Start

1. Set environment variables:

export SERVICENOW_INSTANCE_URL=https://your-instance.service-now.com
export SERVICENOW_USERNAME=admin
export SERVICENOW_PASSWORD=your-password

2. Run the server:

uvx servicenow-devtools-mcp

3. Connect your MCP client (see Configuration below).

Configuration

OpenCode

Add to ~/.config/opencode/opencode.json:

{
  "mcp": {
    "servicenow": {
      "type": "local",
      "command": ["uvx", "servicenow-devtools-mcp"],
      "environment": {
        "SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com",
        "SERVICENOW_USERNAME": "admin",
        "SERVICENOW_PASSWORD": "your-password"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "servicenow": {
      "command": "uvx",
      "args": ["servicenow-devtools-mcp"],
      "env": {
        "SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com",
        "SERVICENOW_USERNAME": "admin",
        "SERVICENOW_PASSWORD": "your-password"
      }
    }
  }
}

VS Code / Cursor

Add to .vscode/mcp.json:

{
  "servers": {
    "servicenow": {
      "command": "uvx",
      "args": ["servicenow-devtools-mcp"],
      "env": {
        "SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com",
        "SERVICENOW_USERNAME": "admin",
        "SERVICENOW_PASSWORD": "your-password"
      }
    }
  }
}

Generic stdio

SERVICENOW_INSTANCE_URL=https://your-instance.service-now.com \
SERVICENOW_USERNAME=admin \
SERVICENOW_PASSWORD=your-password \
uvx servicenow-devtools-mcp

Environment Variables

Variable Description Default Required
SERVICENOW_INSTANCE_URL Full URL (must start with https://) - Yes
SERVICENOW_USERNAME ServiceNow username - Yes
SERVICENOW_PASSWORD ServiceNow password - Yes
MCP_TOOL_PACKAGE Tool package to load full No
SERVICENOW_ENV Environment label (dev/test/staging/prod) dev No
MAX_ROW_LIMIT Max rows per query (1-10000) 100 No
LARGE_TABLE_NAMES_CSV Tables requiring date filters syslog,sys_audit,sys_log_transaction,sys_email_log No
SCRIPT_ALLOWED_ROOT Root dir for script_path in artifact write "" (disabled) When using script_path
SENTRY_DSN Sentry DSN for error reporting "" No
SENTRY_ENVIRONMENT Sentry environment label Falls back to SERVICENOW_ENV No

The server reads from .env and .env.local files automatically.

AI Agent Setup

Copy and paste this prompt to your AI agent (Claude Code, Cursor, OpenCode, etc.):

Install and configure servicenow-devtools-mcp by following the instructions here:
https://raw.githubusercontent.com/Xerrion/servicenow-devtools-mcp/refs/heads/main/INSTALL.md

Or read the Installation Guide directly.

Key Features

  • Platform introspection - describe tables, query records, inspect metadata, compute aggregates
  • Change intelligence - update set inspection, artifact diffs, audit trails, release notes
  • Debug and trace - event timelines, flow execution, email tracing, import sets, field mutations
  • Record management - full CRUD with preview-then-apply safety pattern
  • Artifact management - create/update business rules, script includes, and 15+ artifact types with local script file support
  • ITSM workflows - incident, change, problem lifecycle management
  • CMDB operations - browse CIs, relationships, classes, and health checks
  • Service catalog - browse, order, cart management, checkout
  • Knowledge management - search, create, update articles and feedback
  • Investigations - automated analysis of stale automations, deprecated APIs, ACL conflicts, performance bottlenecks
  • Documentation generation - logic maps, artifact summaries, test scenarios, review notes
  • Flow Designer - inspect flows, actions, executions, snapshots, migration analysis

Tool Packages

Control which tools are loaded with MCP_TOOL_PACKAGE. There are 14 preset packages:

Package Groups Description
full 20 All standard tools (default)
core_readonly 4 Read-only core tools
none 0 No tools loaded
itil 16 ITIL process tools
developer 13 Development-focused tools
readonly 10 Read-only operations
analyst 8 Analysis and reporting
incident_management 9 Incident lifecycle
change_management 8 Change request tools
cmdb 6 CMDB management
problem_management 9 Problem lifecycle
request_management 8 Request/RITM tools
knowledge_management 6 Knowledge base tools
service_catalog 6 Service catalog tools

You can also create custom packages with comma-separated group names (e.g. MCP_TOOL_PACKAGE="table,record,debug"). See the Wiki for full package and tool group details.

Safety

  • Table deny list - blocks access to sensitive system tables (sys_user_has_password, oauth_credential, sys_credentials, etc.)
  • Sensitive field masking - password, token, secret, and similar fields are automatically masked
  • Write gating - all write operations blocked when SERVICENOW_ENV is set to prod or production
  • Row limits and large table protection - prevents runaway queries with configurable caps and mandatory date filters

These guardrails reduce risk but are not a guarantee - always validate in a sub-production environment.

See the Safety & Policy wiki page for complete details.

Development

git clone https://github.com/Xerrion/servicenow-devtools-mcp.git
cd servicenow-devtools-mcp
uv sync --group dev
uv run pytest                  # Run tests
uv run ruff check .            # Lint
uv run ruff format .           # Format
uv run mypy src/               # Type check

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servicenow_devtools_mcp-0.9.1.tar.gz (274.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

servicenow_devtools_mcp-0.9.1-py3-none-any.whl (120.5 kB view details)

Uploaded Python 3

File details

Details for the file servicenow_devtools_mcp-0.9.1.tar.gz.

File metadata

  • Download URL: servicenow_devtools_mcp-0.9.1.tar.gz
  • Upload date:
  • Size: 274.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for servicenow_devtools_mcp-0.9.1.tar.gz
Algorithm Hash digest
SHA256 28d9a51b4541c9b292cb05e0a1dd614b17f4e7447fd38fbedb2693564d6a11ce
MD5 8adfc8e7a55cec6c4150e9c3814b92c9
BLAKE2b-256 c7ce564e6b51345cdc96454230144db9284ff77763fac333ada53702843ffca6

See more details on using hashes here.

File details

Details for the file servicenow_devtools_mcp-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: servicenow_devtools_mcp-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 120.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for servicenow_devtools_mcp-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d5886dde8f63da9b1560d6a33e2834dbc999ae53404c2e05e48fdfa9bec7db6
MD5 3a7184f38798c72a0a13ce22bdd09292
BLAKE2b-256 22e793fb27918babb724e248ae2f896341588503cd77b15fd75a3a4d9e1fe0b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page