インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Outlook (Microsoft 365 Mail and Calendar) をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
AI に Outlook で作業させます。メールの検索と閲覧、フォルダーへの整理、下書きの作成、送信と返信、予定表の確認、会議の作成と移動、同僚の空き時間の検索ができます。Microsoft Graph 経由で Microsoft 365 と Outlook.com に対応し、Microsoft アカウントでサインインします。
こう聞いてみよう
Outlook (Microsoft 365 Mail and Calendar) のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Outlook (Microsoft 365 Mail and Calendar) をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も
git cloneもローカルサーバーも不要。
Outlook (Microsoft 365 Mail and Calendar) + Cursor
AI に Outlook で作業させます。メールの検索と閲覧、フォルダーへの整理、下書きの作成、送信と返信、予定表の確認、会議の作成と移動、同僚の空き時間の検索ができます。Microsoft Graph 経由で Microsoft 365 と Outlook.com に対応し、Microsoft アカウントでサインインします。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID
ステップ 1 — 認証情報を取得
-
Microsoft Entra 管理センター(entra.microsoft.com)または Azure portal を開き、Applications → App registrations → New registration に進みます。
-
アプリに名前を付け(例: 「AnythingMCP Outlook」)、Supported account types を選びます。この選択によって
MICROSOFT_TENANT_IDに入れる値が決まります。- Accounts in this organizational directory only(シングルテナント): 自組織のユーザーだけがサインインできます。アプリの Overview ページにある Directory (tenant) ID(GUID)か、
contoso.onmicrosoft.comのようなドメインを入れます。 - Accounts in any organizational directory(マルチテナント):
organizationsを入れます。 - Accounts in any organizational directory and personal Microsoft accounts:
common(職場・学校アカウントと Outlook.com)またはconsumers(Outlook.com のみ)を入れます。
値がアカウントの種類と一致しないと、Microsoft はサインインを拒否します(AADSTS50194 または AADSTS50020)。
- Accounts in this organizational directory only(シングルテナント): 自組織のユーザーだけがサインインできます。アプリの Overview ページにある Directory (tenant) ID(GUID)か、
-
Redirect URI でプラットフォーム Web を選び、
https://cloud.anythingmcp.com/api/mcp-oauth/callbackを入力します。AnythingMCP をセルフホストしている場合は、代わりにhttps://your-anythingmcp-host/api/mcp-oauth/callbackを入力します。URI は 1 文字単位で一致している必要があり、一致しないと Microsoft は AADSTS50011 を返します。 -
API permissions → Add a permission → Microsoft Graph → Delegated permissions を開き、
offline_access、User.Read、Mail.ReadWrite、Mail.Send、Calendars.ReadWriteを追加します。Application permissions としては追加しないでください。アプリケーションのアクセス許可を付けると、誰もサインインしないままテナント内のすべてのメールボックスにアプリがアクセスできるようになります。コネクターはサインインしたユーザーとして動作するため、これは不要です。offline_accessがあることで Microsoft はリフレッシュトークンを発行します。これがないと、コネクターは承認から 1 時間後に動かなくなります。 -
Certificates & secrets → New client secret を開きます。Secret ID ではなく、シークレットの Value をコピーします。表示されるのは一度だけです。有効期限を控えておいてください。期限が切れると、新しいシークレットを作成して入力し直すまでコネクターは動作しません。
-
Overview ページの Application (client) ID を
MICROSOFT_CLIENT_IDに、シークレットの値をMICROSOFT_CLIENT_SECRETに、手順 2 のテナントの値をMICROSOFT_TENANT_IDに入力し、コネクターをインストールします。 -
コネクターのページで Authorize with Provider をクリックし、AI に扱わせるメールボックスでサインインします。リフレッシュトークンは暗号化して保存され、アクセストークン(有効期間は約 1 時間)は自動で更新されます。
-
まず
outlook_get_meを実行します。コネクターがどのメールボックスにサインインしているかを確認できます。
管理者の同意: これらの委任されたアクセス許可には通常は管理者は不要ですが、多くの組織ではユーザーによる同意が無効になっています。サインイン時に「Need admin approval」(AADSTS65001 または AADSTS90094)と表示された場合は、テナント管理者(Global Administrator や Cloud Application Administrator など)がアプリの登録を一度開き、API permissions → Grant admin consent で組織全体に同意を付与します。その後は各ユーザーが承認できます。管理者が承認したコネクターでも、読み取るのは管理者自身のメールボックスだけです。コネクターはサインインしたアカウントのために動作します。
読み取り専用の設定: コネクターの OAuth 設定でスコープを offline_access User.Read Mail.Read Calendars.Read に置き換えて再度承認し、送信や書き込みを行うツールを無効にします。
よくあるエラー: 401 InvalidAuthenticationToken は、承認が取り消されたかクライアントシークレットの期限が切れたことを示します。必要に応じて新しいシークレットを入力し、もう一度 Authorize with Provider をクリックします。403 ErrorAccessDenied は、手順 4 のアクセス許可が不足しているか同意されていないことを示します。MailboxNotEnabledForRESTAPI は、そのアカウントに Exchange Online のメールボックスがないことを示します(オンプレミスのメールボックスやライセンスのないユーザーなど)。outlook_get_free_busy は個人の Outlook.com アカウントでは使えません。
このコネクターはメールや予定を削除せず、添付ファイル、連絡先、メールボックスのルール、他のユーザーのメールボックスや共有メールボックスは扱いません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Cursor にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Cursor は ~/.cursor/mcp.json から MCP サーバーを読み込みます。次のエントリを追加してください:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、Cursor を再起動します。
- Cursor → Settings → MCP を開き、
anythingmcpが一覧にあり接続済みであることを確認します。 - チャットを始めましょう — エージェントが
Outlook (Microsoft 365 Mail and Calendar)のツールを呼び出せるようになりました。
利用可能なツール
| Tool | What it does |
|---|---|
outlook_get_me | Return the signed-in Microsoft 365 or Outlook.com user: id, display name, email address (mail) and user principal name |
outlook_list_mail_folders | List the top-level mail folders of the mailbox (Inbox, Sent Items, Drafts, Archive and the user's own folders) with id, displayName… |
outlook_list_child_folders | List the subfolders of one mail folder, with the same fields as outlook_list_mail_folders |
outlook_list_messages | List the messages of one mail folder, newest first unless orderby says otherwise |
outlook_search_messages | Search or filter messages across the whole mailbox, all folders included (Deleted Items too) |
outlook_get_message | Get one message in full: subject, sender, all recipients, dates, flags, conversationId, internetMessageId, attachments flag and the body as… |
outlook_create_draft | Create a draft message in the Drafts folder without sending it |
outlook_send_draft | Send an existing draft (from outlook_create_draft or one written in Outlook) |
outlook_send_mail | Compose and send a new email in one step, from the signed-in mailbox |
outlook_reply_to_message | Reply to the sender of a message (or to its Reply-To addresses) and send the reply at once, quoting the original below the comment |
outlook_reply_all_to_message | Reply to the sender and every other recipient of a message and send the reply at once, quoting the original below the comment |
outlook_move_message | Move a message to another mail folder (for example to archive it or file it in a project folder) |
outlook_list_calendars | List the user's calendars with id, name, color, owner, whether it is the default calendar and whether the user can edit it |
outlook_list_events | List the events of the default calendar that fall within a time range, with recurring meetings expanded into their single occurrences |
outlook_list_calendar_events | List the events of one specific calendar (a shared, secondary or team calendar) within a time range, with recurring meetings expanded |
outlook_get_event | Get one calendar event in full: subject, body (HTML), start and end, location, organizer, attendees with their responses, recurrence… |
outlook_create_event | Create an event in the user's default calendar |
outlook_update_event | Change an existing event: only the fields given are changed, the others stay as they are |
outlook_get_free_busy | Get free/busy availability of up to several people, rooms or distribution lists in the same organisation for a time window, to find a slot… |
FAQ
Cursor の無料プランでカスタム MCP サーバーは使えますか? はい — MCP は Hobby、Pro、Business の各プランで利用できます。
次のステップ
このガイドは役に立ちましたか?