Skip to content
VS Code

ServiceNow MCP Server for VS Code

io.github.aartiq/servicenow-mcp

400+ ServiceNow tools across all modules — ITSM, CMDB, HRSD, CSM, SecOps, and more.

client:VS Code transport:stdio runtime:npm

Install ServiceNow MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "servicenow-instance-url",
      "description": "SERVICENOW_INSTANCE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "servicenow-auth-method",
      "description": "SERVICENOW_AUTH_METHOD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "servicenow-basic-username",
      "description": "SERVICENOW_BASIC_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "servicenow-basic-password",
      "description": "SERVICENOW_BASIC_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "write-enabled",
      "description": "WRITE_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "scripting-enabled",
      "description": "SCRIPTING_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cmdb-write-enabled",
      "description": "CMDB_WRITE_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "now-assist-enabled",
      "description": "NOW_ASSIST_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "atf-enabled",
      "description": "ATF_ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-tool-package",
      "description": "MCP_TOOL_PACKAGE",
      "password": true
    }
  ],
  "servers": {
    "servicenow-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@aartiq/servicenow-mcp"
      ],
      "env": {
        "SERVICENOW_INSTANCE_URL": "${input:servicenow-instance-url}",
        "SERVICENOW_AUTH_METHOD": "${input:servicenow-auth-method}",
        "SERVICENOW_BASIC_USERNAME": "${input:servicenow-basic-username}",
        "SERVICENOW_BASIC_PASSWORD": "${input:servicenow-basic-password}",
        "WRITE_ENABLED": "${input:write-enabled}",
        "SCRIPTING_ENABLED": "${input:scripting-enabled}",
        "CMDB_WRITE_ENABLED": "${input:cmdb-write-enabled}",
        "NOW_ASSIST_ENABLED": "${input:now-assist-enabled}",
        "ATF_ENABLED": "${input:atf-enabled}",
        "MCP_TOOL_PACKAGE": "${input:mcp-tool-package}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ServiceNow MCP Server in other clients