PanStudio

ZulipChat MCP Server

Community PanStudio
Updated

ZulipChat MCP Server - A Model Context Protocol server that bridges AI agents with Zulip Chat. Built with FastMCP for lightning-fast performance, featuring comprehensive chat management and intelligent summarization. Transform your Zulip workspace into an AI-powered collaboration hub!

ZulipChat MCP Server

Model Context Protocol server for Zulip Chat. Connect Claude Code, Codex, PanCode, OpenCode, Copilot, Antigravity CLI, Gemini CLI, and other MCP clients to Zulip.

PyPICIPublishCoverage GateDownloadsGitHub starsPythonLicenseMCP

Quick Start · Setup Wizard · Integrations · Two-Tier Tools · Contributing

Quick Start

uvx zulipchat-mcp --zulip-config-file ~/.zuliprc

Configure this command in your MCP client to let the assistant read and writeZulip messages with the configured account.

Need a zuliprc? Zulip Settings > Personal > Account & privacy > API key — download the file, save it as ~/.zuliprc.

Interactive onboarding:

uvx --from zulipchat-mcp zulipchat-mcp-setup

What This Does

ZulipChat MCP bridges any MCP-compatible AI assistant (Claude Code, Gemini CLI, Cursor, Windsurf, etc.) to your Zulip workspace. The assistant can:

  • Send and read messages — stream messages, DMs, replies, reactions
  • Search conversation history — full-text search with filters for sender, stream, time range
  • Resolve people by name — verify a unique recipient before sending; ambiguous names need clarification
  • Switch identities — post as yourself or as a bot, in the same session
  • Monitor activity — search recent messages, get stream info, check who's online
  • Talk to local coding agents from Zulip through the zulipchat-mcp-agents bridge, which pairs one Zulip bot per agent with an ACP agent on your machine (Agent bots)
  • Reuse dated snapshots — short-lived message caches and rate-aware request admission reduce repeated API reads
  • Load the Agent Skill — one packaged zulipchat skill for messaging, reading and handing a conversation to an agent bot, available as a local file and an MCP Resource
  • Export agent packages — native host configuration and the skill, a Claude Code plugin, or an Agent Plugins 1.0.0 package

Agent setup

# Substitute another supported client as needed.
uvx --from zulipchat-mcp zulipchat-mcp-integrate export --client claude-code \
  --output-dir /absolute/path/to/project \
  --zulip-config-file /absolute/path/to/.zuliprc --extended-tools

Exports support claude-code, codex, opencode, copilot, vscode,antigravity-cli, pancode, and generic. Add --mode plugin for a package.For several Zulip organizations, export once per organization with--server-id zulipchat-<org>; exports merge into one host configuration.Account state lives under ~/.local/state/zulipchat-mcp/. Host trust remainsexplicit. See the capability matrix, theper-host integration guides, andagent bots.

For read-only access, add --tool-profile read-only: discovery and executionboth expose seven core reads or 21 extended reads. The default full profilehas 13 core tools and 45 extended. See API coverage and efficiencyfor cache freshness, rate limits and the boundary between message transport andhost execution. Hosts were tested through exported configuration andfake-credential checks, not live sessions.

Tool Set

13 core tools by default, 45 with --extended-tools. Hosts that searchtools lazily, such as Claude Code, pay almost nothing for the larger set.

Category Core tools
Messaging send_message (names, emails or IDs), edit_message, get_message, add_reaction
Reading search_messages, get_streams, get_stream_topics, manage_message_flags
Users resolve_user, get_users
Agent bots teleport_chat (plus ask_owner inside agents the bridge launches)
System server_info, switch_identity

Talk to your agent from Zulip

Your coding agents get Zulip accounts. DM "Claude" or "Codex" from your phone;the agent runs on your machine, in your repositories, under its own permissionrules, and asks you in the chat (answer yes or no) before risky steps. Thezulipchat-mcp-agents bridge serves one Zulip Generic bot per agent thatspeaks the Agent Client Protocol: Claude Code and Codex through their ACPadapters, OpenCode, Goose, Gemini CLI, PanCode, or any other ACP agent.

uv tool install zulipchat-mcp
zulipchat-mcp-agents add claude          # creates the bot with ~/.zuliprc
zulipchat-mcp-agents service install     # runs now and at every login

