AtlatestRepositorybureau
1
# Bureau3
An MCP server that gives AI assistants access to your Fastmail email and4
calendar. Built with [Sigil](https://codeberg.org/sigil/sigil).6
## Installation8
```bash9
sigil app install codeberg:sigil/bureau \10
--env [email protected] \11
--env BUREAU_FASTMAIL_API_TOKEN=fmu1-... \12
--env BUREAU_FASTMAIL_APP_PASSWORD=fmu1-...13
```15
This builds Bureau from source, installs it, and registers it as an MCP server16
in Claude Code automatically.18
By default the server is registered globally (in `~/.claude.json`). To install19
it for only the current project instead:21
```bash22
sigil app install codeberg:sigil/bureau --scope project \23
--env [email protected] \24
--env BUREAU_FASTMAIL_API_TOKEN=fmu1-... \25
--env BUREAU_FASTMAIL_APP_PASSWORD=fmu1-...26
```28
This writes the server entry to the project's `.mcp.json`.30
### Fastmail Credentials32
Bureau requires two separate Fastmail credentials — an API token for email33
(JMAP) and an app password for calendar (CalDAV):35
1. Log in to [Fastmail](https://www.fastmail.com)36
2. Go to **Settings** → **Privacy & Security** → **Integrations**37
3. Under **API tokens**, create a token with **Mail** access — this is your `BUREAU_FASTMAIL_API_TOKEN`38
4. Under **App passwords**, create a password with **Calendars** access — this is your `BUREAU_FASTMAIL_APP_PASSWORD`40
| Variable | Protocol | Auth method | Where to create |41
|----------|----------|-------------|-----------------|42
| `BUREAU_FASTMAIL_USERNAME` | CalDAV | HTTP Basic (username) | Your Fastmail email address |43
| `BUREAU_FASTMAIL_API_TOKEN` | JMAP | Bearer token | Settings → API tokens |44
| `BUREAU_FASTMAIL_APP_PASSWORD` | CalDAV | HTTP Basic (password) | Settings → App passwords |46
## What It Does48
Bureau provides 19 MCP tools that let an AI assistant:50
- **Search and read email** — query by sender, subject, date, text content51
- **Send and reply to email** — with proper threading headers52
- **Manage email** — archive, trash, flag, mark read/unread, move between folders53
- **View calendar events** — query by date range, get full details54
- **Create and modify events** — schedule meetings, update details, delete events55
- **Find free time** — analyze your calendar to find available slots57
## Manual Setup59
If not using `sigil app`, you can build and configure manually:61
```bash62
sigil deps install63
sigil build64
```66
Add to your `.mcp.json`:68
```json69
{70
"mcpServers": {71
"bureau": {72
"type": "stdio",73
"command": "/path/to/bureau",74
"args": ["serve"],75
"env": {76
"BUREAU_FASTMAIL_USERNAME": "[email protected]",77
"BUREAU_FASTMAIL_API_TOKEN": "fmu1-...",78
"BUREAU_FASTMAIL_APP_PASSWORD": "fmu1-..."79
}80
}81
}82
}83
```85
## License87
BSD-3-Clause