← Index

PubNub MCP Server

io.github.pubnub/mcp-server·v2.3.2·Developer Tools
Quality Score
99
/100

PubNub Model Context Protocol MCP Server for Cursor and Claude

§01  Install
Claude Desktop (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": "<pubnub_user_id>",
        "PUBNUB_EMAIL": "<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": "<pubnub_user_id>",
        "PUBNUB_EMAIL": "<pubnub_email>",
        "PUBNUB_PASSWORD": "<your-pubnub_password>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @pubnub/mcp
§02  Environment variables
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

§03  MCP Quality Score  ·  methodology
freshness
24
completeness
25
installability
25
documentation
15
stability
10
§04  Alternatives in Developer Tools