Back to Guides

How to Connect ServiceNow to MCP for AI Agents

Integrate ServiceNow ITSM, ITOM, and CSM with AI agents via MCP. Manage incidents, service requests, and change management through the AnythingMCP dashboard.

AI-Powered IT Service Management

ServiceNow is the backbone of IT service management for enterprises worldwide. By connecting ServiceNow to MCP, AI agents can create incidents, manage service requests, query the CMDB, and automate ITSM workflows.

Step-by-Step Guide

Step 1: Deploy AnythingMCP

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 2: Create a REST Connector

Open the AnythingMCP dashboard at http://localhost:3000 and create a new REST connector. Set the base URL to your ServiceNow instance Table API (e.g., https://yourinstance.service-now.com/api/now).

Step 3: Configure Authentication

In the connector settings, configure Basic auth or OAuth 2.0 with your ServiceNow service account credentials.

Step 4: Import and Customize Tools

Configure endpoints for incidents, change requests, CMDB items, and knowledge articles in the dashboard. Customize tool names and descriptions for AI agent clarity.

Step 5: Test and Connect

Test each tool in the dashboard, then configure your MCP client:

{
  "mcpServers": {
    "servicenow": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

AI Agent Use Cases

  • "Create a P2 incident: Email server down for the London office"
  • "Show me all P1 incidents assigned to the Network team"
  • "What change requests are scheduled for this weekend?"
  • "Find the CI details for server PROD-WEB-01"
  • "Resolve incident INC0012345 with notes: Restarted service, issue resolved"

Best Practices

  1. Use a service account with appropriate ACLs
  2. Display values — Set sysparm_display_value: true for human-readable responses
  3. Rate limiting — ServiceNow enforces rate limits; configure accordingly
  4. Encoded queries — Use ServiceNow encoded queries for complex filters

Next Steps