Basic information
About matrix-mcp-server
MCP Server for a Matrix home server integration; chat, manage rooms, etc.
matrix-mcp-server is a MCP server in the Other category listed in the AddMCP.net directory, published by mjknowles. Supported transport: stdio. Runtime: node. License: MIT. The repository has 48 GitHub stars. Source code is hosted on github.com. Related topics: homeserver, matrix, matrix-homeserver, matrix-mcp, mcp.
Setup
{
"mcpServers": {
"matrix-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}
{
"mcpServers": {
"matrix-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}
{
"servers": {
"matrix-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}
matrix-mcp-server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"matrix-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}
matrix-mcp-server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is matrix-mcp-server?
A comprehensive Model Context Protocol (MCP) server that provides secure access to Matrix homeserver functionality. Built with TypeScript, it enables MCP clients to interact with Matrix rooms, messages, users, and more through a standardized interface.
How to use matrix-mcp-server?
Install dependencies via npm, build the project, configure environment variables in a .env file, and start the server with npm start. Clients connect via HTTP transport, providing headers for Matrix user ID, homeserver URL, and access token (or OAuth). The server offers two authentication modes: OAuth mode for production and development mode for testing.
Key features of matrix-mcp-server
- OAuth 2.0 authentication with token exchange support
- 15 Matrix tools organized by functionality tiers
- Multi‑homeserver support with configurable endpoints
- Real‑time operations with ephemeral client management
- Comprehensive error handling and input validation
- Rich responses with detailed Matrix data
Use cases of matrix-mcp-server
- List rooms the user has joined and retrieve room details
- Send messages, direct messages, and manage room membership
- Search public rooms and filter messages by date range
- Identify most active users in a room by message count
- Create, join, leave, and administer Matrix rooms
Frequently asked questions
1 What is OAuth mode and when should I use it?
OAuth mode uses full OAuth 2.0 integration with your identity provider, supports token exchange for Matrix homeserver authentication, and is recommended for production deployments.
2 What are the runtime requirements?
Node.js 20+ and npm, access to a Matrix homeserver (Synapse, Dendrite, etc.), and an MCP client like Claude Desktop or VS Code with MCP extension.
3 Where does user and room data reside?
All data lives on the Matrix homeserver. The server creates ephemeral Matrix clients that authenticate, perform operations, and clean up automatically; no data is stored locally.
4 How are permissions and security handled?
All Matrix clients are ephemeral, OAuth prevents direct token exposure, room power levels and permissions are respected, and input validation uses Zod schemas. CORS is also configurable.
5 Can I use matrix-mcp-server without OAuth?
Yes. In development mode (ENABLE_OAUTH=false) you can use direct Matrix access tokens, but this is not recommended for production.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In