Skip to main content
Glama
CrashBytes

Pusher Channels MCP Server

by CrashBytes

Pusher Channels MCP Server

An MCP (Model Context Protocol) server that gives AI agents the ability to send realtime messages, query channels, and manage users through Pusher Channels.

Tools

Tool

Description

trigger_event

Send an event to one or more channels

trigger_batch_events

Send up to 10 events in a single API call

list_channels

List active channels with optional prefix filter

get_channel_info

Get subscription/user count for a channel

get_presence_users

List users connected to a presence channel

authorize_channel

Generate auth tokens for private/presence channels

terminate_user_connections

Disconnect all connections for a user

Related MCP server: agent-comm

Prerequisites

Installation

npm install -g @crashbytes/pusher-mcp-server

Or clone and build from source:

git clone https://github.com/CrashBytes/pusher-mcp-server.git
cd pusher-mcp-server
npm install
npm run build

Configuration

You need four environment variables from your Pusher dashboard:

Variable

Description

PUSHER_APP_ID

Your Pusher app ID

PUSHER_KEY

Your Pusher app key

PUSHER_SECRET

Your Pusher app secret

PUSHER_CLUSTER

Your Pusher cluster (e.g. us2, eu, ap1)

Usage with Claude Desktop

Add the following to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "pusher": {
      "command": "node",
      "args": ["/path/to/pusher-mcp-server/build/index.js"],
      "env": {
        "PUSHER_APP_ID": "your_app_id",
        "PUSHER_KEY": "your_app_key",
        "PUSHER_SECRET": "your_app_secret",
        "PUSHER_CLUSTER": "us2"
      }
    }
  }
}

If installed globally via npm:

{
  "mcpServers": {
    "pusher": {
      "command": "pusher-mcp-server",
      "env": {
        "PUSHER_APP_ID": "your_app_id",
        "PUSHER_KEY": "your_app_key",
        "PUSHER_SECRET": "your_app_secret",
        "PUSHER_CLUSTER": "us2"
      }
    }
  }
}

Usage with Claude Code

claude mcp add pusher -- node /path/to/pusher-mcp-server/build/index.js

Set the environment variables in your shell before running, or configure them in your Claude Code MCP settings.

Example Prompts

Once configured, you can ask Claude things like:

  • "Send a 'deploy-complete' event to the notifications channel with the message 'v2.1.0 deployed'"

  • "Show me all active presence channels"

  • "How many users are on the presence-lobby channel?"

  • "Disconnect user abc123 from all channels"

Development

npm install
npm run dev          # Run with tsx (hot reload)
npm run build        # Compile TypeScript
npm run type-check   # Check types without emitting

Tutorial

For a step-by-step guide on building this server from scratch, see the full tutorial on CrashBytes.

License

MIT

Available Tools

7 tools
authorize_channelA

Generate an authorization token for a private or presence channel. Useful when building auth endpoints for Pusher client connections.

NameRequiredDescriptionDefault
channelYesPrivate or presence channel name (must start with 'private-' or 'presence-')
socketIdYesThe socket ID from the client connection
presenceDataNoRequired for presence channels — identifies the connecting user

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries the burden. It states that the tool generates a token, implying a read-only operation, but it does not explicitly disclose side effects, authentication requirements, or error behavior. It adds some context about Pusher but lacks explicit transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently communicates the core purpose and use case. No wasted words or redundant detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a simple scope, complete schema coverage, and no output schema. The description provides the key use-case context. It could mention that presenceData is required for presence channels, but the schema already does, so the description is adequately complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters in detail. The description adds general context about building auth endpoints but no parameter-specific semantics beyond what the schema provides. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb and resource: 'Generate an authorization token for a private or presence channel.' It also distinguishes itself from sibling tools by focusing on auth tokens rather than events, channel info, or user connections.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says 'Useful when building auth endpoints for Pusher client connections,' which clearly indicates the intended use case. It doesn't explicitly mention alternatives, but sibling tools serve different purposes, so the guidance is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_channel_infoA

Get detailed information about a specific Pusher channel, including whether it is occupied and optional subscription/user counts.

