Build your exact vision with chat
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
Lorem ipsum
The PubNub MCP Server
Creating real-time apps with AI agents, resulting in a 41% average lift in code quality & efficiency
Install using your preferred service
Why Use a Model Context Protocol (MCP) Server
Faster Integration
One-liner commands that directly fetch docs and code snippets into your environment.
Zero-Context-Switching
No more alt-tabbing between browser docs and your code editor.
Built for Generative Coding
Designed for Cursor, Claude, Windsurf, and any JSON-RPC toolchain, to produce runnable code that “just works”.
Consistent Updates
Agents use live PubNub data at runtime, not outdated information from web searches.
Stream Verified Docs + APIs Directly to Your Agents
MCP SERVICE
MCP Service
Docs on Demand
Docs on Demand
What It Delivers
What It Delivers
12+ SDKs and full API refs streamed as Markdown
Why It Matters
Agents cite the correct snippet every time.
Live API Calls
Live API Calls
What It Delivers
Includes publish, fetchHistory, getPresence, and other core methods
Impact
Test real data paths inside chat, not after deploy.
Docker & npx Options
Docker & npx Options
What It Delivers
npx -y @pubnub/mcp or docker run pubnub/pubnub-mcp-server
Impact
Works on any machine—no local installs required.
Clients
Clients
What It Delivers
Claude Desktop, Claude Code, OpenAI, Cursor, Windsurf, Visual Studio Code and more!
Impact
Supports all MCP compatible clients.
Global Network
Global Network
What It Delivers
<25 ms publishes, 3 T+ events/month, 99.999 % uptime
Impact
Real-time that stays real-time at global scale.
Getting Started
Below are starter patterns that help you ship production features faster:
Generative IDE
Ask for “real-time chat with presence” and get runnable code in seconds.
Event Sourcing & Replay
Fetch history for tests or LLM fine-tuning with one prompt.
Presence & Occupancy
Add “who’s online?” features without rate-limiting gymnastics.
From device status checks and anomaly detection to remote commands (and more), MCP can help you incorporate anything your real-time workflow demands.
Three-Step Flow
1
Discovery
Cursor or Claude finds your local MCP server via mcp.json.
2
Request
Agent sends tools/call JSON-RPC asking for docs or an API action.
3
Response
MCP streams exactly the chunks the LLM engine needs—no context gaps.
Where Teams Win With MCP
Generative IDE
Cursor and Claude ship with PubNub MCP as a first-class tool.
Realtime SaaS
Teams launch chat, dashboards, and logistics apps in a single sprint.
IoT & Ops
Agents triage sensor data, fire alerts, and draft remediation PRs on the fly.
Enterprise-Grade Security & Compliance
Token-based ACLs, optional AES-256 encryption, and the same certifications that protect a billion devices and three trillion monthly transactions.
Try PubNub MCP Today
Let PubNub handle scaling and security so your AI agents can deliver real-time value faster.
Install using your preferred service