Overview
Features
JSON-RPC over STDIN/STDOUT
Exposes MCP tools and interactions through a JSON-RPC interface for automation and scripting.
SSE Mode Support
Enables Server-Sent Events transport by configuring the HTTP_PORT environment variable.
Comprehensive SDK Documentation Retrieval
Fetch official PubNub SDK docs across many languages and API sections, with HTML→Markdown conversion.
Chat SDK Mode
Specialized mode focusing on PubNub Chat SDK documentation and topics, excluding general PubNub SDK tools.
Local Resources Access
Fetch conceptual guides from the local resources directory (pubnub_concepts, pubnub_features, etc.).
Real-time Messaging & Presence Tools
Publish, subscribe, history, and presence-related tools (publish_pubnub_message, pubnub_subscribe_and_receive_messages, get_pubnub_messages, get_pubnub_presence).
Account & API Key Management
Tooling to create, list, and delete PubNub apps and API keys (manage_pubnub_account).
Environment, Validation & Conversion
Keyed by PUBNUB_PUBLISH_KEY and PUBNUB_SUBSCRIBE_KEY; uses Zod validation; converts HTML to Markdown with jsdom/turndown; MCP SDK-based extensible tooling.
Who Is This For?
- LLM developers:Access PubNub SDK/API docs and examples to inform AI-driven code generation.
- Cursor IDE users:Integrate MCP server in Cursor IDE for contextual docs and real-time capabilities.
- PubNub developers:Learn to publish/subscribe, manage apps and API keys, and generate app templates.




