SuperAPIAI Directory

ox-mcp

github.com · AI developer platforms

Email (IMAP/SMTP), Sieve mail filters, CalDAV calendars, CardDAV contacts and free/busy scheduling for Open-Xchange and standards-based mail platforms.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

ox-mcp is an MCP (Model Context Protocol) server for connecting to Open-Xchange and standards-based mail platforms. It enables MCP clients (such as Claude Desktop / Claude Code) to read and search mail, send and reply to mail, manage server-side filters, work with calendar events and invitations, manage contacts, and query other people's free/busy status, with support for one or more accounts.

Purpose and protocol foundation The server uses the standard IMAP + SMTP + ManageSieve + CalDAV + CardDAV protocols and supports RFC 6638 free/busy, so it can connect to any Open-Xchange deployment or standards-compliant mail host. Authentication is by email address plus app password (the same credentials used by DAVx5), and OAuth2/OIDC is also supported. The project states that it is not affiliated with Open-Xchange.

Main capabilities

  • Mail: read, search, send, reply (email_reply / email_reply_all preserve In-Reply-To / References threading information and exclude your own address when replying to all), mark as spam, archive. email_search searches all folders by default and can narrow the scope with the folder parameter.
  • Filters: email_filter_create / email_filter_update manage server-side Sieve filters via ManageSieve (port 4190, STARTTLS, requires basic/app password authentication). Rules support conditions on from / to / subject / any header (AND or OR), and actions include fileinto (move to folder), discard, markRead, redirect.
  • Calendar: manage calendar events and invitations; the three RSVP tools (calendar_accept_event / calendar_decline_event / calendar_tentative_event) share the respondEvent feature switch, rewrite the PARTSTAT in the invitation, and have the server notify the organizer.
  • Contacts: contact_find searches server-side via CardDAV addressbook-query (RFC 6352) and automatically falls back to client-side filtering; fields can limit the match scope to name / email / phone / org (default name + email). contact_list is a plain enumeration.
  • Free/busy: calendar_free_busy returns available time windows via the CalDAV scheduling outbox (busy/free only), without requiring calendar sharing, without revealing event details, and requires the server to advertise schedule-outbox-URL. To read a colleague's full calendar, they need to share the calendar with your account, and the shared calendar will then appear in calendar_list / calendar_list_events.

Usage Configure it in an MCP client (Claude Desktop / Claude Code). On first run (without --config), it creates ~/.ox-mcp/config.json (permissions 0600), which lists all feature switches—reads enabled by default, writes disabled by default—and leaves hosts empty for you to fill in. Use --config <file> (or the environment variable OX_MCP_CONFIG, with command-line arguments taking precedence) to load an explicit configuration file; in that case the file must already exist and will not be created automatically.

Tools are grouped by protocol domain, and only groups that are enabled and have the corresponding server host configured will appear. Except for list_servers, every tool accepts an optional server parameter to specify the account; if a tool's feature switch is not enabled for any account, that tool will not appear in the tool list.

Configuration structure Each account consists of up to three independent sections—mail, calDav, cardDav—each with its own server, auth (including an independent login user), and features. This accommodates servers like Open-Xchange that divide app passwords by protocol: the mail password, CalDAV password, and CardDAV password can all be different. Sections that are not configured have their tools disabled, and configuring only calDav is perfectly valid.

mail.transport is optional, defaults to "ox-api", i.e. Open-Xchange HTTP API (webmail backend, https://<server>/appsuite/api). OX is deployed on this middleware to validate app passwords, so it also works in environments where the raw IMAP rejects app passwords; in this case server is the webmail host. The filter tooling uses the OX mailfilter/v2 module to list and edit the account's real webmail rules (rules outside that model are listed read-only as other). Note: search matches only subject/address, not the full body. Setting transport: "imap" uses IMAP/SMTP directly against a generic (non-OX) mail host; in this case server is the mail host, and separate imap / smtp endpoints may optionally be used.

enabled: false on a section is the master configuration switch for all tools in that section. There is no global features block; switches exist only within sections (environment variables are still global).

Resolution precedence (environment variables always take precedence over configuration; the first defined wins):

  1. Per-account environment variable, tool level — OX_MCP_<ID>_ENABLE_EMAIL_SEND
  2. Per-account environment variable, group level — OX_MCP_<ID>_ENABLE_MAIL
  3. Global environment variable, tool level — OX_MCP_ENABLE_EMAIL_SEND
  4. Global environment variable, group level — OX_MCP_ENABLE_MAIL / _CALDAV / _CARDDAV
  5. Section configuration, tool level — servers.<id>.mail.features.send
  6. Section configuration, master switch — servers.<id>.mail.enabled
  7. Default — reads are true, writes are false Boolean values accept true/1/yes/on and false/0/no/off.

Connections and credentials (environment variables) Every section field can be set via an environment variable: OX_MCP_[ID_]<SECTION>_<FIELD>, where SECTION ∈ MAIL | CALDAV | CARDDAV. The default account uses the form without an index. Default ports: IMAP 993, SMTP 465, DAV 443, ManageSieve 4190. TLS mode is derived from the port (993/465 are implicit TLS; 143/587 are STARTTLS), unless secure is set explicitly.

Configuration is strictly validated at startup: every section that exists and has tools enabled must have a server (the mail section may have separate imap/smtp hosts) and a login user, otherwise the server exits with an error indicating the specific field. An account with no sections also errors; a nonexistent section is simply disabled without error.

Authentication types basic (app password) is the default. Each section can use other Open-Xchange-aligned mechanisms via auth.type / OX_MCP_[ID_]<SECTION>_AUTH_TYPE. Tokens are cached and refreshed automatically. Note: mail filters (ManageSieve) require basic authentication.

Multiple accounts Multiple accounts can be defined by id under servers in ~/.ox-mcp/config.json. list_servers shows what is configured (never shows secrets); environment variables override configuration field by field. Feature switches can differ per account (for example, enabling sending only for the work account).

Limitations

  • Under the ox-api transport, body/text matching applies only to the subject and addresses of recent mail; transport: "imap" is required for true full-text search.
  • free/busy returns only available windows, does not reveal event details, and depends on the server advertising schedule-outbox-URL.
  • ManageSieve filters require basic authentication.
  • When using the imap transport, ox-mcp manages its own sieve script and activates it; filters from other scripts become inactive while that script is active.

Use cases Suitable for users who need to connect an AI assistant to Open-Xchange or standard mail/calendar/contact infrastructure via MCP, for everyday office and collaboration scenarios such as sending, receiving, and searching mail, managing server-side filter rules, responding to calendar invitations, looking up contacts, and querying colleagues' free time.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools