Skip to main content
Glama
rosquillas

Element MCP Server

by rosquillas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for HTTP mode3000
TRANSPORTNoTransport type: 'stdio' or 'http'stdio
MATRIX_HOMESERVERNoYour Matrix homeserver URLhttps://matrix.org
MATRIX_ACCESS_TOKENYesYour Matrix access token (REQUIRED). Get it from Element Settings > Help & About > Access Token

Tools

Functions exposed to the LLM to take actions

NameDescription
matrix_list_rooms

List all Matrix rooms that the user has joined.

Returns room IDs, names, and basic information about each room. Use this to discover which rooms are available before fetching messages.

Returns:

  • List of rooms with room_id, name, topic, and member count

  • Use room_id with matrix_get_messages to read messages

matrix_get_messages

Retrieve messages from a specific Matrix room.

Use matrix_list_rooms first to get available room IDs.

Args:

  • room_id: The room ID to fetch messages from

  • limit: Maximum messages to return (1-100, default 50)

  • from: Pagination token for fetching more messages

  • direction: 'b' for older messages, 'f' for newer

Returns:

  • List of messages with sender, timestamp, and content

  • Pagination tokens for fetching more messages

matrix_search_messages

Search for messages across Matrix rooms.

Search for specific content within messages. Can search all rooms or a specific room.

Args:

  • query: Text to search for in messages

  • room_id: Optional room ID to limit search scope

  • limit: Maximum results (1-50, default 10)

Returns:

  • Matching messages with room, sender, and content

matrix_get_room_info

Get detailed information about a specific Matrix room.

Returns room name, topic, members, and other state information.

Args:

  • room_id: The room ID to get info for

Returns:

  • Room name, topic, creation info, and member list

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/rosquillas/element-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server