PubNub (Real-time Messaging) MCP Server for LlamaIndexGive LlamaIndex instant access to 31 tools to Admin Create App, Admin Get Metrics, Admin List Apps, and more
LlamaIndex specializes in data-aware AI agents that connect LLMs to structured and unstructured sources. Add PubNub (Real-time Messaging) as an MCP tool provider through Vinkius and your agents can query, analyze, and act on live data alongside your existing indexes.
Ask AI about this MCP Server for LlamaIndex
The PubNub (Real-time Messaging) MCP Server for LlamaIndex 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 llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
mcp_client = BasicMCPClient("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
mcp_tool_spec = McpToolSpec(client=mcp_client)
tools = await mcp_tool_spec.to_tool_list_async()
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt=(
"You are an assistant with access to PubNub (Real-time Messaging). "
"You have 31 tools available."
),
)
response = await agent.run(
"What tools are available in PubNub (Real-time Messaging)?"
)
print(response)
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.
LlamaIndex agents combine PubNub (Real-time Messaging) tool responses with indexed documents for comprehensive, grounded answers. Connect 31 tools through Vinkius and query live data alongside vector stores and SQL databases in a single turn. ideal for hybrid search, data enrichment, and analytical workflows.
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 LlamaIndex 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 LlamaIndex
When LlamaIndex 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 LlamaIndex via MCP
Follow these steps to wire PubNub (Real-time Messaging) into LlamaIndex. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
pip install llama-index-tools-mcp llama-index-llms-openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use LlamaIndex with the PubNub (Real-time Messaging) MCP Server
LlamaIndex provides unique advantages when paired with PubNub (Real-time Messaging) through the Model Context Protocol.
Data-first architecture: LlamaIndex agents combine PubNub (Real-time Messaging) tool responses with indexed documents for comprehensive, grounded answers
Query pipeline framework lets you chain PubNub (Real-time Messaging) tool calls with transformations, filters, and re-rankers in a typed pipeline
Multi-source reasoning: agents can query PubNub (Real-time Messaging), a vector store, and a SQL database in a single turn and synthesize results
Observability integrations show exactly what PubNub (Real-time Messaging) tools were called, what data was returned, and how it influenced the final answer
PubNub (Real-time Messaging) + LlamaIndex Use Cases
Practical scenarios where LlamaIndex combined with the PubNub (Real-time Messaging) MCP Server delivers measurable value.
Hybrid search: combine PubNub (Real-time Messaging) real-time data with embedded document indexes for answers that are both current and comprehensive
Data enrichment: query PubNub (Real-time Messaging) to augment indexed data with live information before generating user-facing responses
Knowledge base agents: build agents that maintain and update knowledge bases by periodically querying PubNub (Real-time Messaging) for fresh data
Analytical workflows: chain PubNub (Real-time Messaging) queries with LlamaIndex's data connectors to build multi-source analytical reports
Example Prompts for PubNub (Real-time Messaging) in LlamaIndex
Ready-to-use prompts you can give your LlamaIndex 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 LlamaIndex
Common issues when connecting PubNub (Real-time Messaging) to LlamaIndex through Vinkius, and how to resolve them.
BasicMCPClient not found
pip install llama-index-tools-mcpPubNub (Real-time Messaging) + LlamaIndex FAQ
Common questions about integrating PubNub (Real-time Messaging) MCP Server with LlamaIndex.
How does LlamaIndex connect to MCP servers?
Can I combine MCP tools with vector stores?
Does LlamaIndex support async MCP calls?
Explore More MCP Servers
View all →
Railz
12 toolsFinancial data integration platform — connect accounting, banking, and commerce data via AI.

Browser Bookmarks Parser
1 toolsTurn messy Chrome, Safari, and Firefox bookmark HTML exports into clean, structured JSON data. Instantly allow your AI to organize your digital life and remove duplicate links.

PartnerPortal.io
11 toolsManage your partner and reseller programs with deal registration, lead sharing, and performance tracking for channel sales.

Stammer.ai
11 toolsManage white-label AI chatbots, knowledge bases, and sub-accounts on Stammer.ai with AI agents.