NameRequiredDescriptionDefault
infoNoAdditional attributes to request
channelYesThe channel name to query

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description carries the burden of behavioral disclosure. It explains the returned data (occupancy and optional counts) but does not explicitly note that the operation is read-only, any authentication requirements, or error behavior. The verb 'Get' implies safety, but more detail would improve transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently conveys the tool's purpose and key optional behavior without any redundant or extraneous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given its simplicity (2 parameters, no output schema), the description adequately covers the main functionality and return expectations. It could be more complete by mentioning error handling or a sample output, but the current level is sufficient for an agent to decide when to use it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both parameters. The description adds minimal semantic value by mentioning 'optional subscription/user counts,' which aligns with the 'info' parameter, but does not clarify the enum values or provide additional context beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function with a specific verb ('Get') and resource ('detailed information about a specific Pusher channel'). It distinguishes itself from sibling tools like list_channels by focusing on a single named channel, and mentions unique aspects like occupancy and optional counts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide any explicit guidance on when to use this tool versus alternatives such as list_channels or get_presence_users. It implies usage when you have a specific channel, but lacks direct comparisons or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_presence_usersA

List all users currently connected to a presence channel. Only works with channels that start with 'presence-'.

NameRequiredDescriptionDefault
channelYesPresence channel name (must start with 'presence-')

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It implies a read-only operation ("currently connected") and discloses the presence-channel naming constraint, but says nothing about auth requirements, pagination, whether the list can be large, or how stale/disconnected members are handled. That leaves meaningful gaps for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the core action front-loaded and the constraint immediately following. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, read-only lookup with full schema coverage and no output schema, the description supplies the essential scoping rule an agent needs to call it correctly. Only minor behavioral detail (auth, result size/ordering) is absent, which is tolerable at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single required parameter 'channel' is already fully documented in the schema, including the starts_with pattern and length bounds. The description only restates the 'presence-' prefix rule, adding no meaning beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ("List") and resource ("all users currently connected to a presence channel"), which is clearly separable from siblings like list_channels (which lists channels, not users) and terminate_user_connections. It stops short of explicitly naming a sibling as the alternative, so it is clear but not maximally differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states one real precondition — the channel must start with 'presence-' — which tells the agent when the tool is applicable. However, it gives no guidance on when to prefer this over get_channel_info or terminate_user_connections, and no indication of what happens if the precondition is violated (error vs empty result). Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_channelsA

List all active channels in your Pusher app. Optionally filter by prefix (e.g. 'presence-' or 'private-') and request subscription or user counts.

NameRequiredDescriptionDefault
infoNoAdditional attributes to include for each channel
prefixNoFilter channels by prefix (e.g. 'presence-', 'private-chat-')

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that only 'active' channels are listed and that counts may be included, but it does not mention pagination, rate limits, authentication requirements, or response structure. For a read-only listing tool, this is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the main action ('List all active channels') and compactly describes the optional parameters. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description confirms a list of channels but does not detail the return format (e.g., channel names, attributes) or mention pagination/limits. Given the tool's simplicity and optional parameters, the description is mostly complete but could benefit from one clarifying phrase about response shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% — both parameters (info, prefix) have descriptions, including examples. The description rephrases these options but adds little beyond the schema's own text. Baseline is 3 since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List all active channels in your Pusher app', which is a specific verb+resource. It distinguishes itself from siblings like get_channel_info (which targets a single channel) by emphasizing the listing of all channels. The mention of optional filters and counts adds scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the tool's context ('List all active channels') and options ('filter by prefix', 'request subscription or user counts'), but does not explicitly state when to avoid it or name alternatives. It implies use for broad listing but lacks explicit 'when not to use' guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

terminate_user_connectionsA

Disconnect all connections for a specific user. Useful for moderation or security — forces a user offline across all channels.

NameRequiredDescriptionDefault
userIdYesThe user ID to disconnect from all channels

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the core behavior (disconnects all connections, forces offline) but omits details like irreversibility, required permissions, or side effects (e.g., the user can reconnect). This is acceptable for a simple action but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action, and every word adds value. It avoids fluff and is immediately scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a single simple parameter, no output schema, and no annotations. The description effectively covers what it does and why someone would use it, which is complete enough for an agent to invoke correctly in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes 'userId' as 'The user ID to disconnect from all channels' with 100% coverage. The tool description adds no new parameter semantics beyond restating it. Baseline 3 applies because the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Disconnect') and resource ('all connections for a specific user'), clearly distinguishing it from sibling tools that handle events, channels, presence, and authorization. It also states the expected outcome: forces the user offline across all channels.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a clear use case ('useful for moderation or security') and implies when to use it. It does not explicitly mention when not to use it or name alternative tools, but none of the siblings handle disconnecting user connections, so the guidance is adequate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

