---
title: "PubNub"
url: "https://agentconnectors.dev/tools/pubnub"
updated: "2026-10-14"
source_url: "https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md"
---

# PubNub

PubNub is an MCP server an agent can use to retrieve context for developing with PubNub SDKs and calling APIs.

- Category: [Platform connectors](https://agentconnectors.dev/categories/platforms)
- Collection: Official integration
- Status: active
- Publisher: Unknown. Not confirmed from the repository org, a registry namespace, or a redirect. Unknown is the default. Source: https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md
- Kind: mcp-server
- Listing: https://github.com/pubnub/pubnub-mcp-server
- Repository: https://github.com/pubnub/pubnub-mcp-server
- Homepage: Not listed
- Package: Not listed
- Successor: Not listed
- Source: https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md
- Page: https://agentconnectors.dev/tools/pubnub
- JSON: https://agentconnectors.dev/api/tools/pubnub.json
- Labels: none.

Paid placements are labelled Featured or Sponsored. An Enriched badge means we applied the owner-supplied description and links after a link check on those URLs. Ownership confirmation is optional. It does not mean functionality testing, a security audit, an endorsement, a ranking, or guaranteed traffic, leads, citations, or revenue.

## Connect it

from vendor docs, not tested by us

Configuration validation checks that these snippets parse and include every environment variable named in the Auth fact. It is not a connection test.

Source: https://github.com/pubnub/pubnub-mcp-server/blob/HEAD/README.md

- Remote URL: https://mcp.pubnub.com
- Env vars named in the local snippet: PUBNUB_API_KEY

### Claude Desktop (remote)

```json
{
  "mcpServers": {
    "pubnub": {
      "url": "https://mcp.pubnub.com"
    }
  }
}
```

### Claude Code (remote)

```
claude mcp add --transport http pubnub "https://mcp.pubnub.com"
```

### Cursor (remote)

```json
{
  "mcpServers": {
    "pubnub": {
      "url": "https://mcp.pubnub.com"
    }
  }
}
```

### VS Code (remote)

```json
{
  "servers": {
    "pubnub": {
      "type": "http",
      "url": "https://mcp.pubnub.com"
    }
  }
}
```

### Claude Desktop (local)

```json
{
  "mcpServers": {
    "pubnub": {
      "command": "npx",
      "args": [
        "@pubnub/mcp@latest"
      ],
      "env": {
        "PUBNUB_API_KEY": "<your-api-key>"
      }
    }
  }
}
```

### Claude Code (local)

```
claude mcp add pubnub -e PUBNUB_API_KEY="<your-api-key>" -- npx @pubnub/mcp@latest
```

### Cursor (local)

```json
{
  "mcpServers": {
    "pubnub": {
      "command": "npx",
      "args": [
        "@pubnub/mcp@latest"
      ],
      "env": {
        "PUBNUB_API_KEY": "<your-api-key>"
      }
    }
  }
}
```

### VS Code (local)

```json
{
  "servers": {
    "pubnub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@pubnub/mcp@latest"
      ],
      "env": {
        "PUBNUB_API_KEY": "<your-api-key>"
      }
    }
  }
}
```

Added 2026-10-14.

## Related in Platform connectors

- [Put.io](https://agentconnectors.dev/tools/put-io)
- [Qonto](https://agentconnectors.dev/tools/qonto)
- [Qorus](https://agentconnectors.dev/tools/qorus)
- [Reexpress](https://agentconnectors.dev/tools/reexpress)
- [Reltio](https://agentconnectors.dev/tools/reltio)
- [Rember](https://agentconnectors.dev/tools/rember)
