
SN MCP Server
io.github.ImJaineelPublished by GitHub account ImJaineelv2.2.22Updated Oct 24, 2026
Multi-instance read-only MCP server for ServiceNow
Overview
Read-only MCP server that lets an assistant query and inspect multiple ServiceNow instances (Prod, Dev, Test, PDI) and search ServiceNow docs.
- What you can do
- List configured instances and test connectivity to one or the default instance
- Query, aggregate and inspect tables, and fetch records by sys_id, number, task table or CMDB class
- Read users, groups and group membership from identity tables
- Search and fetch scripting artifacts, update sets, legacy workflows and Flow Designer/Workflow Studio artifacts
- Fetch attachment metadata or file content
- Search and read ServiceNowDocs markdown by release branch, and explain SDK concepts when now-sdk is installed
- When to use it
- Useful when you work with ServiceNow development or administration and want an assistant to explore instance data, schemas, scripts, workflows and update sets across several environments without switching tools. Also handy for looking up official ServiceNow documentation from the same session.
- Requirements
- Runs locally over stdio via npx or a cloned repo, so Node.js is needed. Requires a sn-instance.json file (path given by SN_INSTANCE_CONFIG or --config) holding per-instance credentials: basic auth username/password, or OAuth 2.0 client credentials, password, authorization code or JWT bearer. Network access to the ServiceNow instances is required. Optional: GITHUB_TOKEN for docs branch lookup and GitHub search, SN_LOG_DIR, SN_MCP_VERBOSE, and a globally installed now-sdk for the SDK explain tool.
Installation
In SourceWeft
- Open SN MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
📘 SN-MCP-Server
A read-only Model Context Protocol (MCP) server for ServiceNow — built for developers, AI workflows, and tools that need deep visibility into ServiceNow across multiple instances (Prod, Dev, Test, PDI).
[NPM Package] [Node.js] [License]
✨ Features
- 🔗 Multi-instance — Prod, Dev, Test, PDI in one server
- 🔍 Powerful querying — Table, Aggregate, Code Search APIs
- 🧠 Intelligent record resolution — INC, CHG, RITM, sys_id
- 🔄 Flow Designer + Legacy Workflows
- 🧩 Schema inspection & discovery
- 👥 Identity & access data
- 🔑 Multiple Auth Methods — Basic Auth and OAuth 2.0 (Client Credentials, Password, Auth Code, JWT)
- 🧰 ServiceNow SDK support — optional
sn_sdk_explaintool is registered whennow-sdkis installed globally (npm install -g now-sdk) - Read-only by design — safe on production instances
- 📄 Per-run log files — one file per server start, stored in OS temp folder
- 🔬 Verbose tool logging — per-call called/received debug lines (instance, args, result summary) when
SN_MCP_VERBOSE=true - 📚 ServiceNow Docs search —
sn_read_docssearches the ServiceNowDocs repo, returnsfile_path/raw_urlfor direct reads, and can resolve the selected branch when a non-default version is requested
🚀 Quick Start
Option A — npx (no install needed)
Option B — Local clone
⚙️ Configuration
1. Create sn-instance.json
📄 Full example: sn-instance.example.json
Common fields
Basic Auth (auth: "basic")
OAuth 2.0 (auth: "oauth2")
Default selection is resolved in this order:
- explicit top-level
"default"alias in the config object - an entry with
"default": true - the first entry in the list
2. Environment variables (optional)
All optional — set them in your shell, in the MCP client "env" block, or in a .env file at the project root. Values from the shell take precedence over .env.
Note: If you are running the server from a local clone, a root-level
.envfile is loaded automatically at startup.
CLI flags are also supported as an alternative to environment variables:
--config <path>→ setsSN_INSTANCE_CONFIG--verbose→ setsSN_MCP_VERBOSE=true--github-token <token>→ setsGITHUB_TOKEN
🔌 MCP Client Setup
For Anyone, Everyone
VS Code: Press
Ctrl+Shift+P, select Add MCP
Claude Desktop: Edit
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows)
Gemini Code Assist: Create or edit
~/.gemini/mcp.json
Amazon Q: Create or edit
~/.aws/amazonq/mcp.json
Using npx (recommended):
Using local clone:
⚠️ Always use absolute paths in MCP client configs.
▶️ Running locally
🪵 Logs
Each server run creates a new timestamped log file:
Stored in the OS temp directory:
Override with SN_LOG_DIR env var. Log files are cleaned up automatically by the OS on reboot.
The startup banner always prints the exact log file path:
🧰 Available Tools
The server exposes 16 tools at runtime when the current environment supports them:
- 14 instance tools — require a configured
sn-instance.json - 2 knowledge tools — instance-independent tools for docs and SDK guidance
14 instance tools
2 knowledge tools
Runtime visibility rules
- Instance tools (14) are hidden when the server starts in config-less mode (no
sn-instance.jsonprovided). In that mode, only the 2 knowledge tools remain visible. sn_read_docsis always registered, because it does not depend on ServiceNow instance credentials.sn_sdk_explainis added only after a successful probe ofnow-sdk; if the package is not installed or cannot be executed, the tool is omitted entirely. Install it globally with:npm install -g now-sdk- Every instance tool accepts an optional
instanceparameter. If omitted, the server uses the configured default instance.
💡 Usage Examples
Target a specific instance
Query incidents
Search ServiceNow Docs
Use mode": "get_file" with the returned file_path or raw_url to read the matching doc.
Get record by number
Search legacy workflows
Aggregate
📁 Project Structure
⚠️ Troubleshooting
Invalid credentials
- Verify username/password in
sn-instance.json - Ensure the account has REST API access enabled in ServiceNow
Instance unreachable
- Check the
instancevalue format — subdomain or full URL - Verify VPN / network connectivity
sn-instance.json validation error
- The server prints a specific error message pointing to the exact field/entry
- See the example: sn-instance.example.json
MCP client not detecting server
- Always use absolute paths in MCP client config
- Restart the MCP client after config changes
🔐 Security Notes
sn-instance.jsonis in.gitignore— never commit it- Use a dedicated read-only service account per instance
- PDI instances can use
admincredentials safely since they're isolated - Do not store credentials in environment variables in shared environments
🤝 Contributing
PRs welcome! Please open an issue first for larger changes.
🐛 Report a bug
If you hit a bug, please open a GitHub issue here:
Include the following in your report so it can be fixed quickly:
- what you expected to happen
- what actually happened
- the command or MCP client configuration you used
- the relevant log output or error text
- any redacted snippets from
sn-instance.jsonor.env
📄 License
See LICENSE for details.
Source: README.md at commit e621164
Tools
0Version history
1- v2.2.22LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.
