Skip to main content
Glama
AI MCP ServiceNow

AI MCP ServiceNow

by jacebenson

AI MCP Servicenow

This is a work in progress. Right now none of the tools are implemented. The goal is to create a Model Context Protocol (MCP) server that can be used with ServiceNow on out of box instances. This will allow you to use AI tools in ServiceNow without having to write any code in things like Open Web UI.

Want to learn more about the Model Context Protocol? Check out the following resources:

Note, This is inspired by the project at https://github.com/echelon-ai-labs/servicenow-mcp. I like what they did but I wanted it in the TypeScript style that I use in my other projects. Also Typescript is a lot closer to JavaScript and JavaScript is what's used in ServiceNow.

Installation

Pre-requisites

  • Node.js

  • A ServiceNow Instance

Setup

git clone https://github.com/jacebenson/ai-mcp-servicenow.git
cd ai-mcp-servicenow
npm install

Configuration

Create a .env file in the root directory with the following content:

SERVICENOW_INSTANCE_URL=https://dev12345.service-now.com
SERVICENOW_USERNAME=admin
SERVICENOW_PASSWORD=your_password_here

Related MCP server: ServiceNow MCP Server

Usage

Standard (stdio) Mode

I've mapped these to scripts in the package.json file so you can run them with npm run server or npm run dev or npm run inspector.

However you can also run them directly with npx if you prefer.

Standard Mode

To start the MCP server in standard mode, run:

npx -y @modelcontextprotocol/inspector npx -y tsx main.ts
# or
npm run server

Inspector Mode

To start the MCP server in inspector mode, run:

npx -y @modelcontextprotocol/inspector npx -y tsx main.ts --inspector
# or
npm run inspector

Contributing

I've included a tool, ./tools/get-weather.js, that demonstrates how to create a tool for the MCP server. You can use this as a starting point for creating your own tools, or the tools I've spelled out in the ./main.ts file.

Available Tools

1 tool
get-weatherC

Tool to get the weather of a city

Inputs: city (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The tool's purpose is clearly distinct by default.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect—there are no other tool names to be inconsistent with. The tool name 'get-weather' follows a clear verb-noun pattern.

    Tool Count2/5

    A single tool is too few for a server named 'AI MCP ServiceNow', which suggests a broader scope related to ServiceNow operations, not just weather. This extreme mismatch indicates the tool set is severely under-scoped for the apparent purpose.

    Completeness1/5

    The tool set is severely incomplete for the inferred domain of ServiceNow, as it only provides a weather tool with no coverage of typical ServiceNow operations like incident management, user queries, or data retrieval. This leaves obvious and significant gaps that will cause agent failures.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.
      47
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants and development tools to interact with ServiceNow instances, providing comprehensive API coverage for incident management, change management, CMDB, and other ServiceNow modules.
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A production-ready Model Context Protocol server that integrates with ServiceNow for enterprise workflows and provides comprehensive health monitoring capabilities.
      3
      -
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that enables AI assistants to interact with ServiceNow instances, allowing script execution, data querying, ATF tests, and log tailing through natural language commands.
      135
      1,438 npm
      16
      MIT