matrix-bridge

matrix-bridge is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from arikw/claude-code-matrix-bridge. Its token cost is not measured, scanned B, original, MIT.

A local MCP server that connects an agent to Matrix through the matrix-bridge project. Matrix is a network for chat and other real-time communication.

In plain words
What is it for?
Use it when a project needs its configured agent-to-Matrix bridge to run.
Why use it?
It provides the configured bridge needed for an agent to use the project's Matrix connection. The available description does not specify which Matrix actions are exposed.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rx-claude-matrix-bridge plugin — 2 commands, 3 hooks, 1 MCP server shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add arikw/claude-code-matrix-bridge
Claude Code
/plugin install rx-claude-matrix-bridge

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Or install rx-claude-matrix-bridge, the plugin that ships this one along with the rest of its 2 commands, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for matrix-bridge

README.md
[![agentmods](https://agentmods.dev/badge/mcp/arikw/claude-code-matrix-bridge/matrix-bridge.svg)](https://agentmods.dev/mcp/arikw/claude-code-matrix-bridge/matrix-bridge)
Your own site
<a href="https://agentmods.dev/mcp/arikw/claude-code-matrix-bridge/matrix-bridge"><img src="https://agentmods.dev/badge/mcp/arikw/claude-code-matrix-bridge/matrix-bridge.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade B, and why

matrix-bridge scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

"valid() { [ -n \"$1\" ] && [ -f \"$1/.mcp.json\" ] && [ -d \"$1/bin\" ] && { [ -f \"$1/dist/server.js\" ] || [ -f \"$1/server.ts\" ]; }; }; ROOT=\"$CLAUDE_PLUGIN_ROOT\"; valid \"$ROOT\" || ROOT=\"\"; if [ -z \"$ROOT\" ]
.mcp.json · 9 lines

What it actually says

{
  "matrix-bridge": {
    "command": "bash",
    "args": [
      "-c",
      "valid() { [ -n \"$1\" ] && [ -f \"$1/.mcp.json\" ] && [ -d \"$1/bin\" ] && { [ -f \"$1/dist/server.js\" ] || [ -f \"$1/server.ts\" ]; }; }; ROOT=\"$CLAUDE_PLUGIN_ROOT\"; valid \"$ROOT\" || ROOT=\"\"; if [ -z \"$ROOT\" ]; then STALE=$(cat \"$HOME/.claude/channels/rx-claude-matrix-bridge/plugin-root\" 2>/dev/null); valid \"$STALE\" && ROOT=\"$STALE\"; fi; if [ -z \"$ROOT\" ]; then for v in \"$HOME\"/.claude/plugins/cache/*/rx-claude-matrix-bridge/*/; do valid \"${v%/}\" && ROOT=\"${v%/}\"; done; fi; if [ -z \"$ROOT\" ] && valid \"$PWD\"; then ROOT=\"$PWD\"; fi; if [ -f \"$ROOT/dist/server.js\" ]; then exec node \"$ROOT/dist/server.js\"; elif [ -f \"$ROOT/server.ts\" ]; then cd \"$ROOT\" && exec npx --yes tsx server.ts; else echo \"matrix-bridge: cannot locate plugin root (tried CLAUDE_PLUGIN_ROOT env, plugin-root state file, plugin cache scan, PWD). Reinstall: claude plugin install rx-claude-matrix-bridge@arikw\" >&2; exit 1; fi"
    ]
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 9 lines scan B 9be1e49c30a9

Subscribe to this mod's changes

matrix-bridge is an MCP server published in the GitHub repository arikw/claude-code-matrix-bridge (2 stars, last pushed 3mo ago), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.