home / mcp / servicenow mcp server
Provides an MCP server that interfaces with ServiceNow to access and manipulate data via a secure API.
Configuration
View docs{
"mcpServers": {
"michaelbuckner-servicenow-mcp": {
"command": "python",
"args": [
"-m",
"mcp_server_servicenow.cli",
"--url",
"https://your-instance.service-now.com/",
"--username",
"your-username",
"--password",
"your-password"
],
"env": {
"SERVICENOW_PASSWORD": "your-password",
"SERVICENOW_USERNAME": "your-username",
"SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com/"
}
}
}
}You can run a ServiceNow MCP Server locally to access and manipulate ServiceNow data through a secure API. It lets you search for records, update them, manage incidents, users, knowledge articles, and more using natural language or explicit commands, making ServiceNow interactions fast and scriptable from your AI workflows.
Launch the MCP server from your development environment and connect your MCP client or agent to the local process. You can interact with a variety of ServiceNow resources such as incidents, users, knowledge articles, and tables. Use natural language tools to search for records or update them, and use explicit commands to perform actions like creating or updating an incident, adding comments or work notes, and updating scripts. The server communicates with your ServiceNow instance securely and returns results that your agent can act on.
Prerequisites: Python 3.8 or newer. A ServiceNow instance with API access.
pip install mcp-server-servicenowgit clone https://github.com/michaelbuckner/servicenow-mcp.git
cd servicenow-mcp
pip install -e .python -m mcp_server_servicenow.cli --url "https://your-instance.service-now.com/" --username "your-username" --password "your-password"Alternatively, you can run the server by setting environment variables and invoking the CLI without passing them on the command line.
Configuration and usage details are provided below to help you run and connect the MCP server. You can also configure the server in your MCP client’s settings to point at the local CLI entry point using the command and arguments shown here.
The server supports multiple authentication methods to suit your security requirements. Basic Authentication uses a username and password, Token Authentication relies on OAuth tokens, and OAuth Authentication uses a client ID, client secret, username, and password. Use the method that aligns with your ServiceNow instance and security policies.
Install dependencies, run tests with your preferred Python environment, and validate that commands and queries against your ServiceNow instance return the expected results. Use a virtual environment to keep dependencies isolated.
List recent incidents from the ServiceNow incidents resource.
Retrieve a specific incident by number or sys_id.
List users in the ServiceNow instance.
List knowledge articles available in the knowledge base.
List available tables and their schemas.
Fetch records from a specific table using criteria.
Search for records using a text query.
Get a specific record by its sys_id.
Execute a query across ServiceNow data.
Add a customer-visible comment to an incident.
Add internal work notes to an incident.
Search records using natural language queries.
Update records using natural language commands.
Update ServiceNow script files such as script includes or business rules.