Sponsored by Deepsite.site

Zulip MCP Server

Created By
avisekrath6 months ago
unofficial zulip mcp server
Content

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
  • Channel Directory: Explore available channels 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 (19 Available Actions)

Message Operations

  • send-message - Send to channels or direct messages
  • get-messages - Retrieve with advanced filtering and search
  • upload-file - Share files and images
  • edit-message - Modify content or move topics
  • delete-message - Remove messages (admin permissions required)
  • get-message-read-receipts - Check who read messages
  • add-emoji-reaction - React with Unicode or custom emoji

Scheduled Messages & Drafts

  • create-scheduled-message - Schedule future messages
  • edit-scheduled-message - Modify scheduled messages
  • get-drafts - Retrieve saved drafts
  • edit-draft - Update draft content

Channel Management

  • get-subscribed-channels - List user's channel subscriptions
  • get-channel-id - Get channel ID by name
  • get-channel-by-id - Detailed channel information
  • get-topics-in-channel - Browse recent topics

User Operations

  • get-user-by-email - Find users by email
  • get-users - List organization members
  • update-status - Set status message and availability
  • get-user-groups - List available user groups

Installation & Setup

Prerequisites

Quick Start

  1. Clone and install dependencies:
git clone <repository-url>
cd zulip-mcp-server
npm install
  1. Configure environment variables:
cp .env.example .env
# Edit .env with your Zulip credentials
  1. Build and run:
npm run build
npm start

Environment 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=production

Getting Zulip API Credentials

  1. 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
  2. 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:

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.json
  • Windows: %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.json in your project root
  • Global: 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:

  1. Install the Raycast MCP extension
  2. Open Raycast preferences → Extensions → MCP
  3. Add new server configuration
  4. Paste the JSON configuration above
  5. Update paths and credentials accordingly

Raycast Usage:

  • Use ⌘ + Space to open Raycast
  • Search 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:

PlatformConfig TypeStatusUsage
Claude DesktopJSON config✅ VerifiedAI conversations with Zulip integration
Cursor IDEWorkspace/Global config✅ VerifiedCode editor with Zulip notifications
RaycastExtension config✅ VerifiedQuick commands and automation
Other MCP ClientsStandard MCP protocol🔄 CompatibleAny MCP-compliant application

Universal MCP Command:

node /path/to/zulip-mcp-server/dist/server.js

Development

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 checking

Project Structure

src/
├── server.ts        # Main MCP server
├── zulip/
│   └── client.ts    # Zulip API client
└── types.ts         # TypeScript definitions

Testing

Test the server using MCP Inspector:

npx @modelcontextprotocol/inspector npm start

Usage Examples

Sending Messages

// Send to a channel
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 channel
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"]]
});

Channel Management

// List subscribed channels
await callTool("get-subscribed-channels", {
  include_subscribers: true
});

// Get channel topics
await callTool("get-topics-in-channel", {
  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)
  • Channel Links: #**channel-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

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure TypeScript compilation passes
  5. Submit a pull request

Support

For issues and questions:

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server