{"id":47638283,"url":"https://github.com/pjosols/pyfastmail-mcp","last_synced_at":"2026-04-08T02:03:29.932Z","repository":{"id":346261901,"uuid":"1189118114","full_name":"pjosols/pyfastmail-mcp","owner":"pjosols","description":"Python MCP server for Fastmail — email, contacts, calendars, and files","archived":false,"fork":false,"pushed_at":"2026-03-27T01:27:12.000Z","size":353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T08:29:09.916Z","etag":null,"topics":["caldav","calendar","contacts","fastmail","files","jmap","mail","mcp","python","webdav"],"latest_commit_sha":null,"homepage":"http://pyfastmail-mcp.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjosols.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-23T01:55:15.000Z","updated_at":"2026-03-27T01:27:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pjosols/pyfastmail-mcp","commit_stats":null,"previous_names":["pjosols/pyfastmail-mcp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pjosols/pyfastmail-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjosols%2Fpyfastmail-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjosols%2Fpyfastmail-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjosols%2Fpyfastmail-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjosols%2Fpyfastmail-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjosols","download_url":"https://codeload.github.com/pjosols/pyfastmail-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjosols%2Fpyfastmail-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31536473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caldav","calendar","contacts","fastmail","files","jmap","mail","mcp","python","webdav"],"created_at":"2026-04-02T00:29:53.510Z","updated_at":"2026-04-08T02:03:29.926Z","avatar_url":"https://github.com/pjosols.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyfastmail-mcp\n\nAn [MCP](https://modelcontextprotocol.io/) server that gives AI assistants full access to your Fastmail account — email, contacts, calendars, and file storage.\n\n\u003e ⚠️ **This server can send email, delete messages, and modify contacts/calendars on your behalf.** AI assistants may act on content from untrusted sources (emails, web pages, files) which could contain prompt injection attacks. Review tool calls before approving them, especially actions that send email or delete data.\n\n## Features\n\n| Domain | Protocol | Tools |\n|--------|----------|-------|\n| Mail | JMAP | Send, reply, forward, search, read, pin, archive, keywords, masked email, attachments, threads, import/export, identities |\n| Contacts | JMAP | List address books, CRUD contacts, query |\n| Calendar | CalDAV | List calendars, CRUD events (optional — requires app password) |\n| Files | WebDAV | List, upload, download, move, delete, create folders (optional — requires app password) |\n\n## Installation\n\n```bash\npip install pyfastmail-mcp\n```\n\nOr run directly with `uvx`:\n\n```bash\nuvx pyfastmail-mcp\n```\n\n## Configuration\n\n### 1. Get Fastmail Credentials\n\nYou need an API token from Fastmail. An app password is optional (only needed for calendar and file storage).\n\n- **API Token** (required — mail and contacts): [Fastmail Settings → Privacy \u0026 Security → API Tokens](https://app.fastmail.com/settings/security/tokens) — enable the `urn:ietf:params:jmap:contacts` capability\n- **App Password** (optional — calendars and files): [Fastmail Settings → Privacy \u0026 Security → App Passwords](https://app.fastmail.com/settings/security/passwords) — create one with the **\"DAV (CardDAV, CalDAV, WebDAV)\"** scope\n\nIf you only set the API token, the server starts with mail and contacts tools. Calendar and file tools are registered only when the app password is also provided.\n\n### 2. Set Environment Variables\n\n```bash\nexport FASTMAIL_API_TOKEN=\"fmu1-...\"\nexport FASTMAIL_APP_PASSWORD=\"your-app-password\"\nexport FASTMAIL_EMAIL=\"you@fastmail.com\"\n```\n\n### 3. Add to Your MCP Client\n\nFor Claude Desktop, add to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"fastmail\": {\n      \"command\": \"uvx\",\n      \"args\": [\"pyfastmail-mcp\"],\n      \"env\": {\n        \"FASTMAIL_API_TOKEN\": \"fmu1-...\",\n        \"FASTMAIL_APP_PASSWORD\": \"your-app-password\",\n        \"FASTMAIL_EMAIL\": \"you@fastmail.com\"\n      }\n    }\n  }\n}\n```\n\nFor Kiro CLI, add to `.kiro/settings/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"fastmail\": {\n      \"command\": \"uvx\",\n      \"args\": [\"pyfastmail-mcp\"],\n      \"env\": {\n        \"FASTMAIL_API_TOKEN\": \"${FASTMAIL_API_TOKEN}\",\n        \"FASTMAIL_EMAIL\": \"${FASTMAIL_EMAIL}\",\n        \"FASTMAIL_APP_PASSWORD\": \"${FASTMAIL_APP_PASSWORD}\"\n      }\n    }\n  }\n}\n```\n\n## Tools\n\n### Mail (`mail_*`)\n\n| Tool | Description |\n|------|-------------|\n| `health_check` | Verify connection and auth |\n| `mail_list_mailboxes` | List all mailboxes (folders/labels) |\n| `mail_create_mailbox` | Create a mailbox |\n| `mail_rename_mailbox` | Rename a mailbox |\n| `mail_delete_mailbox` | Delete a mailbox |\n| `mail_get_email` | Get email by ID (with optional headers) |\n| `mail_get_recent_emails` | Get recent emails |\n| `mail_search_emails` | Search by query |\n| `mail_search_snippets` | Highlighted search result snippets |\n| `mail_get_email_thread` | Get full thread |\n| `mail_mark_email_read` | Mark read/unread |\n| `mail_pin_email` | Pin/unpin (flag/star) |\n| `mail_move_email` | Move to mailbox |\n| `mail_delete_email` | Move to trash or permanently delete |\n| `mail_archive_email` | Archive |\n| `mail_manage_email_labels` | Add/remove keywords |\n| `mail_export_email` | Download raw .eml file |\n| `mail_import_email` | Import .eml into mail store |\n| `mail_parse_email` | Parse a blob as email without importing |\n| `mail_list_identities` | List send-as identities |\n| `mail_set_identity` | Create/update/delete identities |\n| `mail_send_email` | Send new email |\n| `mail_reply_to_email` | Reply to email |\n| `mail_forward_email` | Forward email |\n| `mail_list_masked_emails` | List masked emails |\n| `mail_create_masked_email` | Create masked email |\n| `mail_update_masked_email` | Update masked email state, domain, description, or URL |\n| `mail_download_attachment` | Download attachment |\n| `mail_upload_attachment` | Upload blob for sending |\n\n### Contacts (`contacts_*`)\n\n| Tool | Description |\n|------|-------------|\n| `contacts_list_address_books` | List address books |\n| `contacts_list` | List contacts (query+get combo) |\n| `contacts_get_contact` | Get contact(s) by ID |\n| `contacts_query_contacts` | Query contacts with filters and sorting |\n| `contacts_create_contact` | Create contact |\n| `contacts_update_contact` | Update contact fields |\n| `contacts_delete_contact` | Delete contact(s) |\n\n### Calendar (`calendar_*`)\n\n| Tool | Description |\n|------|-------------|\n| `calendar_list_calendars` | List calendars |\n| `calendar_list_events` | List events |\n| `calendar_get_event` | Get event details |\n| `calendar_create_event` | Create event |\n| `calendar_update_event` | Update event |\n| `calendar_delete_event` | Delete event |\n\n### Files (`files_*`)\n\n| Tool | Description |\n|------|-------------|\n| `files_list` | List files/folders |\n| `files_get` | Download file |\n| `files_upload` | Upload file |\n| `files_create_folder` | Create folder |\n| `files_move` | Move/rename file |\n| `files_delete` | Delete file/folder |\n\n## Development\n\n```bash\ngit clone https://github.com/pjosols/pyfastmail-mcp.git\ncd pyfastmail-mcp\nuv sync --group dev\nuv run pytest\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjosols%2Fpyfastmail-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjosols%2Fpyfastmail-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjosols%2Fpyfastmail-mcp/lists"}