home / mcp / servicenow mcp server
Provides an MCP server that connects ServiceNow data and actions to MCP clients for incidents, CMDB, catalog, and more.
Configuration
View docs{
"mcpServers": {
"lokimcpuniverse-servicenow-mcp-server": {
"command": "servicenow-mcp",
"args": [],
"env": {
"SERVICENOW_INSTANCE": "your-instance.service-now.com",
"SERVICENOW_PASSWORD": "your-password",
"SERVICENOW_USERNAME": "your-username"
}
}
}
}You can connect ServiceNow data and operations to MCP clients through a dedicated MCP server. This server provides a standardized interface for essential ServiceNow modules such as incidents, changes, CMDB, catalogs, and more, enabling AI assistants and automation tools to perform actions against your ServiceNow instance in a safe, structured way.
You will run the MCP server locally or in your environment and connect your MCP clients to it. Start the server, then configure your clients to point at the local or remote server. Use the available tools to create, query, and manage ServiceNow data. Your client can perform common operations like creating incidents, querying CMDB items, or listing catalog items through the MCP interface. Ensure your ServiceNow credentials have the necessary permissions and that the server is reachable from your client network.
Prerequisites you need before installing include Python 3.9 or higher and a ServiceNow instance with API access. You also need a ServiceNow user with appropriate permissions.
Install from source by following these steps on your machine.
# Clone the repository
git clone https://github.com/asklokesh/servicenow-mcp-server.git
cd servicenow-mcp-server
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package in editable mode
pip install -e .Quick start to configure and run the server uses environment variables. Create a local copy of the example environment file and set your credentials.
# Copy the example environment file
cp .env.example .env
# Edit .env with your ServiceNow credentials
# (values shown are placeholders)
SERVICENOW_INSTANCE=your-instance.service-now.com
SERVICENOW_USERNAME=your-username
SERVICENOW_PASSWORD=your-passwordAfter configuring credentials, you start the MCP server with a simple command.
servicenow-mcpYou can customize the server with environment-based settings and JSON configuration files. The precedence for configuration is environment variables first, followed by local overrides, then base defaults.
{
"servicenow": {
"instance": "your-instance.service-now.com",
"username": "your-username",
"password": "your-password",
"api_version": "v2",
"timeout": 30,
"max_retries": 3
},
"features": {
"incident_management": true,
"change_management": true,
"problem_management": true,
"service_catalog": true,
"knowledge_base": true,
"user_management": true,
"cmdb": true,
"custom_tables": true
},
"logging": {
"level": "INFO",
"format": "json",
"file": "logs/servicenow-mcp.log"
}
}Configure your MCP client to connect to the server. Use the client’s MCP configuration to specify the server, and provide the necessary credentials through environment variables.
Keep credentials out of version control. Use environment variables or a secret management solution. Apply least-privilege access for ServiceNow users and enable audit logging in production.
Set up a development environment to run tests and linters, and verify types and style. Install development dependencies, run tests, lint, and type checks.
Query any ServiceNow table with filters and return matching records.
Retrieve a single record by its sys_id from a ServiceNow table.
Create new records in a ServiceNow table with provided fields.
Update existing records by sys_id with new field values.
Delete a record by sys_id from a ServiceNow table.
Create a new incident in ServiceNow with given details.
Update an existing incident, including state, notes, and resolution.
Search incidents using multiple filters and criteria.
Create change requests in ServiceNow.
Search change requests with various filters.
Search configuration items (CMDB) by criteria.
Retrieve relationships between configuration items.
Search users in ServiceNow by different fields.
Search knowledge articles in the knowledge base.
List catalog items available in the Service Catalog.
Get aggregate statistics from a specified ServiceNow table.