# PubNub MCP Server

> PubNub MCP Server is an MCP server for developer tools. MCP server giving AI coding tools access to your PubNub account and docs. It is available on CLI, API, VS Code, Web and Self-hosted.

- **Kind:** MCP server
- **Platforms:** CLI, API, VS Code, Web, Self-hosted
- **Website:** https://www.pubnub.com/docs/ai/pubnub-mcp-server
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Connects an AI coding assistant to a PubNub account so it can handle account tasks from plain-language requests. Once connected, the assistant can create apps and keysets, look up current SDK and Chat SDK documentation and migration guides, read usage metrics and Insights analytics, publish and subscribe to channels, read message history, query Presence and App Context data, and manage Functions and Illuminate resources.

There are two ways to connect. The hosted server at mcp.pubnub.com works with tools that support remote MCP servers: you sign in with your PubNub account, choose the organization to authorize, and the connection inherits that user's permissions. Tools that only run local servers can instead start the @pubnub/mcp npm package on your machine, authenticated with a PubNub API key. The local version exposes the same tools, but the key's permissions define what the assistant can do, so scoping it narrowly matters.

It suits developers building on PubNub who already work inside VS Code, Cursor, Claude Code, Claude Desktop, Codex, Gemini CLI or OpenCode and want the assistant to read and change their PubNub resources directly.

## Features

- **Hosted remote server:** Connect to mcp.pubnub.com with a PubNub sign-in, with nothing to install.
- **Local npm server:** Run the @pubnub/mcp package on your machine using an API key.
- **App and keyset management:** Create and configure apps and keysets from plain-language requests.
- **Documentation lookup:** Query current SDK and Chat SDK docs and migration guides.
- **Messaging and data access:** Publish, subscribe, read message history, and query Presence and App Context.
- **Usage and analytics reads:** Read usage metrics and Insights analytics for your account.

## Good for

- Scaffolding a new PubNub app and keyset from an AI coding session
- Checking SDK migration steps while updating a chat app
- Publishing a test message to a channel to verify a integration
- Reviewing usage metrics and Insights data without leaving the editor
- Managing Functions and Illuminate resources through natural language

## FAQ

### Do I need to install anything to use the hosted server?

No. You connect to https://mcp.pubnub.com and sign in with your PubNub account, after which the tool is ready to use.

### What is needed for the local server?

Node.js 20.0.0 or higher and a PubNub Service Integration API key. Claude Desktop runs the local server through Docker instead, so it needs Docker.

### Which AI tools are supported?

The setup guide covers VS Code, Cursor, Claude Code, Claude Desktop, Codex, Codex Desktop, Gemini CLI and OpenCode, plus any other MCP-compatible tool.

### Can the assistant do anything with my account?

The local server's API key permissions limit what it can do, and the hosted connection gets the same permissions as the signed-in user in that organization.

### What are the best alternatives to PubNub MCP Server?

The closest alternatives to PubNub MCP Server are Ncp, Npm Run MCP Server, .NET MCP Server, Npm Package Info Mcp and Npm Search MCP.

## Where this comes from

- Description: written from the project's website.

## Alternatives

- [Ncp](https://ai-powered.com/mcp/ncp): Ncp is an open-source MCP server for developer tools.
- [Npm Run MCP Server](https://ai-powered.com/mcp/npm-run-mcp-server): Npm Run MCP Server is an open-source MCP server for developer tools.
- [.NET MCP Server](https://ai-powered.com/mcp/net-mcp-server): .NET MCP Server is an open-source MCP server for developer tools.
- [Npm Package Info Mcp](https://ai-powered.com/mcp/npm-package-info-mcp): Npm Package Info Mcp is a freemium MCP server for developer tools.
- [Npm Search MCP](https://ai-powered.com/mcp/npm-search-mcp-2): Npm Search MCP is an open-source MCP server for developer tools.
- [Vercel MCP](https://ai-powered.com/mcp/vercel-mcp): Vercel MCP is an MCP server for cloud and infrastructure.
- [MCP Launcher](https://ai-powered.com/mcp/mcp-launcher): MCP Launcher is an open-source MCP server for developer tools.
- [McpMux](https://ai-powered.com/mcp/mcpmux-2): McpMux is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/pubnub-mcp-server-2
