# Dify MCP setup for iCloud and Outlook with Pear

<!-- MCP_HOST_IDS: dify -->
<!-- MCP_HOST_COMPATIBILITY:START -->
## Connection and authentication

Use the authentication method shown for each client surface.

| Client surface | Authentication | Setup guide |
| --- | --- | --- |
| Dify | API key | Setup guide available |
<!-- MCP_HOST_COMPATIBILITY:END -->

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.

## 1. Decide who the apps serve

Apps that use Pear's tools run 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](https://pearmcp.com/login), connect iCloud or Microsoft 365, and
create an API key in Settings just for Dify.

## 2. Add Pear as an MCP server

Integrations → Tools → MCP tab → add an MCP server:

- URL: `https://pearmcp.com/api/mcp`
- Name: Pear
- Server identifier: `pear` (apps refer to this identifier; do not change it later)

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

```text
Authorization: Bearer YOUR_PEAR_API_KEY
```

## 3. Check one real result

In an Agent app, add `pear_provider_status` and `pear_list_events`. Ask the agent to call `pear_provider_status` and name the ready accounts and services. Then read one day of events from a named calendar with your timezone, and compare the result with your calendar app. If no Pear tool ran, nothing was read.

## Use Pear in a workflow

A Tool node can call one Pear tool, such as listing today's events, and pass the result
to an LLM node. Keep workflows to read tools; Pear's write tools are meant for a person
to review each change.

## Troubleshooting and revocation

An OAuth prompt means Dynamic Client Registration is still on. For authentication
errors, check the header name and the `Bearer ` prefix. Revoke the key in Pear, then
delete the Pear MCP server in Dify.

## Provider limits and next steps

Tools depend on your connected provider, account permissions, and client settings. Start with a read, then inspect a preview before approving writes.

- [iCloud setup](https://pearmcp.com/icloud-mcp-server)
- [iCloud Mail](https://pearmcp.com/ai-icloud-mail)
- [Microsoft 365 setup](https://pearmcp.com/microsoft-365-mcp-server)
- [Outlook Mail](https://pearmcp.com/outlook-mail-mcp)
- [Microsoft To Do](https://pearmcp.com/microsoft-to-do-mcp)
- [Data handling](https://pearmcp.com/data-handling)
- [Plans](https://pearmcp.com/pricing)

Pear's hosted CalDAV connection cannot access Apple's upgraded Reminders store. Only legacy reminder data still exposed through CalDAV is available; reconnecting cannot change this limit. Microsoft To Do is unaffected. Gmail works with a Google app password. Google sign-in for Calendar, Tasks and Contacts is coming soon.

## 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](https://docs.dify.ai/en/cloud/use-dify/build/mcp)
- [HTML setup guide](https://pearmcp.com/guides/dify)