trigger_batch_eventsA

Send up to 10 events in a single API call. More efficient than triggering events individually when you need to notify multiple channels.

NameRequiredDescriptionDefault
eventsYesArray of events to send (max 10)

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of disclosure. It mentions the batch limit but fails to explain authentication requirements, partial failure behavior, response format, or side effects. For a mutating operation, this lack of behavioral detail is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences. The first states the core action and limit, the second provides usage context and efficiency reasoning. Every word earns its place, with no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the schema covers parameters, the absence of an output schema and any description of return values or error handling leaves the context incomplete. The tool has batch semantics and nested objects, so some guidance on expected results or failure modes would improve completeness. The description is adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes the 'events' array and all nested properties (channel, name, data, socketId) with descriptions, so the baseline is 3. The tool description adds minimal semantic value beyond noting multi-channel notification, which is already implicit in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool sends up to 10 events in one API call, using a specific verb ('Send') and resource ('events'). It distinguishes from the sibling tool 'trigger_event' by explicitly mentioning the batch capability, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly contrasts with individual event triggering ('More efficient than triggering events individually') and identifies the use case ('when you need to notify multiple channels'), giving clear context for when to choose this tool over the alternative. It stops short of describing when not to use it, but the guidance is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

trigger_eventA

Send an event to one or more Pusher channels. Use this to push realtime messages to connected clients.

NameRequiredDescriptionDefault
dataYesEvent payload — string or JSON object (max 10KB)
eventYesEvent name to trigger (e.g. 'new-message', 'update')
channelYesChannel name or array of channel names (max 100)
socketIdNoOptional socket ID to exclude from receiving the event (prevents echo)

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It states the action and effect (push realtime messages) but does not disclose potential side effects, rate limits, authorization requirements, or failure behavior. The socketId exclusion is only in the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action, and every word earns its place. It is appropriately sized with no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is relatively simple with a well-covered schema, but there is no annotation and no output schema. The description covers basic purpose and use but lacks details about success/failure responses, rate limits, or relationship to sibling batch tool, making it minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: every parameter (data, event, channel, socketId) has a description in the schema. The tool description adds no additional parameter semantics beyond what the schema already provides, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Send an event to one or more Pusher channels' with a specific verb and resource. It distinguishes from siblings like trigger_batch_events (which handles multiple events) and list_channels by focusing on sending a single event to channels.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says 'Use this to push realtime messages to connected clients,' providing clear usage context. It does not explicitly mention when not to use it or mention alternatives like trigger_batch_events, so it lacks exclusions but gives a definite scenario.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.18
    • Changedget_presence_users1 field changed
      • addedInput schema / properties / channel / format
        Added value: +"starts_with"
  2. 7 tool updatesv1.0.13
    • First observedauthorize_channel
    • First observedget_channel_info
    • First observedget_presence_users
    • First observedlist_channels
    • First observedterminate_user_connections
    • First observedtrigger_batch_events
    • First observedtrigger_event

TDQS

A4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct resource+action: getting one channel's info, listing all channels, listing presence users, authorizing, triggering single vs batch events, and terminating users. The only mild adjacency is get_channel_info vs list_channels, but descriptions make the single-vs-collection boundary explicit.

Naming Consistency5/5

All 7 tools follow a consistent snake_case verb_noun pattern (get_, list_, authorize_, terminate_, trigger_). No mixing of conventions or vague verbs.

Tool Count5/5

7 tools is well-scoped for the Pusher Channels HTTP API surface, with no redundant or filler tools. Each maps to a meaningful capability agents need.

Completeness4/5

Covers the core lifecycle: channel info, channel listing, presence users, auth, event triggering (single and batch), and user termination. Minor gaps exist (e.g. webhook/signature handling or per-channel event queries), but core realtime workflows are fully covered.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    MCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.
    12
    3,055 npm
    793
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.
    107 npm
    9
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A standalone MCP server providing AI agents with full access to the Pumble messaging platform via OAuth2 and the Pumble SDK, including messaging, files, channels, search, scheduling, and real-time events.
    MIT