PluginBench
MCP Server

PubNub MCP Server MCP Server

io.github.pubnub/mcp-server

What is the PubNub MCP Server MCP server?

PubNub Model Context Protocol MCP Server for Cursor and Claude

How to install PubNub MCP Server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • PUBNUB_API_KEY
    secret

    Your PubNub API Key. Required for all operations related to your account/keyset

  • PUBNUB_PUBLISH_KEY
    secret

    Optional PubNub publish key for real-time operations

  • PUBNUB_SUBSCRIBE_KEY
    secret

    Optional PubNub subscribe key for real-time operations

  • PUBNUB_USER_ID

    Optional variable that can be provided to change the User ID for the SDK (real-time) operations (default: pubnub-mcp)

  • PUBNUB_EMAIL

    (Deprecated - use API Key instead) Your PubNub account email. Required for all operations related to your account/keyset

  • PUBNUB_PASSWORD
    secret

    (Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp"
      ],
      "env": {
        "PUBNUB_API_KEY": "<YOUR_PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<YOUR_PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<YOUR_PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<YOUR_PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp"
      ],
      "env": {
        "PUBNUB_API_KEY": "<YOUR_PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<YOUR_PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<YOUR_PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<YOUR_PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp"
      ],
      "env": {
        "PUBNUB_API_KEY": "<YOUR_PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<YOUR_PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<YOUR_PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<YOUR_PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp"
      ],
      "env": {
        "PUBNUB_API_KEY": "<YOUR_PUBNUB_API_KEY>",
        "PUBNUB_PUBLISH_KEY": "<YOUR_PUBNUB_PUBLISH_KEY>",
        "PUBNUB_SUBSCRIBE_KEY": "<YOUR_PUBNUB_SUBSCRIBE_KEY>",
        "PUBNUB_USER_ID": "<YOUR_PUBNUB_USER_ID>",
        "PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
        "PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
      }
    }
  }
}
Claude Code
claude mcp add mcp-server --env PUBNUB_API_KEY=<YOUR_PUBNUB_API_KEY> --env PUBNUB_PUBLISH_KEY=<YOUR_PUBNUB_PUBLISH_KEY> --env PUBNUB_SUBSCRIBE_KEY=<YOUR_PUBNUB_SUBSCRIBE_KEY> --env PUBNUB_USER_ID=<YOUR_PUBNUB_USER_ID> --env PUBNUB_EMAIL=<YOUR_PUBNUB_EMAIL> --env PUBNUB_PASSWORD=<YOUR_PUBNUB_PASSWORD> -- npx -y @pubnub/mcp

Related MCP servers

Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.

67k
Python
BSD-3-Clause
View repository →

Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.

45k
TypeScript
Apache-2.0
View repository →

Let AI agents manage your Puter files, websites, and serverless workers over MCP.

43k
TypeScript
AGPL-3.0
View repository →

Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.

37k
TypeScript
Apache-2.0
View repository →

Run arbitrary shell commands from an MCP-connected AI agent.

37k
TypeScript
Apache-2.0
View repository →

Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.

37k
TypeScript
Apache-2.0
View repository →