rocketchat-mcp
This server acts as an MCP gateway to a Rocket.Chat workspace, enabling AI clients to interact with Rocket.Chat for messaging, file management, and workspace administration.
Messaging
Send messages to channels or as direct messages to users
Delete your own messages (or any with force-delete permission)
Read message history from channels, groups, or DMs (with pagination support)
Search messages by keyword within a specific room
List rooms with unread messages and their latest content
File Management
Upload files (images, documents, etc.) to channels or user DMs, with optional accompanying text
Download attachments from messages to local files
Workspace & User Management
List all rooms (channels, groups, DMs)
Create new channels
List all workspace users (requires admin/view-* permission)
Get detailed profile information for a specific user by username
Provides tools to interact with a Rocket.Chat workspace, including sending and reading messages, direct messages, file uploads/downloads, channel management, and user search.
rocketchat-mcp
An MCP server for Rocket.Chat. It lets MCP clients (Claude Desktop, Cursor, Claude Code, etc.) send and read messages, send DMs, search history, upload/download files, and manage channels on a Rocket.Chat workspace over stdio.
Actively maintained fork of elieworkspace/rocketchat-mcp, adding Personal Access Token auth, more tools, and reliability/security improvements. See NOTICE for attribution.
Tools
Tool | Description |
| Send a message to a channel |
| Send a direct message to a user |
| Delete a message (your own, unless the role has force-delete) |
| Read history of a channel/group/DM; supports |
| Keyword search within a room ( |
| List rooms with unread messages and their latest content |
| Upload a file to a channel or |
| Download a message's attachments to local files |
| List channels, groups and DMs ∗ |
| List users ∗ |
| Get a user's profile |
| Create a channel |
∗ list_all_rooms and list_users call workspace-wide endpoints
(channels.list / users.list) that require admin or the corresponding
view-* permission. Every other tool works for a normal chat user.
Related MCP server: Rocket.Chat MCP Server
Authentication
A normal chat user is enough for the core tools. A Personal Access Token is recommended — it keeps the token out of process arguments:
Variable | Description |
| Workspace URL, e.g. |
| Your Rocket.Chat user ID |
| Personal Access Token |
| (optional) orphan-watchdog interval in seconds, default |
Username/password is also supported via --username / --password.
Use --no-verify-ssl for self-signed certificates.
Usage
Run with uvx
uvx rocketchat-mcp --server-url https://chat.example.comTo run the latest unreleased code straight from GitHub instead:
uvx --from git+https://github.com/millerchou/rocketchat-mcp rocketchat-mcp --server-url https://chat.example.comClient configuration
{
"mcpServers": {
"rocketchat": {
"command": "uvx",
"args": ["rocketchat-mcp"],
"env": {
"ROCKETCHAT_SERVER_URL": "https://chat.example.com",
"ROCKETCHAT_USER_ID": "your_user_id",
"ROCKETCHAT_AUTH_TOKEN": "your_personal_access_token"
}
}
}
}Local development
git clone https://github.com/millerchou/rocketchat-mcp
cd rocketchat-mcp
uv run rocketchat.py --server-url https://chat.example.com \
--auth-token "$ROCKETCHAT_AUTH_TOKEN" --user-id "$ROCKETCHAT_USER_ID"Reliability
Persistent HTTP connection pool, room-endpoint caching, log rotation (1 MB), and an orphan watchdog that self-exits when the MCP client process dies.
License
Modifications in this fork are released under the MIT License. This is a fork of upstream code originally published without a license; see NOTICE for details.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/millerchou/rocketchat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server