PubNub MCP Server
The PubNub MCP Server enables AI agents to interact with PubNub's real-time infrastructure. It allows agents to fetch documentation, execute live API calls like publish and fetchHistory, and manage presence data. Designed for IDEs like Cursor and Claude, it streamlines the integration of real-time features such as chat, dashboards, and IoT alerts by providing direct access to SDKs and APIs.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 33 GitHub stars
What you can do with it
- Fetch SDK documentation and code snippets directly into the IDE
- Execute live API calls like publish and fetchHistory for testing
- Add presence and occupancy features to real-time applications
- Stream verified docs and APIs to AI agents for accurate coding
Source and maintenance
- Last repository push
- Latest release
- v2.3.4
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@pubnub/mcp 2.3.2
{
"version": "2.3.2",
"transport": "stdio",
"identifier": "@pubnub/mcp",
"runtimeHint": "npx",
"registryType": "npm",
"environmentVariables": [
{
"name": "PUBNUB_API_KEY",
"description": "Your PubNub API Key. Required for all operations related to your account/keyset"
},
{
"name": "PUBNUB_PUBLISH_KEY",
"description": "Optional PubNub publish key for real-time operations"
},
{
"name": "PUBNUB_SUBSCRIBE_KEY",
"description": "Optional PubNub subscribe key for real-time operations"
},
{
"name": "PUBNUB_USER_ID",
"description": "Optional variable that can be provided to change the User ID for the SDK (real-time) operations (default: pubnub-mcp)"
},
{
"name": "PUBNUB_EMAIL",
"description": "(Deprecated - use API Key instead) Your PubNub account email. Required for all operations related to your account/keyset"
},
{
"name": "PUBNUB_PASSWORD",
"description": "(Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pubnub-mcp-server": {
"command": "npx",
"args": [
"-y",
"@pubnub/mcp@2.3.2"
],
"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": "<YOUR_PUBNUB_USER_ID>",
"PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
"PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
}
}
}
}Cline
{
"mcpServers": {
"pubnub-mcp-server": {
"command": "npx",
"args": [
"-y",
"@pubnub/mcp@2.3.2"
],
"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": "<YOUR_PUBNUB_USER_ID>",
"PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
"PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
}
}
}
}VS Code
{
"servers": {
"pubnub-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pubnub/mcp@2.3.2"
],
"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": "<YOUR_PUBNUB_USER_ID>",
"PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
"PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pubnub-mcp-server": {
"command": "npx",
"args": [
"-y",
"@pubnub/mcp@2.3.2"
],
"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": "<YOUR_PUBNUB_USER_ID>",
"PUBNUB_EMAIL": "<YOUR_PUBNUB_EMAIL>",
"PUBNUB_PASSWORD": "<YOUR_PUBNUB_PASSWORD>"
}
}
}
}Let your agent find its tools
Find servers like PubNub MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.