npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

servicenow-mcp

v1.2.0

Published

MCP server for ServiceNow ITSM with browser-based SSO authentication

Readme

ServiceNow MCP Server

npm version License: MIT TypeScript MCP Platform

A comprehensive Model Context Protocol (MCP) server for ServiceNow ITSM with browser-based SSO authentication support.

Perfect for enterprise environments - No API keys required. Works with Okta, Azure AD, and any SSO provider.

Features

  • Browser Authentication: Log in via your enterprise SSO (Okta, Azure AD, etc.) - no API keys needed
  • 70+ Tools: Incidents, Changes, Problems, Catalog, CMDB, Knowledge Base, Users, Approvals, and more
  • GraphQL & REST Support: Works with both ServiceNow APIs
  • Session Management: Automatic cookie handling and refresh

Installation

NPM

npm install servicenow-mcp

Or install globally:

npm install -g servicenow-mcp

From Source

Linux/macOS:

git clone https://github.com/schwarztim/servicenow-mcp.git
cd servicenow-mcp
npm install
npm run build

Windows:

git clone https://github.com/schwarztim/servicenow-mcp.git
cd servicenow-mcp
.\scripts\install.ps1

📝 Windows Users: See WINDOWS.md for detailed Windows installation guide, including path configuration, PowerShell setup, and troubleshooting.

Authentication Methods

1. Browser SSO (Recommended for Enterprise)

Use the auth_browser tool from Claude:

> Use auth_browser to log into ServiceNow

A browser will open. Log in with your SSO credentials.
Cookies are automatically captured and saved.

Or from command line:

npm run auth https://yourinstance.service-now.com

2. Basic Auth (Username/Password)

Set environment variables:

export SERVICENOW_INSTANCE_URL="https://yourinstance.service-now.com"
export SERVICENOW_USERNAME="your-username"
export SERVICENOW_PASSWORD="your-password"

3. Session Token Auth

For GraphQL API access:

export SERVICENOW_INSTANCE_URL="https://yourinstance.service-now.com"
export SERVICENOW_SESSION_TOKEN="your-session-cookie"
export SERVICENOW_USER_TOKEN="your-g_ck-token"

Usage with Claude

After browser authentication:

> List open P1 incidents
> Show me change CHG0012345
> Create an incident for "Email server down"
> Search CMDB for servers in the Atlanta datacenter

Available Tools

Incidents

  • incidents_list - List incidents with filtering
  • incidents_get - Get incident details
  • incidents_create - Create new incident
  • incidents_update - Update incident
  • incidents_resolve - Resolve incident

Changes

  • changes_list - List change requests
  • changes_get - Get change details
  • changes_create - Create change request
  • changes_tasks - Get change tasks

Service Catalog

  • catalog_items - Browse catalog items
  • catalog_item_get - Get item details
  • catalog_order - Order catalog item
  • catalog_requests - List requests

CMDB

  • cmdb_list - Query configuration items
  • cmdb_get - Get CI details
  • cmdb_relationships - View CI relationships
  • cmdb_create - Create CI

Knowledge Base

  • kb_search - Search knowledge articles
  • kb_article_get - Get article content

Users & Groups

  • users_search - Search users
  • user_get - Get user details
  • groups_list - List groups
  • group_members - Get group members

And many more...

  • Approvals, SLAs, Workflows, Email, Events, Audit, Update Sets, Security ACLs, Discovery, etc.

Configuration

Add to your Claude configuration file:

Linux/macOS: ~/.claude/user-mcps.json Windows: %USERPROFILE%\.claude\user-mcps.json

{
  "mcpServers": {
    "servicenow": {
      "command": "node",
      "args": [
        "/Users/yourname/Scripts/mcp-servers/servicenow-mcp/dist/index.js"
      ],
      "env": {
        "SERVICENOW_INSTANCE_URL": "https://yourinstance.service-now.com"
      }
    }
  }
}

Windows users: Use double backslashes in paths:

"args": ["C:\\Users\\YourName\\servicenow-mcp\\dist\\index.js"]

Or use forward slashes (also works on Windows):

"args": ["C:/Users/YourName/servicenow-mcp/dist/index.js"]

Troubleshooting

"No authentication configured"

Run auth_browser tool or set environment variables.

"Cookies expired"

Browser cookies are valid for ~8 hours. Re-run auth_browser to refresh.

"Access denied"

Ensure your ServiceNow user has appropriate roles (itil, admin, etc.).

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

Support

Acknowledgments

License

MIT © Timothy Schwarz - see LICENSE for details