Skip to main content
Glama
i11v

Fastmail MCP Server

by i11v

Fastmail MCPサーバー (非公式)

Fastmail統合のための非公式Model Context Protocolサーバーです。検証済みのJMAPプロキシとして機能する単一の execute ツールを公開します。LLMが生のJMAPメソッド呼び出しを記述し、サーバーが検証、認証、レスポンスのクリーニングを処理します。

セットアップ手順

1. Fastmail APIトークンの取得

  1. Fastmail にログインします

  2. SettingsPrivacy & SecurityAPI tokens に移動します

  3. New API token をクリックします

  4. 名前を付けます(例: "Claude MCP")

  5. 必要なスコープを選択します: Mail (必要に応じて読み取り/書き込み)

  6. 生成されたトークンをコピーします

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への送信

  • プロトコルノイズ(statequeryStatecanCalculateChanges など)の除去

  • クリーンアップされた methodResponses の返却

許可されているJMAPメソッド:

  • Core/echo

  • Mailbox/get, Mailbox/query, Mailbox/queryChanges, Mailbox/set

  • Email/get, Email/query, Email/queryChanges, Email/set

  • Thread/get

  • SearchSnippet/get

  • Identity/get

  • EmailSubmission/get, EmailSubmission/query, EmailSubmission/set

検証ルール:

  • すべての /get 呼び出し(Mailbox/getIdentity/get を除く)には properties 配列を含める必要があります

  • すべての /query 呼び出しには limit を含める必要があります

  • /get 呼び出しでの ids: null は拒否されます(先に /query を使用してください)

  • 破壊的な操作(destroyEmailSubmission/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

優先度

目的

file:///fastmail-skill/SKILL.md

1.0

エントリーポイント — JMAPメソッド、ルール、UIツール

file:///fastmail-skill/core/request-format.md

0.5

メソッド呼び出しトリプル、逆参照、callId

file:///fastmail-skill/core/error-handling.md

0.5

JMAPエラーハンドリング

file:///fastmail-skill/email/querying.md

0.5

Email/queryのフィルターとソート

file:///fastmail-skill/email/reading.md

0.5

Email/getの本文取得

file:///fastmail-skill/email/writing.md

0.5

下書き、フラグ、移動、削除

file:///fastmail-skill/email/search.md

0.5

SearchSnippet/getのハイライト

file:///fastmail-skill/mailbox/overview.md

0.5

メールボックスのCRUD

file:///fastmail-skill/patterns/unread-inbox.md

0.5

未読インボックスの表示

file:///fastmail-skill/patterns/move-archive.md

0.5

移動 / アーカイブ

file:///fastmail-skill/patterns/reply.md

0.5

返信パターン

file:///fastmail-skill/sending/workflow.md

0.5

EmailSubmission/setワークフロー

file:///fastmail-skill/thread/overview.md

0.5

Thread/get

APIエンドポイント

  • POST /mcp - MCPプロトコルエンドポイント

  • GET /health - ヘルスチェックエンドポイント

環境変数

.env.example.env.development.local にコピーし、値を入力してください:

cp .env.example .env.development.local

変数

必須

説明

HONEYCOMB_API_KEY

いいえ

OpenTelemetryトレース用のHoneycomb取り込みキー

HONEYCOMB_SERVER

いいえ

Honeycomb APIサーバー (デフォルト: https://api.honeycomb.io, EU: https://api.eu1.honeycomb.io)

開発

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

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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.
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    An 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.
    48
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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.
    76
    MIT

View all related MCP servers

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.

View all MCP Connectors

Appeared in Searches

Latest Blog Posts

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