Only the bot's owner, and user IDs you list, are heard; anyone else gets noreply. The bridge connects out to Zulip and opens no ports. Messages wait in aqueue on disk, so nothing you send is lost to a restart; agents start on thefirst message and stop when idle, and each DM or topic resumes the samesession until you send /new. From a running agent,teleport_chat(agent, message, session_id) hands the conversation to that bot.See Agent bots, including what you aretrusting.

Extended Mode

Need scheduled messages, reminders, topic resolution, read receipts, event queues, or file uploads?

uvx zulipchat-mcp --zulip-config-file ~/.zuliprc --extended-tools

Or via environment variable:

ZULIPCHAT_EXTENDED_TOOLS=1 uvx zulipchat-mcp --zulip-config-file ~/.zuliprc

Extended mode adds: cross_post_message, get_scheduled_messages, manage_scheduled_message, get_drafts, create_draft, edit_draft, delete_draft, register_events, get_events, listen_events, upload_file, manage_files, get_daily_summary, manage_user_mute, get_user, get_presence, get_user_groups, and more.

Installation

Full per-client setup guide: docs/integrations/README.md

Claude Code

claude mcp add zulipchat -- uvx zulipchat-mcp --zulip-config-file ~/.zuliprc

With dual identity (you + a bot):

claude mcp add zulipchat -- uvx zulipchat-mcp \
  --zulip-config-file ~/.zuliprc \
  --zulip-bot-config-file ~/.zuliprc-bot

Optional Claude package export for a project-local .mcp.json and the skill:

uvx --from zulipchat-mcp zulipchat-mcp-integrate export \
  --client claude-code \
  --mode standalone \
  --output-dir . \
  --zulip-config-file ~/.zuliprc \
  --zulip-bot-config-file ~/.zuliprc-bot

Gemini CLI

Add to ~/.gemini/settings.json under mcpServers:

{
  "zulipchat": {
    "command": "uvx",
    "args": ["zulipchat-mcp", "--zulip-config-file", "/path/to/.zuliprc"]
  }
}

Claude Desktop / Cursor / Any MCP Client

Add to your MCP configuration:

{
  "mcpServers": {
    "zulipchat": {
      "command": "uvx",
      "args": ["zulipchat-mcp", "--zulip-config-file", "/path/to/.zuliprc"]
    }
  }
}

Configuration Options

Option Description
--zulip-config-file PATH Path to your zuliprc file
--zulip-bot-config-file PATH Bot zuliprc for dual identity
--extended-tools Register all 45 tools instead of the 13-tool core set
--tool-profile {full,read-only} Filter discovery and enforce read-only Zulip calls; default: full
--ephemeral-state Write no files: keep read caches in memory (for sandboxes with no writable state directory)
--transport {stdio,http} Transport to serve on (default: stdio)
--host HOST Bind host for HTTP transport (default: 127.0.0.1)
--port PORT Bind port for HTTP transport (default: 8000)
--auth-token TOKEN Bearer auth token for HTTP transport (or ZULIPCHAT_HTTP_AUTH_TOKEN)
--allowed-host HOST Additional trusted HTTP hostname; repeat for multiple names
--allowed-origin URL Additional trusted browser origin; repeat for multiple origins
--unsafe Enable administrative tools (use with caution)
--debug Enable debug logging

Remote HTTP Transport

ZulipChat MCP supports stateless HTTP deployments under the MCP 2026-07-28 protocol:

# Run server over HTTP with bearer authentication
ZULIPCHAT_HTTP_AUTH_TOKEN=your-secret-token \
  uvx zulipchat-mcp --zulip-config-file ~/.zuliprc --transport http --host 0.0.0.0 --port 8000 --allowed-host mcp.internal

Generate client integration snippets for remote HTTP connections:

uvx --from zulipchat-mcp zulipchat-mcp-integrate print --client claude-code --remote-url http://mcp.internal:8000/mcp --remote-token your-secret-token

HTTP startup requires a bearer token for non-loopback binds and validates Host and Origin headers. Configure --allowed-host for the hostname used by clients or a reverse proxy; terminate TLS at the proxy for remote connections. A token grants access to the configured Zulip account: deploy a separate instance per trusted account, rather than sharing it across unrelated users.

