ServiceNow CMDB MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ServiceNow CMDB MCP Serversearch for HP servers in the CMDB"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ServiceNow CMDB MCP Server
A read-only Python project for:
Listing and searching ServiceNow configuration items.
Searching by manufacturer, model name, model number, serial number, network identity, and CI class.
Reading direct CI relationships from
cmdb_rel_ci.Traversing the relationship graph to a controlled depth.
Exposing the functions as MCP tools with FastMCP.
1. Create and activate a virtual environment
Windows PowerShell:
python -m venv .venv
.\.venv\Scripts\Activate.ps1macOS/Linux:
python -m venv .venv
source .venv/bin/activateRelated MCP server: servicenow-api
2. Install packages
pip install -r requirements.txt3. Configure the PDI
Copy .env.example to .env and enter your PDI URL and credentials.
Windows:
Copy-Item .env.example .envmacOS/Linux:
cp .env.example .envDo not commit .env.
4. Test the ServiceNow REST APIs
Connectivity:
python test_api.py healthList ten CIs:
python test_api.py list --limit 10Search by manufacturer:
python test_api.py search --manufacturer CiscoSearch by model name:
python test_api.py search --model-name CatalystCombine manufacturer and model:
python test_api.py search --manufacturer Cisco --model-name CatalystRead direct relationships:
python test_api.py relationships YOUR_32_CHARACTER_SYS_IDBuild a two-level graph:
python test_api.py tree YOUR_32_CHARACTER_SYS_ID --depth 25. Run the MCP server using stdio
Keep this in .env:
MCP_TRANSPORT=stdioRun:
python mcp_server.pyFor an MCP desktop/client configuration, use the absolute Python and script paths and pass the ServiceNow credentials through the environment.
6. Run over Streamable HTTP
Set:
MCP_TRANSPORT=http
MCP_HOST=127.0.0.1
MCP_PORT=9000Start the server:
python mcp_server.pyThe endpoint is:
http://127.0.0.1:9000/mcpIn another terminal:
python test_mcp_client.pyYou can also use MCP Inspector:
npx -y @modelcontextprotocol/inspectorThen connect it to:
http://127.0.0.1:9000/mcpNotes
The server performs read-only GET operations.
Search field names and operators are allowlisted.
User-provided encoded ServiceNow queries are not accepted.
CMDB graphs can contain cycles, so the dependency result contains
nodesandedgesrather than forcing the data into a nested tree.An empty result usually means the PDI has no sample CIs or relationships.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/vinayulli/ServiceNow-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server