
PubNub MCP Server
Gives Claude full access to PubNub's real-time messaging platform, from SDK docs across 20+ languages to direct API operations. You can scaffold chat apps with presence tracking, manage apps and keysets, send and receive messages on channels, query historical data, and handle user profiles through the App Context API. The Illuminate tools let you build analytics pipelines with metrics and automated decisions, while Insights queries aggregate stats on messages, users, and engagement patterns. Includes ready-made prompts for HIPAA-compliant chat, React apps, game lobbies, and multi-tenant onboarding. Runs over HTTP with OAuth, so it's designed for hosted deployments rather than local stdio. Reach for this when you're building real-time features and want Claude to understand PubNub's patterns and wire up the actual infrastructure.
- GitHub stars
- 31
- tools
- 17
- auth
- Secret needed
- transport
- STDIO
- env vars
- 6
- last updated
- Mar 16, 2026
Tools
17 toolsPublic tool metadata for what this MCP can expose to an agent.
get_sdk_documentationGet PubNub Core SDK documentation for specific programming languages and features
Get PubNub Core SDK documentation for specific programming languages and features
No parameter schema in public metadata yet.
get_chat_sdk_documentationGet PubNub Chat SDK documentation for specific programming languages and features
Get PubNub Chat SDK documentation for specific programming languages and features
No parameter schema in public metadata yet.
how_toGet PubNub conceptual guides for specific use cases and integrations
Get PubNub conceptual guides for specific use cases and integrations
No parameter schema in public metadata yet.
write_pubnub_appGet PubNub best practices guide covering architecture, security, channel modeling, and optimization
Get PubNub best practices guide covering architecture, security, channel modeling, and optimization
No parameter schema in public metadata yet.
get_sdk_migration_guideGet SDK version migration guides
Get SDK version migration guides
No parameter schema in public metadata yet.
get_general_migration_guideGet general platform migration guides
Get general platform migration guides
No parameter schema in public metadata yet.
manage_appsManage PubNub apps (list, create, update)
Manage PubNub apps (list, create, update)
No parameter schema in public metadata yet.
manage_keysetsManage PubNub keysets (get, list, create, update)
Manage PubNub keysets (get, list, create, update)
No parameter schema in public metadata yet.
get_usage_metricsFetch usage metrics for an account, app, or keyset
Fetch usage metrics for an account, app, or keyset
No parameter schema in public metadata yet.
send_pubnub_messageSend messages or lightweight signals to PubNub channels in real-time
Send messages or lightweight signals to PubNub channels in real-time
No parameter schema in public metadata yet.
subscribe_and_receive_pubnub_messagesSubscribe to channels and receive real-time messages with configurable timeout and message limits
Subscribe to channels and receive real-time messages with configurable timeout and message limits
No parameter schema in public metadata yet.
get_pubnub_messagesFetch historical messages from one or more PubNub channels
Fetch historical messages from one or more PubNub channels
No parameter schema in public metadata yet.
get_pubnub_presenceGet presence data using HereNow (channel occupancy) or WhereNow (user's channels)
Get presence data using HereNow (channel occupancy) or WhereNow (user's channels)
No parameter schema in public metadata yet.
manage_app_contextManage PubNub App Context (Objects API) for users, channels, and memberships with full CRUD operations
Manage PubNub App Context (Objects API) for users, channels, and memberships with full CRUD operations
No parameter schema in public metadata yet.
manage_illuminateManage PubNub Illuminate resources (business objects, queries, metrics, decisions, dashboards) with full CRUD, activation, analytics queries, action log inspection, and test data publishing
Manage PubNub Illuminate resources (business objects, queries, metrics, decisions, dashboards) with full CRUD, activation, analytics queries, action log inspection, and test data publishing
No parameter schema in public metadata yet.
insightsQuery PubNub Insights for aggregated analytics metrics: unique channels/users, message volume, top-N rankings (channels, users, message types), country breakdowns, new vs. recurring user trends, user duration, and device type distributions.
Query PubNub Insights for aggregated analytics metrics: unique channels/users, message volume, top-N rankings (channels, users, message types), country breakdowns, new vs. recurring user trends, user duration, and device type distributions.
No parameter schema in public metadata yet.
manage_functionsManage PubNub Functions v2 resources via the Functions Admin API: packages, revisions, deployments, KV store (string/JSON/counter), secrets (Vault), scheduled events, Integrations Catalog blueprints, and account limits.
Manage PubNub Functions v2 resources via the Functions Admin API: packages, revisions, deployments, KV store (string/JSON/counter), secrets (Vault), scheduled events, Integrations Catalog blueprints, and account limits.
No parameter schema in public metadata yet.
Sponsors
Configuration
PUBNUB_API_KEYsecretYour PubNub API Key. Required for all operations related to your account/keyset
PUBNUB_PUBLISH_KEYsecretOptional PubNub publish key for real-time operations
PUBNUB_SUBSCRIBE_KEYsecretOptional PubNub subscribe key for real-time operations
PUBNUB_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/keyset
PUBNUB_PASSWORDsecret(Deprecated - use API Key instead) Your PubNub account password. Required for all operations related to your account/keyset
Readme
PubNub MCP Server
A hosted Model Context Protocol (MCP) server that exposes PubNub SDK documentation and PubNub API resources to LLM-powered tools. This improves the LLM AI Agent's ability to understand and interact with PubNub's SDKs and APIs. Uses HTTP transport with OAuth authentication.

Features
Details
- Repository
- github.com/pubnub/pubnub-mcp-server
- Website
- www.pubnub.com/networking-mcp-server
- Package
@pubnub/mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active