servicenow-mcp-ai
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SN_AUTH | No | Auth method: basic, oauth, apikey, token, or none | auto |
| SN_PORT | No | TCP port for http transport | 3000 |
| SN_USER | Yes | ServiceNow username for Basic auth | |
| SN_TLS_CA | No | Optional CA bundle PEM | |
| SN_API_KEY | No | ServiceNow Inbound API Key | |
| SN_DOCS_DIR | No | Directory for docs package | docs/instance |
| SN_ENV_FILE | No | Explicit path to env file | |
| SN_INSTANCE | Yes | ServiceNow instance URL or hostname | |
| SN_PASSWORD | Yes | ServiceNow password | |
| SN_READONLY | No | When truthy, refuse write operations | false |
| SN_HTTP_HOST | No | Bind address for http transport | 127.0.0.1 |
| SN_LOG_LEVEL | No | Log verbosity | info |
| SN_TRANSPORT | No | Transport: stdio or http | stdio |
| SN_CODESEARCH | No | Opt-in to Code Search API | false |
| SN_HTTP_TOKEN | No | Bearer token for http transport | |
| SN_REDACT_PII | No | Mask email/phone/national-id patterns | false |
| SN_TIMEOUT_MS | No | Per-request timeout in milliseconds | 30000 |
| SN_WRITE_MODE | No | Write mode: plan or apply | plan |
| SN_MAX_RECORDS | No | Hard cap on records returned | 10000 |
| SN_MAX_RETRIES | No | Retries for transient failures | 2 |
| SN_OAUTH_GRANT | No | OAuth grant type | password |
| SN_OAUTH_SCOPE | No | Optional OAuth scope | |
| SN_TABLES_DENY | No | Comma-separated table denylist | |
| SN_BEARER_TOKEN | No | Pre-obtained bearer token | |
| SN_TABLES_ALLOW | No | Comma-separated table allowlist | |
| SN_ALLOWED_HOSTS | No | Comma-separated allow-list of permitted hosts | |
| SN_OAUTH_JWT_KEY | No | PEM private key for jwt_bearer grant | |
| SN_PACKAGES_DENY | No | Packages to exclude | |
| SN_REDACT_FIELDS | No | Mask these field values | |
| SN_RESULT_PRETTY | No | Pretty-print JSON results | false |
| SN_TOOL_PACKAGES | No | Tool packages to enable | core |
| SN_ACTIVE_PROFILE | No | Active connection profile | default |
| SN_MAX_CONCURRENT | No | Maximum parallel HTTP requests | 4 |
| SN_TLS_CLIENT_KEY | No | Private key PEM for client certificate | |
| SN_OAUTH_CLIENT_ID | No | OAuth client id | |
| SN_TLS_CLIENT_CERT | No | Client certificate PEM for mTLS | |
| SN_MAX_RESULT_CHARS | No | Character budget for query result truncation | 100000 |
| SN_INCLUDE_REF_LINKS | No | Include reference field links | false |
| SN_PACKAGES_READONLY | No | Packages with read-only tools | |
| SN_OAUTH_REDIRECT_URI | No | Loopback redirect URL for PKCE login | http://localhost:53682/callback |
| SN_OAUTH_CLIENT_SECRET | No | OAuth client secret | |
| SN_OAUTH_REFRESH_TOKEN | No | Refresh token for refresh_token grant | |
| SN_SCHEMA_CACHE_TTL_SEC | No | TTL for schema cache | 300 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| servicenow_query_tableA | Read records from any ServiceNow table through the Table API. Supports encoded queries, field selection and pagination. |
| servicenow_get_recordB | Read a single record from a table by its sys_id. |
| servicenow_create_recordB | Create a new record in a table with the given field values. |
| servicenow_update_recordA | Update fields on an existing record identified by its sys_id. |
| servicenow_delete_recordB | Delete a record from a table by its sys_id. |
| servicenow_list_tablesA | List tables from sys_db_object, optionally filtered by a name or label fragment. |
| servicenow_describe_tableA | List a table's columns (name, label, type, mandatory, reference) from sys_dictionary. |
| servicenow_aggregateA | Compute server-side aggregates (count, avg, min, max, sum) over a table via the Stats API, with optional grouping. Avoids pulling individual rows. |
| servicenow_list_attachmentsA | List attachment metadata, optionally scoped to a specific record (table + sys_id). |
| servicenow_get_attachmentA | Read a single attachment's metadata by its sys_id. |
| servicenow_download_attachmentA | Download an attachment's bytes, returned as base64. Large files are refused (see SN_MAX_RESULT_CHARS). |
| servicenow_upload_attachmentA | Attach a file (provided as base64) to a record identified by table + sys_id. |
| servicenow_delete_attachmentB | Delete an attachment by its sys_id. |
| servicenow_set_credentialsA | Save or update the ServiceNow connection credentials. Values are persisted to the env file and used for all subsequent requests. Provide any subset of fields. |
| servicenow_list_instancesA | List the configured ServiceNow connection profiles (instances): name, host, user, read-only flag and whether credentials are complete. Passwords are never included. |
| servicenow_use_instanceA | Switch the active ServiceNow connection profile (persisted to the env file). All identity-scoped caches (OAuth tokens, schema, plugin availability) are cleared. |
| servicenow_get_statusA | Show the configured instance, user, auth mode and access policy, and whether credentials are complete. The password is never revealed. |
| servicenow_test_connectionA | Verify that the configured credentials actually work: reads one sys_user record and reports ok/status/latency. Auth and connectivity problems are returned structurally (ok:false), not as errors. |
| servicenow_check_capabilitiesA | Preflight which admin-restricted sys_* tables the connected user can actually read, and report which higher-level capabilities (schema reads, script intelligence, ACL audit) are achievable. Run this before relying on the scripts/flows/codecheck tools on a governed instance — on a least-privilege account those reads may be silently empty. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| servicenow_incident_triage | Guide the assistant through triaging an incident: summarise, assess priority, categorise, find similar incidents and recommend next steps. |
| servicenow_change_impact_analysis | Guide the assistant through impact analysis for a change request: affected CIs, schedule conflicts, related changes and a go/no-go recommendation. |
| servicenow_document_table | Orchestrate schema, automation and diagram tools to produce and save durable Markdown documentation for a table. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| tables | List of tables from sys_db_object (requires credentials). |
| status | Current instance, user, auth mode and access policy. Password is never included. |
| capabilities | Which admin-restricted sys_* tables the connected user can read, and which capabilities (schema reads, script intelligence, ACL audit) are therefore achievable. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/IvanBBaev/servicenow-mcp-ai'
If you have feedback or need assistance with the MCP directory API, please join our Discord server