dendrite-admin-mcp
Provides tools for administering a Matrix homeserver (Dendrite) — managing users, evacuating and purging rooms, sending server notices, and managing registration tokens.
Click on "Install 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., "@dendrite-admin-mcpReset the password for @john:example.org to a temporary one"
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.
dendrite-admin-mcp
An MCP (Model Context Protocol) server that exposes Dendrite's admin API as tools, so an LLM agent can administer a Dendrite Matrix homeserver: manage users, evacuate/purge rooms, send server notices, manage registration tokens, and more.
Setup
npm install
cp .env.example .env # fill in DENDRITE_BASE_URL and DENDRITE_ADMIN_TOKEN
npm run buildConfiguration
Env var | Required | Purpose |
| yes | Base URL of the homeserver's client-facing port, e.g. |
| yes | Access token of a Dendrite server admin user; sent as a Bearer token to all |
| no |
|
Related MCP server: litellm-mcp
Transports
This server supports two MCP transports, selected via MCP_TRANSPORT:
stdio(default) — for a client that spawns this process directly (e.g. a local Claude Code / editor MCP config). No network exposure.http— runs a stateless Streamable HTTP MCP server onMCP_HTTP_HOST:MCP_HTTP_PORT(default0.0.0.0:3939), for remote clients over LAN/Tailscale. RequiresMCP_AUTH_TOKEN; every request to/mcpmust sendAuthorization: Bearer <token>. Generate one withopenssl rand -hex 32.
Running
npm run build && npm startFor local development with auto-reload:
npm run devTo poke at the tools interactively (stdio transport):
npm run inspectorRunning with Docker
cp .env.example .env # fill in DENDRITE_BASE_URL, DENDRITE_ADMIN_TOKEN,
# set MCP_TRANSPORT=http and MCP_AUTH_TOKEN
docker compose up -d --buildThis builds the image, starts the container with restart: unless-stopped, and publishes port 3939. A /healthz endpoint (no auth required) backs the container healthcheck.
Tools
Tool | Dendrite endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
purge_room and evacuate_* are irreversible/disruptive — see CLAUDE.md for guidance on when an agent should confirm before calling them.
Connecting a remote client (HTTP transport)
Once deployed with MCP_TRANSPORT=http, point a client at http://<host>:3939/mcp with
an Authorization: Bearer <MCP_AUTH_TOKEN> header. <host> can be a LAN IP or a
Tailscale IP/MagicDNS name — whichever the client can reach.
Claude Code:
claude mcp add --transport http dendrite-admin --scope user \
http://<host>:3939/mcp \
--header "Authorization: Bearer <MCP_AUTH_TOKEN>"opencode (~/.config/opencode/opencode.jsonc for a user-wide server):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"dendrite-admin": {
"type": "remote",
"url": "http://<host>:3939/mcp",
"headers": { "Authorization": "Bearer <MCP_AUTH_TOKEN>" }
}
}
}Codex CLI (~/.codex/config.toml):
[mcp_servers.dendrite-admin]
url = "http://<host>:3939/mcp"
bearer_token_env_var = "DENDRITE_ADMIN_MCP_TOKEN"bearer_token_env_var names an environment variable Codex reads at startup —
export it in your shell profile, e.g. export DENDRITE_ADMIN_MCP_TOKEN=<MCP_AUTH_TOKEN>.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityFmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.Last updated53
- Alicense-qualityCmaintenanceMCP server that provides tools to interact with the LiteLLM proxy API, enabling LLM completions, embeddings, image generation, and admin operations.Last updated10MIT
- Flicense-qualityDmaintenanceMCP server for Rocket.Chat, enabling AI agents to interact with Rocket.Chat workspaces via tools like listing users, sending messages, and managing channels.Last updated2
- FlicenseAqualityCmaintenanceMCP server that connects LLM agents to a local LM Studio instance, enabling model management, OpenAI-compatible chat completions, text completions, and embeddings through a set of tools.Last updated91
Related MCP Connectors
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/niels-emmer/dendrite-admin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server