Pubnub MCP Server logo

Pubnub MCP Server

by pubnub

Connects AI assistants to PubNub documentation, messaging, administration, analytics, Functions, and Illuminate workflows.

Install Pubnub MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-152": {
      "command": "npx",
      "args": [
        "-y",
        "@pubnub/mcp@latest"
      ],
      "env": {
        "PUBNUB_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

pubnub/pubnub-mcp-server connects MCP-compatible AI assistants to PubNub documentation and platform APIs through hosted Streamable HTTP or a local Node.js process. It covers SDK and migration guidance, real-time messaging, presence, App Context, application and keyset administration, usage metrics, Insights, Functions, and Illuminate resources. Use the hosted endpoint for OAuth-based access without installation, or run the package locally when the client cannot connect to remote MCP servers. PubNub API access and keyset credentials determine which messaging and administrative operations are available.

Use cases

  • Build a PubNub chat or messaging application with SDK-specific examples
  • Send, receive, inspect, and retrieve history for channel messages
  • Manage PubNub applications, keysets, users, channels, and memberships
  • Monitor usage, presence, Insights analytics, Functions, or Illuminate workflows

Key features

  • Core SDK and Chat SDK documentation retrieval
  • Application and keyset administration
  • Real-time messages, signals, history, and presence
  • App Context CRUD for users, channels, and memberships
  • Usage metrics and read-only Insights analytics
  • Functions v2 and Illuminate resource management

Tools17

What Pubnub MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~22.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

12/12 checks healthy over the last 57d

What it can do

From the 17 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 3Handles credentials · 3Makes network requests · 4Read-only tools · 14
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age544 days
Maintainers4

Observed 2026-10-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @pubnub/mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars33Stargazers on the source repository.
npm downloads2.6kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pubnub MCP Server works

What pubnub/pubnub-mcp-server does

pubnub/pubnub-mcp-server gives an AI assistant tools for building, operating, and troubleshooting PubNub applications. Documentation tools return SDK examples, API references, implementation guidance, conceptual how-to content, best-practice recommendations, and migration instructions. The documentation coverage includes both the core SDK for non-chat real-time applications and the Chat SDK for messaging features such as threads, reactions, typing indicators, read receipts, mentions, and channel management.

Operational tools can list, create, and update PubNub applications and keysets; manage App Context data for users, channels, and memberships; send or receive channel messages and signals; inspect presence; and read historical messages. Account and platform tools retrieve usage metrics, query read-only Insights analytics, manage PubNub Functions v2 resources, and manage Illuminate business objects, metrics, queries, decisions, and dashboards.

How it works

The hosted service is available at https://mcp.pubnub.com and uses HTTP transport with OAuth authentication. An MCP client connects to that URL, then the user authorizes an organization. The local option runs the published package with npx @pubnub/mcp@latest; Node.js 20 or newer is required for the standard local setup.

Messaging tools operate against PubNub channels and require the relevant publish and subscribe keys from a keyset. Subscriptions can wait for a selected number of messages for up to 30 seconds, while history queries support channel lists, time-token pagination, and count limits. Presence supports both channel occupancy/user lookup and finding the channels associated with a UUID.

Administrative tools follow PubNub resource relationships. For example, Functions deployments use packages, immutable revisions, and deployments that can be started, stopped, or rolled forward. Illuminate workflows depend on preserving resource IDs and field relationships when building queries and decisions.

Setup and configuration

For hosted use, configure the MCP client with the server URL and complete its OAuth flow. The documented clients include VS Code, Cursor, Claude Code, Claude Desktop, Codex, and Gemini CLI. Local clients can launch the package through npx and pass a PubNub Service Integration key using PUBNUB_API_KEY. A Service Integration key enables broader administrative functionality; a local configuration can also be used with a single PubNub keyset.

The hosted setup requires no package installation. Local configuration depends on the MCP client's process-launch settings. When using tools that send, receive, or inspect PubNub channel data, provide the publish and subscribe keys required by the selected keyset.

Tools and capabilities

  • Retrieve core SDK, Chat SDK, conceptual, best-practice, and migration documentation.
  • Create, list, and update applications and keysets, including keyset feature configuration.
  • Manage users, channels, and memberships through App Context operations.
  • Send messages or signals, subscribe for live messages, read history, and inspect presence.
  • Retrieve account, app, or keyset usage metrics across transactions, storage, messages, Functions, and other categories.
  • Query aggregated or ranked Insights metrics with entity, date, period, category, and filter parameters.
  • Manage Functions packages, revisions, deployments, key-value data, secrets, scheduled events, blueprints, and limits.
  • Build and operate Illuminate resources, run ad hoc queries, publish test data, verify results, and inspect decision activity.

Limitations and notes

Insights is read-only and requires an account with Insights Premium access; a 403 response can indicate that the account lacks that plan. Illuminate and some App Context administration depend on the applicable PubNub entitlements. Function operations use Admin API permission scopes that vary by account, keyset, or service resource.

Several operations have side effects. Deleting Functions packages, revisions, or deployments requires explicit confirmation, and a package must be stopped before deletion. Illuminate business-object deletion cascades to associated resources. Before replacing Illuminate presence rules, retrieve the existing rules and preserve them; unreadable rules may be overwritten. Illuminate data ingestion can take roughly 20–30 seconds after test publication, so immediate queries may not reflect newly published data.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pubnub MCP Server

pubnub/pubnub-mcp-server is an MCP server that connects AI assistants to PubNub SDK documentation and platform APIs. Its main tools retrieve core and Chat SDK guidance, manage apps and keysets, send and receive messages, inspect presence and history, query metrics and Insights, and operate Functions and Illuminate resources.

Run `npx @pubnub/mcp@latest` locally with Node.js 20 or newer, or connect an MCP client to `https://mcp.pubnub.com` without installing it. The hosted service uses OAuth; local setups can provide `PUBNUB_API_KEY` and keyset credentials as needed.

Yes, pubnub/pubnub-mcp-server works with Cursor through the hosted HTTP endpoint or a local MCP configuration. Add `https://mcp.pubnub.com` to Cursor's MCP settings for OAuth access, or configure Cursor to launch the local `npx @pubnub/mcp@latest` process.

Use `send_pubnub_message` to publish a message or signal and `subscribe_and_receive_pubnub_messages` to wait for channel traffic. Both require publish and subscribe keys from a PubNub keyset; `get_pubnub_messages` retrieves historical messages with optional time-token pagination.

Local use can provide `PUBNUB_API_KEY` for Service Integration access, while messaging and presence tools require the publish and subscribe keys from the target PubNub keyset. The hosted endpoint uses OAuth authentication instead of a local installation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPubnub MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-152?style=directory)](https://allmcps.com/mcp/mcp-server-152)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-152"><img src="https://allmcps.com/api/badge/mcp-server-152?style=directory" alt="Pubnub MCP Server on AllMCPs" /></a>