AtlatestRenderedmarkdown
Readme

Bureau

An MCP server that gives AI assistants access to your Fastmail email and calendar. Built with Sigil.

Installation

sigil app install codeberg:sigil/bureau \
  --env [email protected] \
  --env BUREAU_FASTMAIL_API_TOKEN=fmu1-... \
  --env BUREAU_FASTMAIL_APP_PASSWORD=fmu1-...

This builds Bureau from source, installs it, and registers it as an MCP server in Claude Code automatically.

By default the server is registered globally (in ~/.claude.json). To install it for only the current project instead:

sigil app install codeberg:sigil/bureau --scope project \
  --env [email protected] \
  --env BUREAU_FASTMAIL_API_TOKEN=fmu1-... \
  --env BUREAU_FASTMAIL_APP_PASSWORD=fmu1-...

This writes the server entry to the project's .mcp.json.

Fastmail Credentials

Bureau requires two separate Fastmail credentials — an API token for email (JMAP) and an app password for calendar (CalDAV):

  1. Log in to Fastmail
  2. Go to SettingsPrivacy & SecurityIntegrations
  3. Under API tokens, create a token with Mail access — this is your BUREAU_FASTMAIL_API_TOKEN
  4. Under App passwords, create a password with Calendars access — this is your BUREAU_FASTMAIL_APP_PASSWORD
VariableProtocolAuth methodWhere to create
BUREAU_FASTMAIL_USERNAMECalDAVHTTP Basic (username)Your Fastmail email address
BUREAU_FASTMAIL_API_TOKENJMAPBearer tokenSettings → API tokens
BUREAU_FASTMAIL_APP_PASSWORDCalDAVHTTP Basic (password)Settings → App passwords

What It Does

Bureau provides 19 MCP tools that let an AI assistant:

  • Search and read email — query by sender, subject, date, text content
  • Send and reply to email — with proper threading headers
  • Manage email — archive, trash, flag, mark read/unread, move between folders
  • View calendar events — query by date range, get full details
  • Create and modify events — schedule meetings, update details, delete events
  • Find free time — analyze your calendar to find available slots

Manual Setup

If not using sigil app, you can build and configure manually:

sigil deps install
sigil build

Add to your .mcp.json:

{
  "mcpServers": {
    "bureau": {
      "type": "stdio",
      "command": "/path/to/bureau",
      "args": ["serve"],
      "env": {
        "BUREAU_FASTMAIL_USERNAME": "[email protected]",
        "BUREAU_FASTMAIL_API_TOKEN": "fmu1-...",
        "BUREAU_FASTMAIL_APP_PASSWORD": "fmu1-..."
      }
    }
  }
}

License

BSD-3-Clause