Skip to main content
Glama
bluemind-mcp

bluemind-mcp

by AlexMili

bluemind-mcp

MCP (Model Context Protocol) server to read and search emails and calendar events from a BlueMind account (built against the BlueMind 5.x REST API).

Read-only: no tool modifies, sends or deletes anything.

Configuration

Three required environment variables:

Variable

Description

BLUEMIND_URL

Server URL, e.g. https://mail.example.com

BLUEMIND_EMAIL

User login (email address)

BLUEMIND_PASSWORD

Password

BLUEMIND_ALLOW_INSECURE_TLS

(optional) 1 to accept self-signed certificates

Authentication goes through POST /api/auth/login; the session authKey is then sent as the X-BM-ApiKey header on every call. The session is renewed automatically when it expires.

Related MCP server: Gmail MCP Server

Usage

Add this to your MCP client configuration (mcp_config.json, claude_desktop_config.json, etc.):

{
  "mcpServers": {
    "bluemind": {
      "command": "npx",
      "args": ["-y", "github:AlexMili/bluemind-mcp"],
      "env": {
        "BLUEMIND_URL": "https://mail.example.com",
        "BLUEMIND_EMAIL": "john.doe@example.com",
        "BLUEMIND_PASSWORD": "..."
      }
    }
  }
}

Or from a local checkout:

npm install
npm run build
{
  "mcpServers": {
    "bluemind": {
      "command": "node",
      "args": ["/path/to/bluemind-mcp/dist/index.js"],
      "env": {
        "BLUEMIND_URL": "https://mail.example.com",
        "BLUEMIND_EMAIL": "john.doe@example.com",
        "BLUEMIND_PASSWORD": "..."
      }
    }
  }
}

Tools

Mail

  • list_mail_folders — list mail folders (INBOX, Sent, …) with their folder_uid.

  • search_emails — full-text search (Elasticsearch query_string syntax): invoice, subject:meeting AND from:peter, has:attachments… Searches the whole mailbox by default, or a single folder. Parameters: query, folder_uid?, folder_name?, limit, offset.

  • list_recent_emails — latest messages of a folder (default INBOX), with an unread_only option.

  • read_email — full message content (folder_uid + item_id as returned by the two tools above): headers, text body (HTML converted to text), attachment list. Option prefer_html.

Calendar

  • list_calendars — calendars accessible to the user, with their calendar_uid. The default calendar is calendar:Default:<USERID>.

  • search_events — text search over events (POST /api/calendars/{uid}/_search), with an optional date range. Parameters: query, calendar_uid?, date_min?, date_max?, limit, offset.

  • list_events — agenda view over a date range (date_min/date_max, YYYY-MM-DD or ISO format). Recurring events are returned as series with their recurrence rule.

Development

npm run dev    # tsc --watch

Quick protocol check without an MCP client:

printf '%s\n%s\n%s\n' \
 '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
 '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
 '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
 | BLUEMIND_URL=... BLUEMIND_EMAIL=... BLUEMIND_PASSWORD=... node dist/index.js

License

MIT

Available Tools

7 tools
list_calendarsA

List the BlueMind calendars accessible to the user, with their uid (usable with search_events / list_events).

Inputs: no named parameters.

list_eventsA

List calendar events in a date range (agenda view). Defaults to the user's default calendar. Recurring events are returned as series with their recurrence rule; occurrences inside the range may need expanding from the rule.

Inputs: date_max (required), date_min (required), limit, calendar_uid.

list_mail_foldersA

List the mail folders (INBOX, Sent, ...) of the BlueMind mailbox, with their uid and full name.

Inputs: no named parameters.

list_recent_emailsA

List the most recent emails of a folder (default INBOX), newest first. Returns folder_uid + item_id usable with read_email.

Inputs: limit, folder_uid, folder_name, unread_only.

read_emailA

Read the full content of an email (headers, text body, attachment list) given its folder_uid and item_id (from search_emails or list_recent_emails).

Inputs: item_id (required), folder_uid (required), prefer_html.

search_emailsA

Full-text search of emails in the BlueMind mailbox. The query uses Elasticsearch query_string syntax: plain words search the message body, and fields can be targeted, e.g. subject:report, from:alice, to:bob@example.org, has:attachments, is:unread — combinable with AND/OR (e.g. subject:réunion AND from:pierre). By default all folders are searched; restrict with folder_uid or folder_name. Returns folder_uid + item_id usable with read_email.

Inputs: query (required), limit, offset, folder_uid, +1 more.

search_eventsA

Search calendar events by text (summary, description, location, attendees), optionally within a date range. Defaults to the user's default calendar.

Inputs: query (required), limit, offset, date_max, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools target distinct resources/actions, with clear separation between email and calendar. The only mild ambiguity is search_events vs list_events, but their descriptions (text search vs date-range agenda) differentiate them adequately.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern: list_*, search_*, read_*. This makes the toolset predictable and easy to navigate.

    Tool Count5/5

    Seven tools is a well-scoped size for an email and calendar access server. Each tool covers a distinct read-oriented operation without unnecessary redundancy.

    Completeness2/5

    The toolset is heavily read-only: it can list, search, and read emails and calendar events, but offers no send/delete/move email operations and no create/update/delete calendar event operations. For a general BlueMind server, these are significant missing capabilities unless the server is explicitly intended to be read-only.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      A lightweight MCP server for personal Microsoft Outlook/Hotmail accounts, enabling email search, reading, attachment management, and folder operations via Microsoft Graph API with OAuth device-code flow.
      6
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Read-only MCP server for Gmail that enables searching threads, reading messages, and listing labels without any write access.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Read-only MCP server that connects to multiple IMAP accounts, enabling cross-account email listing, search, and retrieval without modifying mailboxes.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A read-only Gmail MCP server enabling users to search and read emails via Gmail search syntax without sending, deleting, or modifying anything.
      -