PubNub Model Context Protocol MCP Server for Cursor and Claude
PubNub Model Context Protocol MCP Server for Cursor and Claude. That is what the pubnub mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
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 server publishes 8 tools. What each one is for:
Cursor — Click the button above, then select Open Cursor. In Cursor, click Install, select the organization you want to authorize, and click **AllowCodex — Then run codex mcp login pubnub to authenticate, select the organization you want to authorize, and click Allow access. [Learn more in CodexOpenCode — Then run opencode mcp auth pubnub to authenticate. Learn more in OpenCode documentationPrerequisites — The Prerequisites tool exposed by this serverTesting — The Testing tool exposed by this serverTools — The Tools tool exposed by this serverPrompts — The Prompts tool exposed by this serverResources — The Resources tool exposed by this serverBecause this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Configuration is passed through the environment: PUBNUB_API_KEY, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, ADMIN_API_RESOURCE_URL, MCP_RESOURCE_URL, ADMIN_API_V2_URL, SDK_DOCS_API_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pubnub's toolset — Cursor, Codex, OpenCode and 5 more — is a fair guide to whether it matches your workflow. It is maintained by pubnub; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Pubnub's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Cursor | 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 |
| Codex | 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://platform.openai.com/docs/guides/tools/model-context- |
| OpenCode | Then run opencode mcp auth pubnub to authenticate. [Learn more in OpenCode documentation](https://opencode.ai/docs) |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Testing | The Testing tool exposed by this server. |
| Tools | The Tools tool exposed by this server. |
| Prompts | The Prompts tool exposed by this server. |
| Resources | The Resources tool exposed by this server. |
{
"mcpServers": {
"pubnub": {
"url": "https://mcp.pubnub.com"
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| PUBNUB_API_KEY | Credential the server authenticates with. | Yes |
| OAUTH_CLIENT_ID | Configuration value read at startup. | Optional |
| OAUTH_CLIENT_SECRET | Credential the server authenticates with. | Yes |
| ADMIN_API_RESOURCE_URL | Endpoint or connection string the server talks to. | Yes |
| MCP_RESOURCE_URL | Endpoint or connection string the server talks to. | Yes |
| ADMIN_API_V2_URL | Endpoint or connection string the server talks to. | Yes |
| SDK_DOCS_API_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.