Pusher Channels MCP Server
Provides tools for sending realtime events, querying channels, managing users, and generating auth tokens through the Pusher Channels API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pusher Channels MCP ServerSend a 'new-message' event to 'chat-room' with data 'Hello world'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Send an event to one or more channels |
| Send up to 10 events in a single API call |
| List active channels with optional prefix filter |
| Get subscription/user count for a channel |
| List users connected to a presence channel |
| Generate auth tokens for private/presence channels |
| Disconnect all connections for a user |
Related MCP server: agent-comm
Prerequisites
Node.js 18 or later
A Pusher Channels account (free tier available)
Installation
npm install -g @crashbytes/pusher-mcp-serverOr clone and build from source:
git clone https://github.com/CrashBytes/pusher-mcp-server.git
cd pusher-mcp-server
npm install
npm run buildConfiguration
You need four environment variables from your Pusher dashboard:
Variable | Description |
| Your Pusher app ID |
| Your Pusher app key |
| Your Pusher app secret |
| Your Pusher cluster (e.g. |
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.jsSet 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 emittingTutorial
For a step-by-step guide on building this server from scratch, see the full tutorial on CrashBytes.
License
MIT
Available Tools
7 toolsauthorize_channelA
Generate an authorization token for a private or presence channel. Useful when building auth endpoints for Pusher client connections.
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Private or presence channel name (must start with 'private-' or 'presence-') | |
| socketId | Yes | The socket ID from the client connection | |
| presenceData | No | Required for presence channels — identifies the connecting user |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Additional attributes to request | |
| channel | Yes | The channel name to query |
TDQS
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.
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.
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.
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.
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.
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-'.
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Presence channel name (must start with 'presence-') |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of disclosing behavior. It states the read-only nature ('List') and the real-time aspect ('currently connected'), but it does not disclose what happens for invalid channels, whether pagination exists, or what the response structure is. This is minimal transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence that states the action and the key constraint. It contains no filler and earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema and annotations, the description does not specify return format or error conditions. It provides enough to understand the core function but lacks details needed for robust invocation, such as response shape or edge-case behavior. For a simple single-parameter tool, this is adequate but not complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema documentation for the single 'channel' parameter includes a description, pattern, and length constraints, achieving 100% coverage. The tool description only repeats the prefix requirement without adding further parameter semantics, so it stays at the baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses the specific verb 'List' and the resource 'users currently connected to a presence channel', clearly differentiating from sibling tools like list_channels and get_channel_info. The constraint 'Only works with channels that start with "presence-"' further sharpens the scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a clear precondition (presence- prefix) and implies the use case of retrieving current users of a presence channel. However, it does not explicitly mention alternatives or when not to use this tool beyond the prefix constraint, resulting in a clear but not fully explicit guidance.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Additional attributes to include for each channel | |
| prefix | No | Filter channels by prefix (e.g. 'presence-', 'private-chat-') |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The user ID to disconnect from all channels |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Array of events to send (max 10) |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Event payload — string or JSON object (max 10KB) | |
| event | Yes | Event name to trigger (e.g. 'new-message', 'update') | |
| channel | Yes | Channel name or array of channel names (max 100) | |
| socketId | No | Optional socket ID to exclude from receiving the event (prevents echo) |
TDQS
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.
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.
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.
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.
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.
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. Dates show when Glama detected each change.
7 tool updates
v1.0.13- First observed
authorize_channel - First observed
get_channel_info - First observed
get_presence_users - First observed
list_channels - First observed
terminate_user_connections - First observed
trigger_batch_events - First observed
trigger_event
TDQS
Most tools target distinct actions (trigger, list, get, authorize, terminate). The only overlap is between trigger_event and trigger_batch_events, but descriptions clearly differentiate single vs. batch. Slight confusion possible between list_channels and get_channel_info, though one lists while the other fetches a single channel.
All tool names follow a consistent verb_noun pattern with snake_case (e.g., trigger_event, list_channels, get_channel_info). Verbs are clear and consistent, and compound names like trigger_batch_events and terminate_user_connections align with the same convention.
Seven tools is well within the ideal 3-15 range. Each tool covers a necessary operation for a Pusher Channels server without redundancy, making the set appropriately scoped.
The tool set covers the core lifecycle: triggering events (single/batch), inspecting channels, retrieving presence users, authorizing private/presence access, and terminating users. No major gaps are apparent for the domain; all common Pusher Channels operations are represented.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for Sendbird — chat users, channels, members, and messages from your AI client.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
AlicenseAqualityAmaintenanceMCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.12767773Apache 2.0- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.1595MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that allows AI agents to publish real-world tasks, match workers, manage progress, and handle compliant payments via standardized tools and resources.211MIT
- FlicenseNot gradedqualityDmaintenanceA 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.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/CrashBytes/pusher-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server