Skip to main content

ZulipChat MCP Server

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

PyPI CI Publish Coverage Gate Downloads GitHub stars Python License MCP

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 write Zulip 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, clio-coder, 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 remains explicit. See the capability matrix, the per-host integration guides, and agent bots.

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

Tool Set

13 core tools by default, 45 with --extended-tools. Hosts that search tools 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 permission rules, and asks you in the chat (answer yes or no) before risky steps. The zulipchat-mcp-agents bridge serves one Zulip Generic bot per agent that speaks the Agent Client Protocol: Claude Code and Codex through their ACP adapters, OpenCode, Goose, Gemini CLI, Clio Coder, 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 no reply. The bridge connects out to Zulip and opens no ports. Messages wait in a queue on disk, so nothing you send is lost to a restart; agents start on the first message and stop when idle, and each DM or topic resumes the same session 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 are trusting.

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 an account-scoped directory under ~/.local/state/zulipchat-mcp/accounts/, and --ephemeral-state keeps them in memory. Background-task storage is local, so route a task's follow-up requests to the instance that started it. Legacy HTTP clients may also retain transport sessions.

More clients

Dedicated setup pages:

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/akougkas/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


Built for the Zulip community

Metadata

Release files for zulipchat-mcp 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zulipchat-mcp 0.8.0
File Size Uploaded Provenance Actions
zulipchat_mcp-0.8.0.tar.gz 539.0 kB With provenance Details for zulipchat_mcp-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zulipchat-mcp 0.8.0
File Interpreter ABI Platform Actions
zulipchat_mcp-0.8.0-py3-none-any.whl Python 3 none any Details for zulipchat_mcp-0.8.0-py3-none-any.whl

Total release size: 676.7 kB

Release files / zulipchat_mcp-0.8.0.tar.gz

Download URL zulipchat_mcp-0.8.0.tar.gz
Size 539.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91ec7c430fbf94d48607dc10e62bdd3f5ed7ca4f44c749520211fd4bce863a50
BLAKE2b-256 checksum
How to use checksums
904c8cfa67c86e30dbeb646583562895c446ba4b22da9d40591e02f2cc8556eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / zulipchat_mcp-0.8.0-py3-none-any.whl

Download URL zulipchat_mcp-0.8.0-py3-none-any.whl
Size 137.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
157ca7d082189381e22b51f13db546c5d8d1a65067b8412894ce10347b308b3f
BLAKE2b-256 checksum
How to use checksums
99adca199dccc368fcad37ea0ed0dfb207b6e18edf08d538a412d3ea223a8c26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for zulipchat-mcp 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zulipchat_mcp-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page