matrix-mcp-server

matrix-mcp-server

3.3

If you are the rightful owner of matrix-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

matrix-mcp is an MCP server implemented in TypeScript for interacting with a Matrix homeserver.

matrix-mcp-server

Overview

matrix-mcp is an MCP server implemented in TypeScript that provides tools for interacting with a Matrix homeserver. It includes features such as connecting to a Matrix server, listing joined rooms, fetching room messages, and more.

Prerequisites

  • Node.js 20 or higher
  • npm (Node package manager)

Setup Instructions

  1. Clone the Repository

    git clone <repository-url>
    cd matrix-mcp-server
    
  2. Install Dependencies

    npm install
    
  3. Build the Server

    npm run build
    
  4. Test the Server

Run Inspector to test the server. Make sure you get an access token via the connect-matrix tool first.

npm run dev
npx @modelcontextprotocol/inspector

Add to VSCode

In mcp.json:

{
  "servers": {
    "matrix-mcp": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

Notes

  • This project is for development purposes. For production use, ensure proper session management and security measures are implemented.
  • Refer to the src/server.ts file for additional configuration options.

License

This project is licensed under the MIT License.