Skip to content

Use your calendar and mail in Dify apps

Add Pear as an MCP server in Dify, then use its tools in Agent apps, Agent nodes and workflows with your connected iCloud or Microsoft 365 account.

Connection details

The values Dify asks for first.

Pear hosted endpointhttps://pearmcp.com/api/mcp
Authentication
Private header API key
Setup surface
Integrations MCP server
Agents and workflowsHeader API keyRemote MCP

Dify documents HTTP MCP servers with custom headers; Dynamic Client Registration must be turned off for Pear. Pear testing in Dify remains open.

Setup guide availableOfficial setup reference
Get ready

1. Decide who the apps serve

An MCP server added in Dify is available to the workspace, and any app that uses its tools runs them with the key you set. If you publish an app that uses Pear, its users can reach your account. Keep Pear in apps only you use.

Sign in to Pear, connect iCloud or Microsoft 365, and create an API key in Settings just for Dify.

Make the connection

2. Add Pear as an MCP server

Go to Integrations → Tools and open the MCP tab. Add an MCP server with:

  • URL: https://pearmcp.com/api/mcp
  • Name: Pear
  • Server identifier: pear. Apps refer to the server by this identifier, so do not change it later.

Turn off Dynamic Client Registration, which Dify turns on by default; Pear does not offer it, and leave the client ID and secret empty. Under the advanced options, add a custom header:

Authorization: Bearer YOUR_PEAR_API_KEY

Replace the placeholder with your key and keep the Bearer prefix. Save, and Dify imports Pear's tools.

Check it works

3. Check one real result

In an Agent app, add the Pear tool pear_provider_status and ask which accounts and services are ready. Then add pear_list_events and ask for one day of a named calendar in your timezone. Compare the result with your calendar app.

Put it to use

Use Pear in a workflow

In a Workflow or Chatflow, a Tool node can call one Pear tool directly, such as listing today's events, and pass the result to an LLM node for a summary. Keep workflows to read tools; Pear's write tools use a draft-then-execute flow meant for a person to review each change.

Troubleshooting and removing access

If Dify starts an OAuth sign-in, Dynamic Client Registration is still on. If tools fail with authentication errors, check the header name and the Bearer prefix. Only HTTP MCP servers work in Dify, which matches Pear. If you update the tool list and a tool an app used has changed, re-add it in that app.

To remove access, revoke the API key in Pear, then delete the Pear MCP server in Dify. Apps that used its tools stop working until you remove those tools.

Put it to use

Choose a useful first workflow

Start with a read. Ask which calendars are connected, find an event in a specific date range, or search a mail folder for a message you already know. Specify the account and timezone when they matter.

For Apple accounts, see iCloud setup and services and iCloud Mail workflows. For Microsoft accounts, see Microsoft 365 setup, Outlook Mail, and Microsoft To Do.

Apple Reminders availability depends on the Apple account. For Apple, Pear can read and write only the legacy reminder lists Apple still exposes through CalDAV. If the account has been upgraded to Apple's newer Reminders store, Pear cannot access those native lists and does not copy them into a separate reminder store. Apple may instead return compatibility placeholders, such as repeated "Where are my reminders?" items; Pear did not create them. Pear's safe fallback hides known placeholders and blocks writes to affected lists. Reconnecting iCloud or replacing the App-Specific Password will not change this Apple limitation. Calendar, Contacts, and Mail are unaffected, and Microsoft To Do uses Microsoft Graph and is unaffected. Full modern Apple Reminders access would require an Apple-platform companion using EventKit with the user's permission; Pear does not currently provide one. Google Workspace remains coming soon.

Pear exposes tools allowed by your account and permissions. Your AI client decides when to call them. Review recipients, dates, and content before approving writes. Read how Pear handles your data and the current plans before expanding the workflow.

Sources and compatibility status

Documentation checked on 25 November 2026. Setup guide available; a complete Pear authentication, tool-list, read, and approved-write test in Dify is still pending. Dify's documentation does not give the exact field labels for every edition.

Dify: use MCP tools

All guides

Connect Dify

Free includes 50 counted provider actions/month. Most provider reads or writes count as one action. Batch writes count once per item. Setup and discovery do not count. Failed actions Pear can confirm had no provider effect also do not count; actions with an unknown outcome may count. Pro removes the cap.