matrix
Provides two-way messaging with a Matrix homeserver, including reply threading, sending and receiving file attachments with E2EE, emoji reactions, message editing, room history fetching, and remote approval or denial of Claude Code tool calls.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Matrix Channel for Claude Code
Chat with your running Claude Code session from any Matrix client.
Works with any Matrix homeserver (Continuwuity, Synapse, Conduit, Dendrite). Full E2EE support.
Features
Two-way messaging with reply threading
File attachments (send, receive, auto-decrypt E2EE media)
Permission relay — approve/deny tool calls remotely
Runtime config — change settings without restart
Pairing-based access control
Related MCP server: openclaw-mcp
Setup (one-time)
Requires Bun.
/plugin marketplace add IA-PieroCV/cc_matrix_channel
/plugin install matrix@cc-matrix-channel
/reload-plugins
# You must need to restart your session to get the slash commands working and connect to the channel MCP
# claude --dangerously-load-development-channels plugin:matrix@cc-matrix-channel
/configure https://matrix.example.com @bot:example.com YOUR_PASSWORD
OR
/matrix:configure https://matrix.example.com @bot:example.com YOUR_PASSWORDThen pair your account — DM the bot from your Matrix client:
/access pair <code>
OR
/matrix:access pair <code>
/access policy allowlist
OR
/matrix:access policy allowlistUsage (every session)
claude --dangerously-load-development-channels plugin:matrix@cc-matrix-channelSkills
Skill | Description |
| Pairing, allowlists, groups, delivery settings |
| Credentials, status, setup guide |
Tools
Tool | Description |
| Send text + optional files, with threading |
| Emoji reaction |
| Edit a sent message |
| Download files (auto-decrypts E2EE) |
| Send local files |
| Room history |
| Approve user access (terminal only) |
Configuration
Connection (~/.claude/channels/matrix/.env)
Variable | Required | Description |
| Yes | Homeserver URL |
| Yes | Bot user ID ( |
| Yes* | Bot password (first-run only) |
| No | E2EE key storage (default: |
| No | Fallback auth (limited E2EE) |
| No | Device ID hint (auto-generated) |
| No | Encrypt store at rest |
Access & Delivery (~/.claude/channels/matrix/access.json)
Managed via /matrix:access. Changes take effect immediately.
Setting | Default | Description |
|
|
|
|
| Allowed user IDs |
|
| Per-room mention-only + patterns |
|
| Ack emoji (empty to disable) |
|
| Max chars per chunk |
|
|
|
|
|
|
Manual Install
Without the plugin system:
Download binary from Releases
Save credentials to
~/.claude/channels/matrix/.envAdd to
.mcp.json:{ "mcpServers": { "matrix": { "command": "/path/to/cc_matrix_channel" } } }claude --dangerously-load-development-channels server:matrix
Build from Source
git clone https://github.com/IA-PieroCV/cc_matrix_channel
cd cc_matrix_channel
cargo build --release # Requires Rust 1.85+Testing / Development
Test an RC build with --plugin-dir
The dev branch produces pre-release binaries. The Bun launcher downloads the exact version listed in plugin.json directly from GitHub Releases, so RC builds work the same as stable ones:
git clone https://github.com/IA-PieroCV/cc_matrix_channel
cd cc_matrix_channel
git checkout dev
# In your terminal:
claude --dangerously-load-development-channels --plugin-dir /path/to/cc_matrix_channel plugin:matrix@cc-matrix-channelThe launcher fetches the RC binary on first run and caches it.
Test local code changes (no GitHub release needed)
Build the binary and drop it in the launcher's cache path — the launcher skips the download when the file already exists:
cargo build --release
VERSION=$(grep '^version' .claude-plugin/plugin.json | sed 's/.*"\(.*\)".*/\1/')
cp target/release/cc_matrix_channel \
~/.claude/channels/matrix/plugin-data/bin/cc_matrix_channel-v${VERSION}
chmod +x ~/.claude/channels/matrix/plugin-data/bin/cc_matrix_channel-v${VERSION}Then run with --plugin-dir as above. Repeat the cp after each cargo build.
Troubleshooting
Problem | Fix |
E2EE fails | Delete store directory, restart with password |
"Cannot send to this room" | Send a message to the bot first |
Bot ignores messages | Check |
Session won't restore | Verify |
Licensed under MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects Claude with Matrix/Element to read and search messages across rooms. Enables listing rooms, viewing room information, retrieving message history, and searching conversation content from your Matrix account.42MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to communicate with an OpenClaw bot via Matrix, allowing you to send messages and read replies using natural language.GPL 3.0
- AlicenseNot gradedqualityDmaintenanceBridges a Matrix room with Claude Code's claude/channel feature, enabling chat from Matrix to interact with a running Claude Code session.GPL 3.0
- AlicenseBqualityDmaintenanceMCP server for Matrix that lets Claude list rooms, search/read messages, send messages and files, react, create rooms, and invite users, with multi-homeserver support and safe-by-default writes; no end-to-end encryption.11MIT