# PubNub MCP
> PubNub's official MCP is available as a hosted OAuth server or a local npm/Docker server. It exposes documentation, PubNub account/keyset management, real-time messaging, presence, App Context, Insights, Illuminate, and Functions operations.
Canonical: https://www.mcpfolio.com/servers/pubnub
Last updated: 2026-10-28
## Catalog record

- Publisher: PubNub
- Categories: communication

## Website

https://www.pubnub.com/docs/ai-development/mcp-server

## Repository

https://github.com/pubnub/pubnub-mcp-server

## Transports

Streamable HTTP (hosted); stdio (local)

## Authentication

Hosted: OAuth, sign in and authorize an organization. Local: PUBNUB_API_KEY service-integration key; optional PUBNUB_PUBLISH_KEY and PUBNUB_SUBSCRIBE_KEY for fixed-key mode. Tool access follows key/user permissions.

## Tools

- **get_sdk_documentation**: Retrieve current PubNub SDK documentation for a language and feature.
- **get_chat_sdk_documentation**: Retrieve PubNub Chat SDK documentation for a supported language.
- **how_to**: Retrieve a conceptual PubNub guide for a feature or use case.
- **write_pubnub_app**: Return architecture and implementation best practices for PubNub applications.
- **get_sdk_migration_guide**: Retrieve migration guidance for a major version of one SDK.
- **get_general_migration_guide**: Retrieve a platform-wide PubNub migration guide.
- **manage_apps**: List, create or rename PubNub applications.
- **manage_keysets**: Read or manage keysets and messaging feature configuration.
- **get_usage_metrics**: Read PubNub usage metrics for an account, app or keyset over a date range.
- **send_pubnub_message**: Publish a message or signal to a PubNub channel.
- **subscribe_and_receive_pubnub_messages**: Subscribe to a channel and receive messages for a bounded wait period.
- **get_pubnub_messages**: Read persisted PubNub messages, optionally filtered by timetoken.
- **get_pubnub_presence**: Read channel occupancy or a user’s channel subscriptions.
- **manage_app_context**: Read, set or remove App Context users, channels and memberships.
- **manage_illuminate**: Create, query and manage Illuminate Business Objects, metrics, Decisions and Dashboards.
- **insights**: Run read-only PubNub Insights analytics queries.
- **manage_functions**: Manage PubNub Functions packages, deployments, KV data, secrets, scheduled events and catalog blueprints.

## Sources

- [official_documentation](https://www.pubnub.com/docs/ai-development/available-mcp-tools)
- [official_tool_reference](https://www.pubnub.com/docs/ai-development/mcp-server)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/pubnub) to view instructions for each supported client.