
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP server from PubNub that exposes PubNub SDK documentation and API resources to LLM-powered tools, with a local version also available.
PubNub MCP Server is cataloged as an MCP server attributed to pubnub. A hosted MCP server from PubNub that exposes PubNub SDK documentation and API resources to LLM-powered tools, with a local version also available. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PubNub MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No, the hosted server is managed by PubNub with no installation required, though a locally installed version is available for tools that don't support remote MCP servers.
The hosted server uses OAuth authentication handled automatically, and uses HTTP transport.
Yes, tools allow sending messages or signals to channels and subscribing to receive real-time messages.
README.md · 100920ab945d · 采集于 2026-11-13 08:23:07 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.

The hosted server is managed by PubNub and provides the easiest way to get started — no installation required, and authentication is handled automatically via OAuth. If your AI tool doesn't support remote MCP servers, use the locally installed version (npx @pubnub/mcp@latest) instead.
Note: To switch to the hosted server (https://mcp.pubnub.com), remove the old local configuration from your AI client first, then follow the setup steps below.
Connect your AI assistant to https://mcp.pubnub.com — no installation required. Authentication is handled automatically via OAuth.
Click the button above, then select Open in Visual Studio Code. Back in VS Code, click Install, then select the organization you want to authorize and click Allow access.
Alternatively, add the following to your VS Code settings.json manually:
{
"mcp": {
"servers": {
"pubnub": {
"url": "https://mcp.pubnub.com"
}
}
}
}
Learn more in VS Code documentation
Click the button above, then select Open Cursor. In Cursor, click Install, select the organization you want to authorize, and click Allow access. Navigate to Cursor Settings → Tools & MCP to verify PubNub is enabled.
Alternatively, add the following to .cursor/mcp.json (or ~/.cursor/mcp.json for global configuration) manually:
{
"mcpServers": {
"pubnub": {
"url": "https://mcp.pubnub.com"
}
}
}
When you save the file, a notification is displayed. Click Enable to activate the MCP server. Learn more in Cursor documentation
In the terminal, run:
claude mcp add --scope user --transport http pubnub https://mcp.pubnub.com
Then run claude to open Claude Code and enter /mcp. Select pubnub, then authenticate, and click Allow access to complete authorization. Learn more in Claude Code documentation
Note: The following instructions apply to Pro and Max plans. For Enterprise plans, the setup is configured by your organization administrator. Refer to Anthropic's documentation for details.
https://mcp.pubnub.com as the connector URL.Learn more in Claude Desktop documentation
In the terminal, run:
codex mcp add pubnub --url https://mcp.pubnub.com
Then run codex mcp login pubnub to authenticate, select the organization you want to authorize, and click Allow access. Learn more in Codex documentation
https://mcp.pubnub.com as the server URL.Learn more in Codex Desktop documentation
In the terminal, run:
gemini mcp add pubnub --scope user --transport http https://mcp.pubnub.com
Then run gemini to open Gemini CLI and run /mcp auth pubnub to authenticate. Learn more in Gemini CLI documentation
Add the following to ~/.config/opencode/config.json:
{
"mcp": {
"pubnub": {
"type": "remote",
"url": "https://mcp.pubnub.com",
"enabled": true
}
}
}
Then run opencode mcp auth pubnub to authenticate. Learn more in OpenCode documentation
If your AI tool doesn't support remote MCP servers, run the server locally with:
npx @pubnub/mcp@latest
Before you begin, we highly recommend creating a Service Integration in the PubNub Admin Portal and providing your API key to the MCP server. While some basic features will work without it, adding an API key unlocks much more functionality. Alternatively, refer to Local server configuration for instructions on configuring the server to work with a single PubNub keyset.
The installation process for an MCP server depends on the AI assistant you're using. For the standard setup, you'll need Node.js (v20.0.0 or higher).
Just click the link above, then select "Open in Visual Studio Code" on the page that appears. Back in VS Code, click "Install". You'll be prompted to enter your PubNub API Key. Once provided, your MCP server is ready to use. For additional configuration options, refer to Local server configuration.
Click the link above, then select "Open Cursor" on the page that appears. Back in Cursor, there's a "Install MCP Server?" prompt. Make sure to provide the value for variable holding your PubNub API Key. Once you do, click "Install". Your MCP server is now ready to use. For additional configuration options, refer to Local server configuration.
With Claude Code installed run this command to have the MCP added to your configuration. Make sure to replace the value of <your-api-key>:
claude mcp add pubnub --env PUBNUB_API_KEY=<your-api-key> --scope user --transport stdio -- npx -y @pubnub/mcp@latest
Server is added in the "User" scope which means it will be available across all projects. For additional configuration options, refer to Local server configuration.
With Codex installed run this command to have the MCP added to your configuration. Make sure to replace the value of <your-api-key>:
codex mcp add pubnub --env PUBNUB_API_KEY=<your-api-key> -- npx -y @pubnub/mcp@latest
For additional configuration options, refer to Local server configuration.
Gemini CLI does not support automatic MCP installations. You'll have to manually edit your settings.json file and add the section below. Make sure to replace the value of <your-api-key>:
"mcpServers": {
"pubnub": {
"command": "npx",
"args": [
"-y",
"@pubnub/mcp@latest"
],
"env": {
"PUBNUB_API_KEY": "<your-api-key>"
}
}
}
For additional configuration options, refer to the Local server configuration section in the PubNub documentation.
npm install
npm run dev
| Variable | Description | Required |
|---|---|---|
PORT | HTTP server port (default: 3000) | No |
HOST | HTTP bind address (default: 127.0.0.1, or all interfaces when MCP_CLOUD_MODE=true) | No |
MCP_OAUTH_ENABLED | Enable OAuth authentication | Yes (for production) |
OAUTH_ISSUER | OAuth authorization server URL | When OAuth enabled |
OAUTH_CLIENT_ID | OAuth client ID | When OAuth enabled |
OAUTH_CLIENT_SECRET | OAuth client secret | When OAuth enabled |
ADMIN_API_RESOURCE_URL | Admin API resource identifier | When OAuth enabled |
MCP_RESOURCE_URL | MCP resource URL | When OAuth enabled |
MCP_CLOUD_MODE | Cloud deployment mode | No |
MCP_SESSION_SUPPORT | Enable session persistence | No |
ADMIN_API_V2_URL | Override Admin API v2 endpoint | No |
PUBNUB_ORIGIN | Override PubNub origin | No |
SDK_DOCS_API_URL | Override docs API endpoint | No |
Without OAuth, the HTTP transport (--http) runs every tool with the server's own PUBNUB_API_KEY, so it only accepts requests whose Host is localhost, 127.0.0.1 or [::1] and rejects browser requests from non-local origins with 403. Enable OAuth for any shared or remote deployment.
npm run test:unit # Unit tests
npm run test:integration # Integration tests (requires build)
npm run test:coverage # Coverage report
This PubNub MCP server provides a comprehensive set of tools, resources, and prompts to help you build real-time applications. Below is a complete reference of all available functionality:
get_sdk_documentation - Get PubNub Core SDK documentation for specific programming languages and featuresget_chat_sdk_documentation - Get PubNub Chat SDK documentation for specific programming languages and featureshow_to - Get PubNub conceptual guides for specific use cases and integrationswrite_pubnub_app - Get PubNub best practices guide covering architecture, security, channel modeling, and optimizationget_sdk_migration_guide - Get SDK version migration guidesget_general_migration_guide - Get general platform migration guidesmanage_apps - Manage PubNub apps (list, create, update)manage_keysets - Manage PubNub keysets (get, list, create, update)get_usage_metrics - Fetch usage metrics for an account, app, or keysetsend_pubnub_message - Send messages or lightweight signals to PubNub channels in real-timesubscribe_and_receive_pubnub_messages - Subscribe to channels and receive real-time messages with configurable timeout and message limitsget_pubnub_messages - Fetch historical messages from one or more PubNub channelsget_pubnub_presence - Get presence data using HereNow (channel occupancy) or WhereNow (user's channels)manage_app_context - Manage PubNub App Context (Objects API) for users, channels, and memberships with full CRUD operationsmanage_illuminate - Manage PubNub Illuminate resources (business objects, queries, metrics, decisions, dashboards) with full CRUD, activation, analytics queries, action log inspection, and test data publishinginsights - 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. Requires a Service Integration API key with Account-level Insights Read access and Insights Premium tier.manage_functions - 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. Ships Functions end-to-end — create a package, deploy a revision to a keyset, and start it. Requires a Service Integration API key with functions.package:read|write (account-level) and functions.package-deployment:read|write / keyset:read|write (keyset-level) permission scopes.hipaa-chat-short - Quick prompt to create HIPAA compliant chat applicationshipaa-chat-long - Detailed prompt for HIPAA compliant chat with Pub/Sub, Presence, and App Contextreact-app-short - Scaffold a React app with PubNub Pub/Sub and Presencereact-app-long - Comprehensive React app with real-time messaging, presence indicators, and user metadatagamelobby-short - Build multiplayer game lobby with chat and presencegamelobby-long - Advanced multiplayer lobby with team assignments and real-time featuresoem-client-management - Create apps and configure keysets for OEM client deploymentsmulti-tenant-onboarding-short - Implement automated tenant onboarding for SaaS applicationsmulti-tenant-onboarding-long - Enterprise-grade multi-tenant onboarding with data isolation and error handlingilluminate-spam-detection - Set up an Illuminate spam detection pipeline with escalating moderation actionsilluminate-reward-engagement - Build an Illuminate engagement reward pipeline for live events and gamingilluminate-use-case - Guided setup of any Illuminate analytics and automation use caseilluminate-test-verify - Test and verify an existing Illuminate configuration end-to-endinsights-snapshot - Quick high-level analytics snapshot for a date range: unique channels, unique users, message volume, top 20 channels by messages, and anomaly calloutsinsights-channel-analysis - Deep dive into top channels by ranking category, channel naming patterns, and cross-category engagement comparisonsinsights-user-growth - New vs. recurring user trends, daily/weekly/monthly breakdowns, top countries, and whale user identificationinsights-engagement-deep-dive - Average user duration, session-length bucket histogram, top channels by user-minutes, and device-type breakdown across publishes, subscribers, and unique usersfunctions-deploy - End-to-end guided deployment: author a Functions v2 handler, create a package, deploy a revision to a keyset, and start itfunctions-manage-kv-store - Inspect and edit the Functions KV store (strings, JSON, counters) and the secrets Vault on a keysetfunctions-import-blueprint - Browse the Integrations Catalog and import a blueprint as a deployed package on a keysetpubnub_sdk_docs - Access PubNub SDK documentation via URI scheme: pubnub-docs://sdk/{language}/{feature}Supported languages: asyncio, c-core, c-sharp, dart, freertos, go, java, javascript, kotlin, mbed, objective-c, php, posix-c, posix-cpp, python, ruby, rust, swift, unity, unreal, windows-c, windows-cpp
Supported features: access-manager, access-manager-v2, channel-groups, configuration, encryption, files, message-actions, misc, mobile-push, objects, presence, publish-and-subscribe, storage-and-playback
pubnub_chat_sdk_docs - Access PubNub Chat SDK documentation via URI scheme: pubnub-docs://chat-sdk/{language}/{feature}Supported Languages: javascript, kotlin, swift, unity, unreal
Supported Features: channels-create, channels-delete, channels-details, channels-invite, channels-join, channels-leave, channels-list, channels-membership, channels-references, channels-typing-indicator, channels-updates, channels-watch, connection-management, custom-events, error-logging, messages-delete, messages-details, messages-drafts, messages-files, messages-forward, messages-history, messages-links, messages-moderation, messages-pinned, messages-quotes, messages-reactions, messages-read-receipts, messages-restore, messages-send-receive, messages-threads, messages-unread, messages-updates, moderation, push-notifications, users-create, users-delete, users-details, users-list, users-mentions, users-moderation, users-moderation-user, users-permissions, users-presence, users-updates, utility-methods
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PubNub MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/pubnub)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.