HTTP tools reject server-local file paths and switch_identity. Upload text with file_content or binary bytes with file_content_base64; download without download_path to obtain a URL. Use stdio for local file operations and runtime identity switching. Attachment deletion requires --unsafe.

The server keeps no conversation state. Short-lived read caches live in anaccount-scoped directory under ~/.local/state/zulipchat-mcp/accounts/, and--ephemeral-state keeps them in memory. Background-task storage is local, soroute a task's follow-up requests to the instance that started it. Legacy HTTPclients may also retain transport sessions.

More clients

Dedicated setup pages:

  • Gemini CLI
  • Codex
  • OpenCode
  • VS Code + GitHub Copilot
  • Cursor
  • Windsurf
  • Antigravity
  • Generic MCP

Dual Identity

Configure both a user and a bot zuliprc to let your assistant switch between identities mid-session:

uvx zulipchat-mcp \
  --zulip-config-file ~/.zuliprc \
  --zulip-bot-config-file ~/.zuliprc-bot

The assistant posts as you by default. Pass as_bot=True to send_message to post one message as the bot, or call switch_identity to change the default. Agent bots for the bridge are separate Generic bots with their own zuliprc files.

Real-World Examples

"Catch me up on what happened in #engineering today"→ Assistant calls search_messages with stream + time filter, summarizes the thread.

"Tell the team we're deploying at 3pm"→ Assistant calls send_message to #engineering with the announcement.

"Who sent that message about the API migration?"→ Assistant calls search_messages with keywords, returns sender and context.

"React with :thumbs_up: to Sarah's last message"→ Assistant calls search_messages with sender="Sarah", then add_reaction.

"DM Jaime that the PR is ready"→ Assistant calls send_message(type="direct", to="Jaime", ...). One call; an ambiguous name returns candidates and sends nothing.

"Continue this on Zulip, I'm heading out"→ Assistant calls teleport_chat(agent="claude", message=..., session_id=...); the Claude bot DMs you and the bridge resumes the session when you reply.

Development

git clone https://github.com/PanStudio/zulipchat-mcp.git
cd zulipchat-mcp
uv sync
uv run zulipchat-mcp --zulip-config-file ~/.zuliprc

Run checks:

uv run pytest -q              # full test suite, 60% coverage gate
uv run ruff check .           # Linting
uv run mypy src               # Type checking

For packaging, dependency, FastMCP, or startup changes, run the release smoke:

uv build
scripts/pre_release_smoke.sh --version X.Y.Z --allow-dirty

See CONTRIBUTING.md for the full guide, and CLAUDE.md / AGENTS.md for AI agent instructions.

Architecture

src/zulipchat_mcp/
├── core/           # Client wrapper, identity, caching, security
├── tools/          # MCP tool implementations (two-tier registration)
├── services/       # The bot message queue the bridge drains
├── agents/         # zulipchat-mcp-agents bridge (agent bots over ACP)
├── utils/          # Logging, redaction, metrics
└── config.py       # config loading (zuliprc + environment fallback)

Built on FastMCP with async-first design and user/stream caching for fast fuzzy resolution. The bridge keeps its state in SQLite under ~/.local/state/zulipchat-mcp/agents/.

Privacy

  • No data collection — nothing leaves your machine except Zulip API calls
  • No telemetry — zero analytics, tracking, or usage reporting
  • Local execution — all processing happens on your hardware
  • Credentials stay local — API keys are never logged or transmitted beyond your Zulip server

Full policy: PRIVACY.md

License

MIT — See LICENSE

Links

Part of Anthony Kougkas's agentic engineering work: akougkas.io/work/agentic-engineering

Built for the Zulip community

MCP Server · Populars

MCP Server · New

    PanStudio

    ZulipChat MCP Server

    ZulipChat MCP Server - A Model Context Protocol server that bridges AI agents with Zulip Chat. Built with FastMCP for lightning-fast performance, featuring comprehensive chat management and intelligent summarization. Transform your Zulip workspace into an AI-powered collaboration hub!

    Community PanStudio
    United-Compute

    GPU Price Tracker: open data

    This project tracks the market prices and performance metrics of various GPUs.

    Community United-Compute
    Graphify-Labs

    graphify

    Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

    Community Graphify-Labs
    superdesigndev

    Treg (OpenRouter for Tools)

    OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

    Community superdesigndev