Skip to main content
Glama

twake-mcp

MCP server for Twake Workplace — connect any AI assistant to Linagora's collaboration suite.

What it does

Exposes Twake Workplace (Chat, Mail, Drive) as MCP tools that AI assistants like Claude, GPT, or Linagora's own LUCIE can use to interact with your workspace.

An AI assistant with twake-mcp can:

  • Read and send chat messages

  • Check your email inbox and read individual emails

  • Browse, read, and upload files to Drive

  • Search across all services simultaneously

Related MCP server: mcp-email-server

Tools

Tool

Description

twake_chat_send

Send a message to a chat room

twake_chat_rooms

List joined rooms

twake_chat_history

Get recent messages

twake_mail_inbox

List inbox emails

twake_mail_read

Read a specific email

twake_mail_mailboxes

List mail folders

twake_drive_list

List files and folders

twake_drive_read

Read a file

twake_drive_upload

Upload content

twake_search

Search across all services

Setup

npm install

Configure via environment variables:

# Twake Chat (Matrix)
export TWAKE_MATRIX_HOMESERVER=https://matrix.twake.app
export TWAKE_MATRIX_TOKEN=syt_...
export TWAKE_MATRIX_USER=@jacob:twake.app

# Twake Mail (JMAP)
export TWAKE_JMAP_URL=https://jmap.twake.app/jmap
export TWAKE_JMAP_TOKEN=eyJ...

# Twake Drive (Cozy)
export TWAKE_COZY_URL=https://jacob.twake.app
export TWAKE_COZY_TOKEN=eyJ...

Usage with Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "twake": {
      "command": "node",
      "args": ["/path/to/twake-mcp/src/index.js"],
      "env": {
        "TWAKE_MATRIX_HOMESERVER": "https://matrix.twake.app",
        "TWAKE_MATRIX_TOKEN": "your-token",
        "TWAKE_JMAP_URL": "https://jmap.twake.app/jmap",
        "TWAKE_JMAP_TOKEN": "your-token",
        "TWAKE_COZY_URL": "https://jacob.twake.app",
        "TWAKE_COZY_TOKEN": "your-token"
      }
    }
  }
}

Then ask Claude: "Check my Twake inbox" or "Send a message to #engineering on Twake"

Architecture

twake-mcp/
└── src/
    └── index.js          # Single-file MCP server
                           ├── API clients (Matrix, JMAP, Cozy)
                           ├── Tool implementations (10 tools)
                           └── MCP server setup (stdio transport)
┌──────────────────┐       ┌──────────────┐       ┌──────────────┐
│   AI Assistant   │       │   twake-mcp  │       │    Twake      │
│ (Claude, LUCIE,  │──────▶│  MCP Server  │──────▶│  Workplace    │
│  GPT, etc.)      │ stdio │              │ HTTPS │  (Chat/Mail/  │
│                  │◀──────│              │◀──────│   Drive)      │
└──────────────────┘       └──────────────┘       └──────────────┘

The server uses the @modelcontextprotocol/sdk stdio transport. Each tool maps directly to a Twake service API call — Matrix Client-Server API for chat, JMAP (RFC 8620/8621) for mail, and Cozy API for drive.

Zero dependencies beyond the MCP SDK. All HTTP calls use Node.js native fetch.

Why

Linagora is building LUCIE, an open-source multilingual LLM. This MCP server makes Twake Workplace AI-accessible, enabling LUCIE (or any AI) to interact with the collaboration suite. It's the bridge between Linagora's AI strategy and their product ecosystem.

License

AGPL-3.0 (matching Linagora's licensing)

Available Tools

10 tools
twake_chat_historyB

Get recent messages from a Twake Chat room

Inputs: room (required), limit.

twake_chat_roomsA

List all joined Twake Chat rooms

Inputs: no named parameters.

twake_chat_sendB

Send a message to a Twake Chat room via Matrix protocol

Inputs: room (required), message (required).

twake_drive_listB

List files and folders in Twake Drive

Inputs: path.

twake_drive_readA

Read a text file from Twake Drive by file ID

Inputs: id (required).

twake_drive_uploadA

Upload text content as a file to Twake Drive

Inputs: name (required), content (required), folder.

twake_mail_inboxA

List recent emails from Twake Mail inbox

Inputs: limit.

twake_mail_mailboxesB

List all mailboxes/folders in Twake Mail

Inputs: no named parameters.

twake_mail_readA

Read a specific email by ID from Twake Mail

Inputs: id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: chat send/list/history, mail inbox/read/mailboxes, drive list/read/upload, plus cross-service search. There is no meaningful overlap between any two tools.

    Naming Consistency3/5

    All tools share the twake_ prefix and use snake_case, but the pattern is mixed: chat uses nouns (twake_chat_rooms, twake_chat_history), drive uses verbs (twake_drive_list, twake_drive_read), mail mixes both, and twake_search drops the service segment. The names are still readable, so the inconsistency is moderate.

    Tool Count5/5

    Ten tools is well-scoped for a multi-service Twake integration covering chat, mail, drive, and search. Each tool earns its place without unnecessary redundancy or bloat.

    Completeness3/5

    The read/list actions are well covered across all services, plus chat send and drive upload. However, there are notable gaps: no mail send or delete, no drive update/delete or folder creation, and no chat room creation or management, so the lifecycle coverage is incomplete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers