zulip-mcp
The zulip-mcp server provides a read-only interface to browse and search Zulip chat data — no creating, modifying, or deleting anything.
Verify connection:
get_own_profileto confirm authentication and view your user info (ID, email, full name)Browse streams:
list_streams(all visible streams) orlist_subscriptions(only your subscribed streams)Look up stream ID:
get_stream_idby stream name (needed for topic listing)Explore topics:
list_topicsto list conversation threads in a stream, ordered most recent firstFetch messages:
get_messageswith flexible filters (stream, topic, sender email, full-text search) and anchor-based paginationGet a single message:
get_messageby numeric message IDList all users:
list_usersto get a directory of the entire organizationLook up a user:
get_userby numeric ID or email address
The server is designed with a hardened, secure architecture: no code execution, no filesystem access, no telemetry, local credential handling, and stdio-only communication.
Provides read-only access to Zulip chats, allowing listing of streams, topics, messages, and users, with search capabilities.
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 List all streams I'm subscribed to"
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
Minimal, secure, read-only MCP server for reading Zulip chats from Claude Code (or any MCP client). Browse streams, topics, messages, and users — nothing can be created, modified, or deleted.
Why this exists
A security review of an existing Zulip MCP server surfaced serious issues
(eval()-based remote code execution, arbitrary local file read/write, SSRF).
This is a clean, minimal alternative built around a strict read-only,
no-code-execution design. See Security.
Related MCP server: mcp-infra-readonly
Requirements
Install
Clone the repo:
git clone https://github.com/shreyan-gupta/zulip-mcp.git
cd zulip-mcpThen install with either uv or pip:
# Option A — uv (recommended; also installs the right Python)
uv sync
# Option B — pip + venv
python3 -m venv .venv
.venv/bin/pip install -e .Get your Zulip API key
Open your Zulip instance (e.g.
https://your-org.zulipchat.com).Avatar → Personal settings → Account & privacy.
Under API key, click Manage your API key and copy it.
Add to Claude Code
Run this from inside the cloned repo ($(pwd) expands to its absolute path):
# Option A — uv
claude mcp add zulip \
-e ZULIP_EMAIL=you@example.com \
-e ZULIP_API_KEY=your-api-key \
-e ZULIP_SITE=https://your-org.zulipchat.com \
-- uv run --directory "$(pwd)" zulip-mcp
# Option B — venv entry point
claude mcp add zulip \
-e ZULIP_EMAIL=you@example.com \
-e ZULIP_API_KEY=your-api-key \
-e ZULIP_SITE=https://your-org.zulipchat.com \
-- "$(pwd)/.venv/bin/zulip-mcp"Restart Claude Code, then try:
> List the streams I'm subscribed to
> Show messages in #engineering about "sync redesign"
> Summarize my last week of messages in #generalTip: ask it to call get_own_profile first to confirm the connection works.
Tools
Tool | Description |
| Verify connection, see authenticated user info |
| List channels you're subscribed to |
| List all visible streams in the org |
| Look up a stream's ID by name |
| List topics in a stream |
| Fetch messages with stream/topic/sender/search |
| Fetch a single message by ID |
| Get user profile by ID or email |
| List all users in the org |
get_messages supports anchor-based pagination and combines filters (stream,
topic, sender, full-text search) into a single query.
Security
This server is designed to be safe by construction:
Read-only — cannot create, modify, or delete any Zulip data.
No code execution — no
eval(),exec(),subprocess, or dynamic imports.No filesystem access — tools never read or write local files.
No telemetry — every network request goes exclusively to your Zulip instance.
Stdio only — no HTTP listener, no open ports.
Credentials stay local — read from env vars, never logged or returned in output.
Configuration
Configuration is via environment variables only (no .env auto-loading):
Environment Variable | Required | Description |
| Yes | Your Zulip login email or bot email |
| Yes | API key from Zulip settings |
| Yes | Base URL of your Zulip instance |
Development
uv sync --extra dev # or: pip install -e ".[dev]"
ruff check .
pytestThe test suite is offline — it never contacts a real Zulip server.
License
Available Tools
9 toolsget_messageA
Fetch a single message by its ID.
Use this when you have a specific message ID and want its full content, or when following up on a message reference from another tool's output.
Args: message_id: The numeric message ID. include_html: If True, return HTML. If False (default), raw Markdown.
Returns: JSON object with the full message details.
Inputs: message_id (required), include_html. Returns: result
get_messagesA
Fetch messages from Zulip with flexible filtering.
This is the primary tool for reading chat history. Combine filters to narrow down results — e.g., stream + topic to get a specific conversation, or sender + search to find specific messages from a person.
Pagination: Results are anchored at a point and fetch messages before/after it. To paginate through history:
First call: anchor="newest", num_before=100
Next call: anchor=, num_before=100
Repeat until found_oldest is true.
Args: stream: Filter by stream/channel name (e.g., "eng-resharding"). topic: Filter by topic/thread name within a stream. sender: Filter by sender email (e.g., "shreyan@nearone.org"). search: Full-text search query across message content. anchor: Reference point — a message ID (as string) or "newest", "oldest", "first_unread". Defaults to "newest". num_before: Number of messages before the anchor. Max 5000. Defaults to 100. num_after: Number of messages after the anchor. Max 5000. Defaults to 0. include_html: If True, return HTML-rendered content. If False (default), return raw Markdown source — better for analysis.
Returns: JSON object with keys: - messages: list of message objects (id, sender, content, timestamp, etc.) - found_newest: whether there are no newer messages matching the filter - found_oldest: whether there are no older messages matching the filter - anchor: the anchor message ID used
Inputs: topic, anchor, search, sender, +4 more. Returns: result
get_own_profileA
Get the authenticated user's own profile.
Use this to verify the connection is working and to see who is authenticated. This is the first tool to call when setting up.
Returns: JSON object with user profile: user_id, email, full_name, etc.
Inputs: no named parameters. Returns: result
get_stream_idA
Look up a stream's numeric ID by its name.
Use this when you know a stream's name but need its ID for other API calls (e.g., list_topics requires a stream_id).
Args: stream_name: Exact name of the stream (case-sensitive).
Returns: JSON object with the stream_id.
Inputs: stream_name (required). Returns: result
get_userA
Get a user's profile by their numeric ID or email address.
Args: identifier: Either a numeric user ID (e.g., "12345") or an email address (e.g., "alice@example.com").
Returns: JSON object with user profile details.
Inputs: identifier (required). Returns: result
list_streamsA
List all visible Zulip streams (channels).
Use this to discover what streams/channels exist in the organization. Returns stream names, IDs, descriptions, and subscriber counts.
Args: include_public: Include public streams. Defaults to True. include_subscribed: Include streams you're subscribed to. Defaults to True. exclude_archived: Exclude archived streams. Defaults to True.
Returns: JSON list of streams with their metadata.
Inputs: include_public, exclude_archived, include_subscribed. Returns: result
list_subscriptionsA
List streams (channels) you are subscribed to.
Use this to see which streams the authenticated user can access. More focused than list_streams — only shows your subscriptions.
Returns: JSON list of subscribed streams with names and IDs.
Inputs: no named parameters. Returns: result
list_topicsA
List topics (threads) in a stream, most recent first.
Use this to discover what conversations exist in a stream before fetching messages. Each topic is like a thread/subject line.
Args: stream_id: The numeric ID of the stream. Use get_stream_id to look this up.
Returns: JSON list of topics with names and last message IDs.
Inputs: stream_id (required). Returns: result
list_usersA
List all users in the Zulip organization.
Returns all active and deactivated users. Use this to find user IDs or email addresses for filtering messages.
Returns: JSON list of user objects with basic profile info.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: get_message vs get_messages differ in cardinality, get_user vs get_own_profile differ in target, list_streams vs list_subscriptions differ in scope. No overlap or ambiguity.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_message, list_streams). There are no deviations or mixed conventions.
9 tools is a reasonable number for a Zulip MCP server focused on reading data. Each tool serves a distinct function without being excessive or insufficient for the apparent scope.
The server is read-only, missing core write operations such as sending messages, creating streams, or subscribing. This is a significant gap for a chat platform, limiting agent capability.
Maintenance
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server for RZ AI Labs — query its services, workshops, and contact info.
Read-only MCP server for interior design studios: projects, overviews, weekly activity. No writes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables Claude Code to access MySQL databases, allowing safe querying with SELECT, SHOW, DESCRIBE, and EXPLAIN.12 npmMIT
- FlicenseNot gradedqualityBmaintenanceA read-only MCP server that gives Claude Code secure, non-invasive access to infrastructure logs, service status, metrics, Ansible facts, and Docker state via SSH, with a strict command allowlist and no write operations.-
- AlicenseNot gradedqualityBmaintenanceA read-only MCP server that gives Claude unified access to multiple Gmail and Microsoft 365 accounts, enabling email search, reading, and listing through one connection.313 npmMIT
- AlicenseNot gradedqualityBmaintenanceA read-only MCP server that gives Claude safe access to Kubernetes clusters, enabling listing, describing, and monitoring resources without mutation risks and with secret masking.1MIT