servicenow-platform-mcp
Enables AI agents to interact with ServiceNow through MCP, providing schema inspection, record CRUD, attachments, audit, Flow Designer, and platform investigations with policy-guarded access.
README
servicenow-platform-mcp
A Python 3.12+ async MCP server that gives AI agents structured, policy-guarded access to ServiceNow. It exposes schema inspection, record CRUD, attachment operations, audit trail analysis, Flow Designer inspection, and platform investigations - all over the Model Context Protocol's stdio transport.
What you get
The server presents a unified tool surface to any MCP-compatible client. Capabilities include:
- Query and inspect - encoded-query search, aggregation, field-level schema discovery, choice-label resolution.
- Read and write records - including script-bearing artifacts (Business Rules, Script Includes, UI Macros) with file-based script injection and preview-then-apply confirmation.
- Attachments - list, download, upload, and delete with size-capped base64 transfer.
- Audit - field-level audit verdict resolution, batch checks, and masked history retrieval.
- Flow Designer - inspect flows, decode compressed action values, find record-trigger bindings.
- Investigations - pluggable analysis modules for stale automations, deprecated APIs, ACL conflicts, performance bottlenecks, and more.
- Service Catalog - browse catalogs, order items, manage carts.
Tool-package presets
Control the exposed surface with MCP_TOOL_PACKAGE. Four presets ship; custom comma-separated group lists are also accepted.
| Preset | Tools | Purpose |
|---|---|---|
full |
14 | Complete surface including writes and query builder |
readonly |
10 | Read operations, investigations, audit, and flow inspection |
core_readonly |
5 | Query, describe, and attachment only |
none |
1 | Only the list_tool_packages introspection tool |
Quickstart
# Install dependencies
uv sync
# Configure credentials
cp .env.example .env.local
# Edit .env.local with your instance URL, username, and password
# Run the server (stdio transport)
servicenow-platform-mcp
Three environment variables are required:
SERVICENOW_INSTANCE_URL- your instance (HTTPS enforced, e.g.https://dev12345.service-now.com)SERVICENOW_USERNAMESERVICENOW_PASSWORD
MCP client configuration
{
"mcpServers": {
"servicenow": {
"command": "servicenow-platform-mcp",
"transport": "stdio"
}
}
}
Safety posture
Eight sensitive tables (credential stores, OAuth entities, SSH keys) are unconditionally denied at the policy layer. Fields matching sensitive patterns - passwords, tokens, secrets, API keys, private keys, credentials - are masked in every response. Write operations use a preview-then-apply flow by default: the server returns a confirmation token that must be explicitly applied before any mutation reaches ServiceNow. In production environments (SERVICENOW_ENV=prod or production), all write operations are blocked at runtime regardless of which tool package is loaded.
Where to go next
- Getting Started - detailed setup and first-use walkthrough
- Configuration - full environment variable reference
- Tool Reference - per-tool parameter and response documentation
- Tool Packages - preset details and custom package composition
- Architecture - server bootstrap, decorator patterns, state management
- Safety and Policy - denied tables, masking, query safety, write gating
- Investigations - available analysis modules and their parameters
- Telemetry - opt-in Sentry integration
- Development - contributing, linting, testing
- INSTALL.md - alternative installation methods
License
MIT. See LICENSE.
Built by the ServiceNow MCP Contributors.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.