Fastmail MCP Server
Fastmail MCPサーバー (非公式)
Fastmail統合のための非公式Model Context Protocolサーバーです。検証済みのJMAPプロキシとして機能する単一の execute ツールを公開します。LLMが生のJMAPメソッド呼び出しを記述し、サーバーが検証、認証、レスポンスのクリーニングを処理します。
セットアップ手順
1. Fastmail APIトークンの取得
Fastmail にログインします
Settings → Privacy & Security → API tokens に移動します
New API token をクリックします
名前を付けます(例: "Claude MCP")
必要なスコープを選択します:
Mail(必要に応じて読み取り/書き込み)生成されたトークンをコピーします
2. Claude Codeの設定
Claude CodeのMCP設定(~/.claude/claude_desktop_config.json またはプロジェクトの .mcp.json)に以下を追加します:
{
"mcpServers": {
"fastmail": {
"type": "url",
"url": "https://fastmail-mcp.i11v.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_FASTMAIL_API_TOKEN"
}
}
}
}セキュリティ上の注意: APIトークンは安全に保管してください。バージョン管理システムには絶対にコミットしないでください。環境変数やシークレットマネージャーの使用を検討してください。
Related MCP server: pyfastmail-mcp
利用可能なツール
execute
Fastmailに対してJMAPメソッド呼び出しを実行します。JMAPメソッド呼び出しのトリプル [methodName, args, callId] の配列を受け取ります。
入力:
{
"methodCalls": [
["Email/query", {
"filter": { "inMailbox": "INBOX_ID" },
"sort": [{ "property": "receivedAt", "isAscending": false }],
"limit": 10
}, "call-0"],
["Email/get", {
"ids": { "resultOf": "call-0", "name": "Email/query", "path": "/ids" },
"properties": ["from", "subject", "receivedAt", "preview"]
}, "call-1"]
]
}サーバーの動作:
構造、メソッド名、および衛生ルールの検証
accountIdの自動注入FastmailのJMAP APIへの送信
プロトコルノイズ(
state、queryState、canCalculateChangesなど)の除去クリーンアップされた
methodResponsesの返却
許可されているJMAPメソッド:
Core/echoMailbox/get,Mailbox/query,Mailbox/queryChanges,Mailbox/setEmail/get,Email/query,Email/queryChanges,Email/setThread/getSearchSnippet/getIdentity/getEmailSubmission/get,EmailSubmission/query,EmailSubmission/set
検証ルール:
すべての
/get呼び出し(Mailbox/get、Identity/getを除く)にはproperties配列を含める必要がありますすべての
/query呼び出しにはlimitを含める必要があります/get呼び出しでのids: nullは拒否されます(先に/queryを使用してください)破壊的な操作(
destroy、EmailSubmission/set)は、ユーザーの確認を求めるエラーを返します
compose_email (MCPアプリ)
インタラクティブなメール作成フォームを開きます。オプションでフィールド(宛先、CC、BCC、件名、本文)を事前入力できます。MCPアプリをサポートするホストでは、送信および下書き保存ボタンを備えたインライン作成UIをレンダリングします。その他のホストでは構造化テキストにフォールバックします。
入力:
{
"to": "recipient@example.com",
"subject": "Hello",
"body": "Message text..."
}read_email (MCPアプリ)
リッチなリーダービューでメールの全内容を表示します。JMAP IDでメールを取得し、ヘッダー、サニタイズされた本文、アクションボタン(返信、全員に返信、転送)をレンダリングします。MCPアプリのサポートがないホストでは構造化テキストにフォールバックします。
入力:
{
"emailId": "M1234abcd"
}利用可能なリソース
リソース対応のMCPクライアントは、Fastmailスキルを自動的に受け取ります。これは、execute JMAPツールの操作方法をLLMに教える一連のMarkdownファイルです。リソースの優先順位をサポートするクライアントは、SKILL.md を最初に読み込み、そのリンクを遅延して追跡します。
すべてのリソースは file:///fastmail-skill/<path> URIスキームと text/markdown MIMEタイプを使用します。タグは audience: ["assistant"] です。
URI | 優先度 | 目的 |
| 1.0 | エントリーポイント — JMAPメソッド、ルール、UIツール |
| 0.5 | メソッド呼び出しトリプル、逆参照、callId |
| 0.5 | JMAPエラーハンドリング |
| 0.5 | Email/queryのフィルターとソート |
| 0.5 | Email/getの本文取得 |
| 0.5 | 下書き、フラグ、移動、削除 |
| 0.5 | SearchSnippet/getのハイライト |
| 0.5 | メールボックスのCRUD |
| 0.5 | 未読インボックスの表示 |
| 0.5 | 移動 / アーカイブ |
| 0.5 | 返信パターン |
| 0.5 | EmailSubmission/setワークフロー |
| 0.5 | Thread/get |
APIエンドポイント
POST /mcp- MCPプロトコルエンドポイントGET /health- ヘルスチェックエンドポイント
環境変数
.env.example を .env.development.local にコピーし、値を入力してください:
cp .env.example .env.development.local変数 | 必須 | 説明 |
| いいえ | OpenTelemetryトレース用のHoneycomb取り込みキー |
| いいえ | Honeycomb APIサーバー (デフォルト: |
開発
pnpm install # Install dependencies
pnpm dev # Run local dev server (wrangler)
pnpm check # Run all checks (typecheck + lint + fmt + test)
pnpm run deploy:prod # Deploy to Cloudflareこれは非公式のコミュニティプロジェクトであり、Fastmailとは提携していません。
ソースコードと課題: GitHub
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with FastMail's JMAP API to manage mailboxes, search for emails, and send messages. It enables users to interact with their FastMail account for tasks like reading email content and managing folders through natural language.2MIT
- AlicenseAqualityBmaintenanceAn MCP server that provides AI assistants with full access to Fastmail accounts for managing email, contacts, calendars, and file storage. It implements 42 tools across JMAP, CardDAV, CalDAV, and WebDAV protocols to enable comprehensive account interaction through natural language.48MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for Fastmail that provides access to email, contacts, and calendars via the JMAP protocol. It enables users to search, send, and bulk-manage emails while also interacting with calendar events and address books through natural language.76MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol (MCP) server that provides access to the Fastmail API, enabling AI assistants to interact with email, contacts, and calendar data.38MIT
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/i11v/fastmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server