NestDaddy

PubNub MCP Server

io.github.pubnub/mcp-server ยท v2.3.2

PubNub Model Context Protocol MCP Server for Cursor and Claude

Connect Runs on your machine

Terminal
claude mcp add mcp-server -e PUBNUB_API_KEY=<PUBNUB_API_KEY> -e PUBNUB_PUBLISH_KEY=<PUBNUB_PUBLISH_KEY> -e PUBNUB_SUBSCRIBE_KEY=<PUBNUB_SUBSCRIBE_KEY> -e PUBNUB_USER_ID=<PUBNUB_USER_ID> -e PUBNUB_EMAIL=<PUBNUB_EMAIL> -e PUBNUB_PASSWORD=<PUBNUB_PASSWORD> -- npx -y @pubnub/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/[email protected]"
      ],
      "env": {
        "PUBNUB_API_KEY": "<PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<PUBNUB_PASSWORD>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/[email protected]"
      ],
      "env": {
        "PUBNUB_API_KEY": "<PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<PUBNUB_PASSWORD>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/[email protected]"
      ],
      "env": {
        "PUBNUB_API_KEY": "<PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<PUBNUB_PASSWORD>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
PUBNUB_API_KEY
Optional, secret
Your PubNub API Key. Required for all operations related to your account/keyset
PUBNUB_PUBLISH_KEY
Optional, secret
Optional PubNub publish key for real-time operations
PUBNUB_SUBSCRIBE_KEY
Optional, secret
Optional PubNub subscribe key for real-time operations
PUBNUB_USER_ID
Optional
Optional variable that can be provided to change the User ID for the SDK (real-time) operations (default: pubnub-mcp)
PUBNUB_EMAIL
Optional
(Deprecated - use API Key instead) Your PubNub account email. Required for all operations related to your account/keyset
PUBNUB_PASSWORD
Optional, secret
(Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset

Details

Package@pubnub/[email protected] (NPM, stdio)
First published16 Mar 2026
Last updated16 Mar 2026
Registry nameio.github.pubnub/mcp-server

More ai and media servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.