PubNub MCP Server
PubNub Model Context Protocol MCP Server for Cursor and Claude
- Pricing
- Open source
- Runs
- Locally
- Version
- 2.3.2
- Listing updated
- 5 days ago
About PubNub MCP Server
PubNub MCP Server is an open-source MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add mcp-server --env PUBNUB_API_KEY='<PUBNUB_API_KEY>' --env PUBNUB_PUBLISH_KEY='<PUBNUB_PUBLISH_KEY>' --env PUBNUB_SUBSCRIBE_KEY='<PUBNUB_SUBSCRIBE_KEY>' --env PUBNUB_PASSWORD='<PUBNUB_PASSWORD>' -- npx -y @pubnub/mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"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
{
"mcpServers": {
"mcp-server": {
"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
{
"servers": {
"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_PASSWORD": "<PUBNUB_PASSWORD>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server": {
"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 your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server": {
"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>"
}
}
}
}Configuration
PUBNUB_API_KEYYour PubNub API Key. Required for all operations related to your account/keysetPUBNUB_PUBLISH_KEYOptional PubNub publish key for real-time operationsPUBNUB_SUBSCRIBE_KEYOptional PubNub subscribe key for real-time operationsPUBNUB_USER_IDOptional 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/keysetPUBNUB_PASSWORD(Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset
Pricing
Open source
Prices change. Check pubnub.com before you buy.
PubNub MCP Server FAQ
Is PubNub MCP Server free?
Yes. PubNub MCP Server is open source, so you can use and self-host it for free.
How do I add PubNub MCP Server to Claude Code?
Run this command in your terminal: claude mcp add mcp-server --env PUBNUB_API_KEY='<PUBNUB_API_KEY>' --env PUBNUB_PUBLISH_KEY='<PUBNUB_PUBLISH_KEY>' --env PUBNUB_SUBSCRIBE_KEY='<PUBNUB_SUBSCRIBE_KEY>' --env PUBNUB_PASSWORD='<PUBNUB_PASSWORD>' -- npx -y @pubnub/mcp
What are the best alternatives to PubNub MCP Server?
The closest alternatives to PubNub MCP Server are Claude Code Ultimate Guide, signafAIde, Toolkien, Lugh and HypePaper.
Alternatives to PubNub MCP Server

Claude Code Ultimate Guide
MCP serverMCP server for searching the Claude Code Ultimate Guide from any MCP client
Runs locally- Open source
- 6.5K GitHub stars
- AI models and LLM tooling

signafAIde
MCP serverLocal MCP server to set up, verify and check coverage of signed agent action records
Runs locally- 5 tools
- Freemium
- Security

Toolkien
MCP serverOne MCP gateway for all your MCP servers, with code mode, permissions and audit
Not checked yet- 3 tools
- Remote
- Open source
- AI models and LLM tooling
Lugh
MCP serverWrite, check and dry-run Lugh agent programs with policy, budgets and approvals
Runs locally- 5 tools
- Open source
- AI models and LLM tooling
HypePaper
MCP serverResearch papers, benchmarks, citations and topic experts for AI assistants
- 58 tools
- Remote
- Freemium
- AI models and LLM tooling

One compact entry point that finds, describes and runs hundreds of pay-per-call data tools
- 3 tools
- Remote
- Freemium
- Developer tools