PubNub MCP Server
by pubnubio.github.pubnub/mcp-serverv2.3.2
PubNub Model Context Protocol MCP Server for Cursor and Claude
context tax
queued
security
queued
cold start
queued
freshness
Active16d ago
Install PubNub MCP server
Install in Claude Code
claude mcp add pubnub -e PUBNUB_API_KEY='<pubnub-api-key>' -e PUBNUB_PUBLISH_KEY='<pubnub-publish-key>' -e PUBNUB_SUBSCRIBE_KEY='<pubnub-subscribe-key>' -e PUBNUB_PASSWORD='<pubnub-password>' -- npx -y @pubnub/mcpInstall in Cursor
{
"mcpServers": {
"pubnub": {
"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_PASSWORD": "<pubnub-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pubnub": {
"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_PASSWORD": "<pubnub-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pubnub": {
"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_PASSWORD": "<pubnub-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pubnub": {
"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_PASSWORD": "<pubnub-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| PUBNUB_API_KEY | — | yes | Your PubNub API Key. Required for all operations related to your account/keyset |
| PUBNUB_PUBLISH_KEY | — | yes | Optional PubNub publish key for real-time operations |
| PUBNUB_SUBSCRIBE_KEY | — | yes | 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 | — | yes | (Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset |
Freshness
Active — last maintenance signal 16d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-23 · 16d ago · GitHub
Latest release
2026-05-20 · 5mo ago · GitHub · v2.3.4
Package published
no data · npm/PyPI
Registry entry updated
2026-03-16 · 7mo ago · official registry · v2.3.2
FAQ
›How do I install the PubNub MCP server in Claude Code?
Run: claude mcp add pubnub -e PUBNUB_API_KEY='<pubnub-api-key>' -e PUBNUB_PUBLISH_KEY='<pubnub-publish-key>' -e PUBNUB_SUBSCRIBE_KEY='<pubnub-subscribe-key>' -e PUBNUB_PASSWORD='<pubnub-password>' -- npx -y @pubnub/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does PubNub require an API key?
Yes. It expects PUBNUB_API_KEY, PUBNUB_PUBLISH_KEY, PUBNUB_SUBSCRIBE_KEY, PUBNUB_PASSWORD, of which 4 are secrets.
›Can I use PubNub as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is PubNub in the official MCP registry?
Yes, as io.github.pubnub/mcp-server.
Alternatives to PubNub
Other ai & llm tools MCP servers.