Skip to content
Cursor

PubNub MCP Server for Cursor

io.github.pubnub/mcp-server

PubNub Model Context Protocol MCP Server for Cursor and Claude

client:Cursor transport:stdio runtime:npm

Install PubNub MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp"
      ],
      "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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

PubNub MCP Server in other clients