PubNub Model Context Protocol MCP Server for Cursor and Claude
Connect Runs on your machine
claude mcp add mcp-server -e PUBNUB_API_KEY=<PUBNUB_API_KEY> -e PUBNUB_PUBLISH_KEY=<PUBNUB_PUBLISH_KEY> -e PUBNUB_SUBSCRIBE_KEY=<PUBNUB_SUBSCRIBE_KEY> -e PUBNUB_USER_ID=<PUBNUB_USER_ID> -e PUBNUB_EMAIL=<PUBNUB_EMAIL> -e PUBNUB_PASSWORD=<PUBNUB_PASSWORD> -- npx -y @pubnub/[email protected]
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pubnub/[email protected]"
],
"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>"
}
}
}
}
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pubnub/[email protected]"
],
"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>"
}
}
}
}
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pubnub/[email protected]"
],
"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>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
PUBNUB_API_KEYOptional, secret | Your PubNub API Key. Required for all operations related to your account/keyset |
PUBNUB_PUBLISH_KEYOptional, secret | Optional PubNub publish key for real-time operations |
PUBNUB_SUBSCRIBE_KEYOptional, secret | Optional PubNub subscribe key for real-time operations |
PUBNUB_USER_IDOptional | Optional variable that can be provided to change the User ID for the SDK (real-time) operations (default: pubnub-mcp) |
PUBNUB_EMAILOptional | (Deprecated - use API Key instead) Your PubNub account email. Required for all operations related to your account/keyset |
PUBNUB_PASSWORDOptional, secret | (Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset |
Details
| Package | @pubnub/[email protected] (NPM, stdio) |
| First published | 16 Mar 2026 |
| Last updated | 16 Mar 2026 |
| Registry name | io.github.pubnub/mcp-server |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
