Zulip MCP Server
The Zulip MCP Server enables programmatic interaction with a Zulip workspace, providing tools for AI assistants and applications to integrate with Zulip.
Key capabilities include:
Message Operations: Send, edit, delete, and retrieve messages, add emoji reactions, upload files/images, check read receipts, and manage scheduled messages and drafts
Stream Management: List subscribed streams, get stream information by ID/name, and browse topics within streams
User Management: Search and retrieve user information, update status and availability
Organization Features: Access user groups and organization information
Formatting Support: Utilize Zulip's Markdown syntax including mentions and code blocks
The server is designed to integrate with MCP-compliant clients like Claude Desktop, Cursor IDE, and Raycast.
Compatible with Raycast MCP extension, enabling quick commands and automation for Zulip interactions directly from the Raycast interface.
Exposes Zulip REST API capabilities, allowing AI assistants to interact with Zulip workspaces through message operations (sending, retrieving, editing), channel management, user operations, and handling scheduled messages and drafts.
Click on "Deploy 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., "@Zulip MCP Server send a message to the #general stream saying the weekly team meeting starts in 10 minutes"
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.
Zulip MCP Server
A Model Context Protocol (MCP) server that exposes Zulip REST API capabilities as tools for LLMs. This server allows AI assistants to interact with your Zulip workspace programmatically.
Features
π Resources (Contextual Data)
User Directory: Browse organization members with roles and status
Stream Directory: Explore available streams and permissions
Message Formatting Guide: Complete Zulip markdown syntax reference
Organization Info: Server settings, policies, and custom emoji
User Groups: Available groups for mentions and permissions
π οΈ Tools (25 Available Actions)
Helper Tools (LLM-Friendly Discovery)
search-users- Find users by name/email before sending DMsget-started- Test connection and get workspace overview
Message Operations
send-message- Send to streams or direct messagesget-messages- Retrieve with advanced filtering and searchget-message- Get detailed information about specific messageupload-file- Share files and imagesedit-message- Modify content or move topicsdelete-message- Remove messages (admin permissions required)get-message-read-receipts- Check who read messagesadd-emoji-reaction- React with Unicode or custom emojiremove-emoji-reaction- Remove emoji reactions from messages
Scheduled Messages & Drafts
create-scheduled-message- Schedule future messagesedit-scheduled-message- Modify scheduled messagescreate-draft- Create new message draftsget-drafts- Retrieve saved draftsedit-draft- Update draft content
Stream Management
get-subscribed-streams- List user's stream subscriptionsget-stream-id- Get stream ID by nameget-stream-by-id- Detailed stream informationget-topics-in-stream- Browse recent topics
User Operations
get-users- List organization membersget-user-by-email- Find users by emailget-user- Get detailed user information by IDupdate-status- Set status message and availabilityget-user-groups- List available user groups
Related MCP server: Zulip MCP Server
π Zulip Terminology: Streams vs Channels
In Zulip, "streams" and "channels" refer to the same concept:
Stream = Official Zulip terminology (used in API, tools, interface)
Channel = Common term from Slack/Discord/Teams
Same thing = Conversation spaces where teams discuss topics
This MCP server uses "stream" to match Zulip's official documentation and API.
Installation & Setup
Prerequisites
Node.js 18+ with npm
TypeScript 5+
Access to a Zulip instance (e.g., https://your-organization.zulipchat.com)
Zulip API credentials (bot token or API key)
Quick Start
Clone and install dependencies:
git clone <repository-url>
cd zulip-mcp-server
npm installConfigure environment variables:
cp .env.example .env
# Edit .env with your Zulip credentialsBuild and run:
npm run build
npm startEnvironment Configuration
Create a .env file with your Zulip credentials:
ZULIP_URL=https://your-organization.zulipchat.com
ZULIP_EMAIL=your-bot-email@yourcompany.com
ZULIP_API_KEY=your-api-key-here
NODE_ENV=productionGetting Zulip API Credentials
For Bot Access (Recommended):
Go to your Zulip organization settings
Navigate to "Bots" section
Create a new bot or use existing one
Copy the bot email and API key
For Personal Access:
Go to Personal Settings β Account & Privacy
Find "API key" section
Generate or reveal your API key
Claude Desktop Integration
To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop config file:
Option 1: Using Environment Variables (Recommended)
Add to your Claude Desktop configuration:
{
"mcpServers": {
"zulip": {
"command": "node",
"args": ["/path/to/zulip-mcp-server/dist/server.js"],
"env": {
"ZULIP_URL": "https://your-organization.zulipchat.com",
"ZULIP_EMAIL": "your-bot-email@yourcompany.com",
"ZULIP_API_KEY": "your-api-key-here"
}
}
}
}Option 2: Using .env File
If you prefer using a .env file, ensure it's in the project directory and use:
{
"mcpServers": {
"zulip": {
"command": "node",
"args": ["/path/to/zulip-mcp-server/dist/server.js"],
"cwd": "/path/to/zulip-mcp-server"
}
}
}Claude Desktop Config Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor Integration
To use this MCP server with Cursor IDE, add the following to your Cursor MCP settings:
Cursor MCP Configuration
Add to Cursor's MCP settings file (.cursor-mcp/config.json in your workspace or global settings):
{
"mcpServers": {
"zulip": {
"command": "node",
"args": ["/path/to/zulip-mcp-server/dist/server.js"],
"env": {
"ZULIP_URL": "https://your-organization.zulipchat.com",
"ZULIP_EMAIL": "your-bot-email@yourcompany.com",
"ZULIP_API_KEY": "your-api-key-here"
},
"capabilities": {
"tools": true,
"resources": true
}
}
}
}Cursor MCP Config Location:
Workspace:
.cursor-mcp/config.jsonin your project rootGlobal: Platform-specific Cursor settings directory
Raycast MCP Extension
To use this MCP server with Raycast, configure it in the MCP extension settings:
Raycast MCP Configuration
Add to Raycast MCP extension configuration:
{
"servers": {
"zulip": {
"name": "Zulip Integration",
"description": "Send messages and interact with Zulip workspace",
"command": "node",
"args": ["/path/to/zulip-mcp-server/dist/server.js"],
"env": {
"ZULIP_URL": "https://your-organization.zulipchat.com",
"ZULIP_EMAIL": "your-bot-email@yourcompany.com",
"ZULIP_API_KEY": "your-api-key-here"
},
"icon": "π¬",
"categories": ["communication", "productivity"]
}
}
}Raycast Setup Steps:
Install the Raycast MCP extension
Open Raycast preferences β Extensions β MCP
Add new server configuration
Paste the JSON configuration above
Update paths and credentials accordingly
Raycast Usage:
Use
β + Spaceto open RaycastSearch for "Zulip" commands
Execute MCP tools directly from Raycast interface
Supported MCP Clients
This server is compatible with any MCP-compliant client. Here are the verified integrations:
Platform | Config Type | Status | Usage |
Claude Desktop | JSON config | β Verified | AI conversations with Zulip integration |
Cursor IDE | Workspace/Global config | β Verified | Code editor with Zulip notifications |
Raycast | Extension config | β Verified | Quick commands and automation |
Other MCP Clients | Standard MCP protocol | π Compatible | Any MCP-compliant application |
Universal MCP Command:
node /path/to/zulip-mcp-server/dist/server.jsDevelopment
Scripts
npm run dev # Development with hot reload
npm run build # Build for production
npm test # Run tests
npm run lint # Lint TypeScript
npm run typecheck # Type checkingProject Structure
src/
βββ server.ts # Main MCP server
βββ zulip/
β βββ client.ts # Zulip API client
βββ types.ts # TypeScript definitionsTesting
Test the server using MCP Inspector:
npx @modelcontextprotocol/inspector npm startUsage Examples
Sending Messages
// Send to a stream
await callTool("send-message", {
type: "stream",
to: "general",
topic: "Daily Standup",
content: "Good morning team! π\n\n**Today's Goals:**\n- Review PR #123\n- Deploy feature X"
});
// Direct message
await callTool("send-message", {
type: "direct",
to: "user@example.com",
content: "Hey! Can you review the latest changes when you have a moment?"
});Getting Messages
// Get recent messages from a stream
await callTool("get-messages", {
narrow: [["stream", "general"], ["topic", "announcements"]],
num_before: 50
});
// Search messages
await callTool("get-messages", {
narrow: [["search", "deployment"], ["sender", "admin@example.com"]]
});Stream Management
// List subscribed streams
await callTool("get-subscribed-streams", {
include_subscribers: true
});
// Get stream topics
await callTool("get-topics-in-stream", {
stream_id: 123
});Markdown Formatting Support
The server includes a comprehensive formatting guide resource. Zulip supports:
Standard Markdown: Bold, italic, code, links, lists
Mentions:
@**Full Name**(notify),@_**Name**_(silent)Stream Links:
#**stream-name**Code Blocks: With syntax highlighting
Math: LaTeX expressions with
$$math$$Spoilers:
||hidden content||Custom Emoji: Organization-specific emoji
Error Handling
The server provides comprehensive error handling:
Network connectivity issues
Authentication failures
Permission errors
Rate limiting
Invalid parameters
Zulip API errors
All errors include helpful messages for debugging.
Contributing
Fork the repository
Create a feature branch
Add tests for new functionality
Ensure TypeScript compilation passes
Submit a pull request
Support
For issues and questions:
Check Zulip API documentation: https://zulip.com/api/
Review MCP specification: https://modelcontextprotocol.io/
Open GitHub issues for bugs or feature requests
Available Tools
25 toolsadd-emoji-reactionC
Add an emoji reaction to a message.
Inputs: message_id (required), emoji_name (required), emoji_code, reaction_type.
create-draftB
π CREATE DRAFT: Save a message as draft for later editing or sending. For user IDs in the 'to' field, use search-users or get-users tool to discover available users and their IDs.
Inputs: type (required), to (required), topic (required), content (required), +1 more.
create-scheduled-messageB
Schedule a message to be sent at a future time. For direct messages, use comma-separated email addresses or get user info from the users-directory resource (zulip://users).
Inputs: type (required), to (required), content (required), scheduled_delivery_timestamp (required), +1 more.
delete-messageB
Delete a message by its ID.
Inputs: message_id (required).
edit-draftC
Update an existing message draft. For user IDs in the 'to' field, use the users-directory resource (zulip://users) or get-users tool to discover available users and their IDs.
Inputs: draft_id (required), type (required), to (required), topic (required), +2 more.
edit-messageB
Edit an existing message's content or topic.
Inputs: message_id (required), content, topic.
edit-scheduled-messageA
Modify a scheduled message before it's sent. For direct messages, use comma-separated email addresses or get user info from the users-directory resource (zulip://users).
Inputs: scheduled_message_id (required), type, to, content, +2 more.
get-draftsA
Retrieve all saved message drafts.
Inputs: no named parameters.
get-messageA
π SINGLE MESSAGE: Get complete details about one specific message when you have its ID. Use this for in-depth analysis, checking edit history, reactions, or metadata. Returns single message with full details.
Inputs: message_id (required), apply_markdown, allow_empty_topic_name.
get-message-read-receiptsB
Get list of users who have read a specific message.
Inputs: message_id (required).
get-messagesA
π BULK RETRIEVAL: Get multiple messages with filtering, pagination, and search. Use this to browse conversations, search for content, or get message history. Returns array of messages with basic details.
Inputs: anchor, num_before, num_after, narrow, +1 more.
get-startedA
π START HERE: Test connection and get workspace overview. Use this first to verify everything is working and see available streams. Perfect for orientation and troubleshooting.
Inputs: no named parameters.
get-stream-by-idB
π STREAM DETAILS: Get comprehensive information about a stream (channel) when you have its numeric ID. Returns stream settings, description, subscriber count, etc.
Inputs: stream_id (required), include_subscribers.
get-stream-idA
π’ STREAM ID LOOKUP: Get the numeric ID of a stream (channel) when you know its name. Use this to get the stream ID needed for other operations.
Inputs: stream_name (required).
get-subscribed-streamsA
πΊ USER STREAMS: Get all streams you're subscribed to. Use this to see what streams are available before sending messages. Note: In Zulip, 'streams' and 'channels' refer to the same thing - conversation spaces for teams.
Inputs: include_subscribers.
get-topics-in-streamA
π¬ STREAM TOPICS: Get all recent topics (conversation threads) in a specific stream (channel). Use this to browse what's being discussed in a stream.
Inputs: stream_id (required).
get-userA
π DETAILED LOOKUP: Get comprehensive user profile when you have their user ID (from search-users results). Returns complete user information including role, timezone, avatar, and custom profile fields.
Inputs: user_id (required), client_gravatar, include_custom_profile_fields.
get-user-by-emailA
π§ EXACT LOOKUP: Find a user when you have their exact email address. Use this when you know the specific email and need detailed profile information. Returns single user with complete details.
Inputs: email (required), client_gravatar, include_custom_profile_fields.
get-user-groupsB
Get all user groups in the organization.
Inputs: no named parameters.
get-usersA
π₯ ALL USERS: Get complete list of all users in the organization with their profile information. Use this to see everyone at once or when you need the full user directory.
Inputs: client_gravatar, include_custom_profile_fields.
remove-emoji-reactionB
Remove an emoji reaction from a message.
Inputs: message_id (required), emoji_name (required), emoji_code, reaction_type.
search-usersA
π DISCOVERY: Search for users by partial name or email when you don't know exact details. Use this first to explore and find users before sending direct messages. Returns multiple matching results with basic info (name, email, ID).
Inputs: query (required), limit.
send-messageA
π¬ SEND MESSAGE: Send a message to a Zulip stream (channel) or direct message to users. IMPORTANT: For streams use exact names from 'get-subscribed-streams'. For DMs use actual email addresses from 'search-users' tool (NOT display names). Always include 'topic' for stream messages.
Inputs: type (required), to (required), content (required), topic.
update-statusA
Update user status message with emoji and availability. Examples: Unicode emoji (emoji_name: 'coffee', emoji_code: '2615'), custom org emoji (reaction_type: 'realm_emoji'), or Zulip special emoji (reaction_type: 'zulip_extra_emoji').
Inputs: status_text, away, emoji_name, emoji_code, +1 more.
upload-fileB
Upload a file or image to Zulip.
Inputs: filename (required), content (required), content_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 25 tools
All 25 tools have clearly distinct purposes. Message tools are differentiated by operation type (single vs bulk, send vs edit vs delete). Stream and user tools each target a specific resource and action, leaving no ambiguity.
All tool names follow a consistent verb-noun pattern with hyphens (e.g., add-emoji-reaction, get-message, send-message). Even 'get-started' fits the pattern. No mixing of styles.
25 tools is on the higher end but appropriate for a comprehensive chat server like Zulip. The number covers message operations, streams, users, emoji, drafts, scheduled messages, and file uploads, though a few could be merged (e.g., get-user and get-user-by-email could be one tool).
The tool set covers core messaging and user operations well, but notable gaps exist: no tools to create or update streams, nor to manage user groups beyond listing them. Also, there is no tool to get all streams (only subscribed ones). These omissions could limit agent workflows.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
A Model Context Protocol server for Wix AI tools
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis server implements the Model Context Protocol to facilitate meaningful interaction and understanding development between humans and AI through structured tools and progressive interaction patterns.57-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with Zulip workspaces, supporting capabilities such as posting messages, listing channels, sending direct messages, and accessing conversation history.812Apache 2.0
- AlicenseAqualityBmaintenanceA server implementing Model Context Protocol that enables AI assistants to interact with Slack API through a standardized interface, providing tools for messaging, channel management, user information retrieval, and more.11109Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Python server implementing the Model Context Protocol that exposes tools for querying external APIs, compatible with Claude Desktop and ChatGPT Desktop.-