MCP server for ServiceNow ITSM
## ServiceNow MCP Server: Enterprise Service Management The **ServiceNow MCP Server** integrates ServiceNow into Google Antigravity, enabling IT service management with incident handling, change requests, and workflow automation directly from your development environment. ### Why ServiceNow MCP? - **Enterprise ITSM**: Industry-leading IT service management - **Workflow Engine**: Powerful workflow automation - **CMDB**: Configuration management database - **AI Operations**: AIOps for intelligent operations - **Platform**: Build custom applications on Now Platform ### Key Features #### 1. Record Queries ```python # Query incidents incidents = await mcp.get_records( table="incident", query="state=1^priority<=2", # New, High priority fields=["number", "short_description", "priority", "state"], limit=50 ) for incident in incidents["result"]: print(f"Incident {incident['number']}: {incident['short_description']}") # Get single record incident = await mcp.get_record( table="incident", sys_id="abc123def456" ) ``` #### 2. Record Management ```python # Create incident incident = await mcp.create_record( table="incident", data={ "short_description": "Server down - Production", "description": "Production server unresponsive since 2:00 PM", "priority": "1", "category": "Hardware", "assignment_group": "IT Operations" } ) # Update incident await mcp.update_record( table="incident", sys_id=incident["result"]["sys_id"], data={ "state": "2", # In Progress "assigned_to": "admin" } ) # Close incident await mcp.update_record( table="incident", sys_id=incident["result"]["sys_id"], data={"state": "6", "close_code": "Solved"} # Resolved ) ``` #### 3. Change Management ```python # Create change request change = await mcp.create_record( table="change_request", data={ "short_description": "Upgrade database to v15", "type": "Standard", "risk": "Moderate", "start_date": "2024-01-20 02:00:00", "end_date": "2024-01-20 04:00:00" } ) # Get change tasks tasks = await mcp.get_records( table="change_task", query=f"change_request={change['result']['sys_id']}" ) ``` #### 4. CMDB Operations ```python # Query CI records cis = await mcp.get_records( table="cmdb_ci_server", query="operational_status=1", # Operational fields=["name", "ip_address", "os", "location"] ) # Create CI relationship await mcp.create_record( table="cmdb_rel_ci", data={ "parent": "ci_sys_id_1", "child": "ci_sys_id_2", "type": "Runs on" } ) ``` ### Configuration ```json { "mcpServers": { "servicenow": { "command": "npx", "args": ["-y", "@anthropic/mcp-servicenow"], "env": { "SERVICENOW_INSTANCE": "yourinstance.service-now.com", "SERVICENOW_USERNAME": "your-username", "SERVICENOW_PASSWORD": "your-password" } } } } ``` ### Use Cases **Incident Automation**: Automate incident creation and routing. **Change Control**: Manage IT changes with approvals. **CMDB Updates**: Keep configuration items synchronized. **Integration**: Connect ServiceNow with monitoring tools. The ServiceNow MCP enables enterprise ITSM within your development environment.
{
"mcpServers": {
"servicenow": {
"mcpServers": {
"servicenow": {
"env": {
"SERVICENOW_INSTANCE": "your-instance.service-now.com",
"SERVICENOW_PASSWORD": "YOUR_PASSWORD",
"SERVICENOW_USERNAME": "admin"
},
"args": [
"-y",
"servicenow-mcp"
],
"command": "npx"
}
}
}
}
}