# Kilo Code MCP setup for iCloud and Outlook with Pear

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

Use the authentication method shown for each client surface.

| Client surface | Authentication | Setup guide |
| --- | --- | --- |
| Kilo Code | API key via environment | Setup guide available |
<!-- MCP_HOST_COMPATIBILITY:END -->

Add Pear to Kilo Code as a remote MCP server so its agent can read your connected
iCloud or Microsoft 365 account, with your key kept in the environment.

## 1. Prepare the key

[Sign in to Pear](https://pearmcp.com/login), connect iCloud or Microsoft 365, and
create an API key in Settings. Set it as `PEAR_API_KEY` in the environment that
launches VS Code or the Kilo CLI, then restart it.

## 2. Add Pear to your global configuration

Add Pear under the top-level `mcp` key in `~/.config/kilo/kilo.jsonc`. Keep it out of a
project's `kilo.jsonc` or `.kilo/kilo.jsonc`.

```json
{
  "mcp": {
    "pear": {
      "type": "remote",
      "url": "https://pearmcp.com/api/mcp",
      "headers": {
        "Authorization": "Bearer {env:PEAR_API_KEY}"
      },
      "oauth": false,
      "enabled": true
    }
  }
}
```

Kilo replaces `{env:PEAR_API_KEY}` with the variable's value. Keep the `Bearer `
prefix. `"oauth": false` stops Kilo starting an OAuth sign-in; Pear has no Kilo OAuth
client. In VS Code you can also use Settings → MCP → Add Server → Remote (HTTP) with the
same URL and header.

## 3. Check one real result

Confirm Pear is connected in the MCP servers list. Ask Kilo Code 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.

## Troubleshooting and revocation

`needs_auth` means Kilo is attempting OAuth; add `"oauth": false`. A 401 error means
the variable is empty or the key is inactive. Revoke the key in Pear and delete the
`pear` entry or set `"enabled": false`.

## 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 Kilo Code is still pending.

- [Kilo Code: using MCP](https://kilo.ai/docs/features/mcp/using-mcp-in-kilo-code)
- [HTML setup guide](https://pearmcp.com/guides/kilo-code)
