Skip to main content
Glama

PubNub MCP Server

by pubnub

get_pubnub_messages

Retrieve historical messages from PubNub channels with start/end timetokens and count limits. Fetches message content and metadata in JSON format, supporting pagination for efficient data access.

Instructions

Fetches historical messages from one or more PubNub channels. Call this tool whenever you need to access past message history. Provide a list of channel names. Returns message content and metadata in JSON format. Supports pagination with start/end timetokens and count limit.

Input Schema

NameRequiredDescriptionDefault
channelsYesList of one or more PubNub channel names (strings) to retrieve historical messages from
countNoNumber of historical messages to return per channel (default: 100 for single channel, 25 for multiple channels)
endNoTimetoken delimiting the end of time slice (inclusive) to pull messages from
startNoTimetoken delimiting the start of time slice (exclusive) to pull messages from

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "channels": { "description": "List of one or more PubNub channel names (strings) to retrieve historical messages from", "items": { "type": "string" }, "minItems": 1, "type": "array" }, "count": { "description": "Number of historical messages to return per channel (default: 100 for single channel, 25 for multiple channels)", "type": "number" }, "end": { "description": "Timetoken delimiting the end of time slice (inclusive) to pull messages from", "type": "string" }, "start": { "description": "Timetoken delimiting the start of time slice (exclusive) to pull messages from", "type": "string" } }, "required": [ "channels" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pubnub/pubnub-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server