SimpleNS LogoDocs

Getting Started

Connect your AI tools to SimpleNS MCP Server.


Overview

The SimpleNS MCP Server implements the Model Context Protocol, allowing AI assistants like Claude Desktop, Cursor, and others to interact with your SimpleNS instance to send notifications, check analytics, and manage alerts.

Supported Transports:

  • Streamable HTTP — Local usage via npm package
  • Stdio — Local usage via command line / npm package

No installation is required when using npx.


Credentials Required

To connect, clients only need your Core API URL and API Key—no Dashboard URL is required because all management and notification APIs run in the Core API service.

Header Name (HTTP)Environment Variable (--stdio)RequiredDescription
X-SimpleNS-API-KeyNS_API_KEYYesYour SimpleNS API key (created in Dashboard → API Keys (/keys))
X-SimpleNS-Core-URLSIMPLENS_CORE_URLHTTP: Yes / Stdio: Optional (http://localhost:3000)Base URL of the SimpleNS Core API service

Streamable HTTP Endpoints

When running npx -y @simplens/mcp, the server listens on PORT (default 3001) and exposes /mcp and GET /health.


Connection Configurations

Copy the appropriate configuration for your tool.

Streamable HTTP

Start the server locally with npx -y @simplens/mcp (defaults to port 3001), then add this to your settings.json:

{
    "servers": {
        "simplens": {
            "type": "streamable-http",
            "url": "http://localhost:3001/mcp",
            "headers": {
                "X-SimpleNS-API-Key": "your-ns-api-key",
                "X-SimpleNS-Core-URL": "http://localhost:3000"
            }
        }
    },
    "inputs": []
}

Stdio

Add this to your settings.json:

{
    "servers": {
        "simplens": {
            "command": "npx",
            "args": ["-y", "@simplens/mcp", "--stdio"],
            "env": {
                "NS_API_KEY": "your-local-api-key",
                "SIMPLENS_CORE_URL": "http://localhost:3000"
            }
        }
    },
    "inputs": []
}

Streamable HTTP

Start the server locally with npx -y @simplens/mcp (defaults to port 3001), then add this to your mcp_config.json:

{
    "mcpServers": {
        "simplens": {
            "serverUrl": "http://localhost:3001/mcp",
            "headers": {
                "X-SimpleNS-API-Key": "your-ns-api-key",
                "X-SimpleNS-Core-URL": "http://localhost:3000"
            }
        }
    }
}

Stdio

Add this to your mcp_config.json:

{
    "mcpServers": {
        "simplens": {
            "command": "npx",
            "args": ["-y", "@simplens/mcp", "--stdio"],
            "env": {
                "NS_API_KEY": "your-local-api-key",
                "SIMPLENS_CORE_URL": "http://localhost:3000"
            }
        }
    }
}

Streamable HTTP

Start the server locally with npx -y @simplens/mcp (defaults to port 3001), then add this to your config.toml:

[mcp_servers.simplens]
url = "http://localhost:3001/mcp"
http_headers = { "X-SimpleNS-API-Key" = "your-ns-api-key", "X-SimpleNS-Core-URL" = "http://localhost:3000" }

Stdio

Add this to your config.toml:

[mcp_servers.simplens]
command = "npx"
args = ["-y", "@simplens/mcp", "--stdio"]

[mcp_servers.simplens.env]
NS_API_KEY = "your-local-api-key"
SIMPLENS_CORE_URL = "http://localhost:3000"

On this page