PubNub (Real-time Messaging) MCP Server for OpenAI Agents SDKGive OpenAI Agents SDK instant access to 31 tools to Admin Create App, Admin Get Metrics, Admin List Apps, and more
The OpenAI Agents SDK enables production-grade agent workflows in Python. Connect PubNub (Real-time Messaging) through Vinkius and your agents gain typed, auto-discovered tools with built-in guardrails. no manual schema definitions required.
Ask AI about this MCP Server for OpenAI Agents SDK
The PubNub (Real-time Messaging) MCP Server for OpenAI Agents SDK is a standout in the Communication Messaging category — giving your AI agent 31 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
async with MCPServerStreamableHttp(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as mcp_server:
agent = Agent(
name="PubNub (Real-time Messaging) Assistant",
instructions=(
"You help users interact with PubNub (Real-time Messaging). "
"You have access to 31 tools."
),
mcp_servers=[mcp_server],
)
result = await Runner.run(
agent, "List all available tools from PubNub (Real-time Messaging)"
)
print(result.final_output)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About PubNub (Real-time Messaging) MCP Server
Connect your PubNub account to any AI agent to orchestrate real-time communication, monitor user presence, and manage data streams through natural language.
The OpenAI Agents SDK auto-discovers all 31 tools from PubNub (Real-time Messaging) through native MCP integration. Build agents with built-in guardrails, tracing, and handoff patterns. chain multiple agents where one queries PubNub (Real-time Messaging), another analyzes results, and a third generates reports, all orchestrated through Vinkius.
What you can do
- Real-time Messaging — Publish JSON payloads to any channel and retrieve historical message logs with precise timetokens.
- Presence Monitoring — Track who is online (
here_now), see which channels a user is in (where_now), and manage custom presence states. - User & Channel Metadata — Manage App Context by creating and retrieving user profiles, channel metadata, and memberships.
- Message Management — Count messages sent after specific timestamps or purge history for compliance and storage management.
- File Sharing — Generate upload URLs and manage files stored within the PubNub network.
- Admin & Push — Monitor keyset metrics, manage applications, and configure mobile push notifications (APNS/FCM).
The PubNub (Real-time Messaging) MCP Server exposes 31 tools through the Vinkius. Connect it to OpenAI Agents SDK in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 31 PubNub (Real-time Messaging) tools available for OpenAI Agents SDK
When OpenAI Agents SDK connects to PubNub (Real-time Messaging) through Vinkius, your AI agent gets direct access to every tool listed below — spanning real-time-sync, pub-sub, data-streams, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Admin create app on PubNub (Real-time Messaging)
Create a new PubNub app (Admin API)
Admin get metrics on PubNub (Real-time Messaging)
Get usage metrics (Admin API)
Admin list apps on PubNub (Real-time Messaging)
List all PubNub apps (Admin API)
Admin list keysets on PubNub (Real-time Messaging)
List all keysets (Admin API)
Delete file on PubNub (Real-time Messaging)
Delete a file from a channel
Delete message history on PubNub (Real-time Messaging)
Delete message history for channels
Generate file upload url on PubNub (Real-time Messaging)
Generate a file upload URL
Get all channels on PubNub (Real-time Messaging)
Get all channels (App Context)
Get all users on PubNub (Real-time Messaging)
Get all users (App Context)
Get channel on PubNub (Real-time Messaging)
Get a specific channel (App Context)
Get file url on PubNub (Real-time Messaging)
Get a file URL
Get memberships on PubNub (Real-time Messaging)
Get memberships for a user (App Context)
Get message count on PubNub (Real-time Messaging)
Get message count for channels
Get message history on PubNub (Real-time Messaging)
Get message history for channels
Get user on PubNub (Real-time Messaging)
Get a specific user (App Context)
List files on PubNub (Real-time Messaging)
List files in a channel
Pam grant token on PubNub (Real-time Messaging)
Grant a PAM v3 token
Pam revoke token on PubNub (Real-time Messaging)
Revoke a PAM v3 token
Presence get state on PubNub (Real-time Messaging)
Get presence state for a user in a channel
Presence heartbeat on PubNub (Real-time Messaging)
Send presence heartbeat
Presence here now on PubNub (Real-time Messaging)
Get current channel occupancy (Here Now)
Presence leave on PubNub (Real-time Messaging)
Leave a channel (Presence)
Presence set state on PubNub (Real-time Messaging)
Set presence state for a user in a channel
Presence where now on PubNub (Real-time Messaging)
Get channels a user is in (Where Now)
Publish message on PubNub (Real-time Messaging)
Publish a message to a channel
Push manage on PubNub (Real-time Messaging)
Manage or list push notification channels for a device (APNS v2)
Push remove all on PubNub (Real-time Messaging)
Remove all push notification channels for a device (APNS v2)
Remove user on PubNub (Real-time Messaging)
Remove a user (App Context)
Set channel on PubNub (Real-time Messaging)
Set or update a channel (App Context)
Set memberships on PubNub (Real-time Messaging)
Set or update memberships for a user (App Context)
Set user on PubNub (Real-time Messaging)
Set or update a user (App Context)
Connect PubNub (Real-time Messaging) to OpenAI Agents SDK via MCP
Follow these steps to wire PubNub (Real-time Messaging) into OpenAI Agents SDK. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install the SDK
pip install openai-agents in your Python environmentReplace the token
[YOUR_TOKEN_HERE] with your Vinkius token from cloud.vinkius.comRun the script
python agent.pyExplore tools
Why Use OpenAI Agents SDK with the PubNub (Real-time Messaging) MCP Server
OpenAI Agents SDK provides unique advantages when paired with PubNub (Real-time Messaging) through the Model Context Protocol.
Native MCP integration via `MCPServerSse`, pass the URL and the SDK auto-discovers all tools with full type safety
Built-in guardrails, tracing, and handoff patterns let you build production-grade agents without reinventing safety infrastructure
Lightweight and composable: chain multiple agents and MCP servers in a single pipeline with minimal boilerplate
First-party OpenAI support ensures optimal compatibility with GPT models for tool calling and structured output
PubNub (Real-time Messaging) + OpenAI Agents SDK Use Cases
Practical scenarios where OpenAI Agents SDK combined with the PubNub (Real-time Messaging) MCP Server delivers measurable value.
Automated workflows: build agents that query PubNub (Real-time Messaging), process the data, and trigger follow-up actions autonomously
Multi-agent orchestration: create specialist agents. one queries PubNub (Real-time Messaging), another analyzes results, a third generates reports
Data enrichment pipelines: stream data through PubNub (Real-time Messaging) tools and transform it with OpenAI models in a single async loop
Customer support bots: agents query PubNub (Real-time Messaging) to resolve tickets, look up records, and update statuses without human intervention
Example Prompts for PubNub (Real-time Messaging) in OpenAI Agents SDK
Ready-to-use prompts you can give your OpenAI Agents SDK agent to start working with PubNub (Real-time Messaging) immediately.
"Publish a message to the 'alerts' channel saying 'System update scheduled for midnight'."
"Get the last 5 messages from the 'support-chat' channel."
"Who is currently active in the 'lobby' channel?"
Troubleshooting PubNub (Real-time Messaging) MCP Server with OpenAI Agents SDK
Common issues when connecting PubNub (Real-time Messaging) to OpenAI Agents SDK through Vinkius, and how to resolve them.
MCPServerStreamableHttp not found
pip install --upgrade openai-agentsAgent not calling tools
PubNub (Real-time Messaging) + OpenAI Agents SDK FAQ
Common questions about integrating PubNub (Real-time Messaging) MCP Server with OpenAI Agents SDK.
How does the OpenAI Agents SDK connect to MCP?
MCPServerSse(url=...) to create a server connection. The SDK auto-discovers all tools and makes them available to your agent with full type information.Can I use multiple MCP servers in one agent?
MCPServerSse instances to the agent constructor. The agent can use tools from all connected servers within a single run.Does the SDK support streaming responses?
Explore More MCP Servers
View all →
Flow XO
12 toolsAutomate chatbots, manage end users, and trigger workflows via AI agents with Flow XO.

Reportei
10 toolsGenerate marketing performance reports from Google, Facebook, and Instagram data in minutes for client presentations.

TestMonitor
10 toolsList QA projects, extract test runs, read user assignments, and fetch tracked issues strictly from your AI chat.

Yitu Technology / 依图科技
12 toolsChina's leading enterprise computer vision platform — perform facial recognition, search, and repository management via AI.
