Skip to content

Connect Grok to iCloud and Microsoft 365

Follow the documented Grok Web OAuth path for iCloud and Microsoft 365, or use a Pear API key with Grok Build and the xAI API. Available actions depend on client permissions; Grok Bot has a native OAuth custom-connector preview.

Connection details

The values Grok asks for first.

Pear hosted endpointhttps://pearmcp.com/api/mcp
Authentication
Web OAuth
Setup surface
Web OAuth + PKCE
OAuth client registeredGrok Bot: OAuth previewClient ID readyPKCE S256Remote MCP

Cursor has a separate direct Pear OAuth setup. Grok Bot shares the Cursor consent identity and grant boundary, and personal Pear API keys must never be shared as team plugin variables.

Setup guide availableOfficial setup reference
Get ready

1. Create your Pear account

Choose the Grok surface you use before signing up. Grok Business and Enterprise members need an admin to provision the connector first. Grok Bot has a native OAuth custom-connector preview. For your chosen surface, create your own Pear account and connect Apple iCloud or Microsoft 365, then follow that surface's setup below.

Keep your calendar or mail app open to compare the first result. The native Grok Bot preview has completed sign-in, bounded reads, reconnect and revocation checks. Grok Web, Build and API testing remain separate.

Connect iCloud or Microsoft 365

Apple Reminders compatibility

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.

Read the Apple Reminders compatibility note
Make the connection

2. Connect Grok Web with OAuth

Pear’s Grok Web client is active.

Use pear_oauth_grok_web as the Client ID. Leave Client Secret blank, keep Token Auth Method set to None / PKCE only, and use PKCE S256 if Grok presents a PKCE choice.

Open Grok's connector settings, create a Custom connector, and enterhttps://pearmcp.com/api/mcp. Keep the authorization endpoint, token endpoint, and mcp: scopes that Grok discovers. In the OAuth Credentials Required dialog, enter the Client ID above and use the public-client settings shown here. No Pear API key is needed for this flow.

Select Save & Connect, sign in to Pear, approve the connection, and return to Grok.

Grok Business and Enterprise workspaces require a team admin to provision Pear from the cloud console before members can connect it. Adding or removing connectors requires Team Read-Write permission.

Leave Client Secret empty. Pear does not issue a Grok client secret because this is a public OAuth client protected by PKCE. Never paste apear_sk_... value into Grok's Client ID or Client Secret fields; Pear API keys are Bearer credentials for the separate Grok Build and xAI API paths below.

Make the connection

3. Connect Grok Bot (OAuth preview)

Grok Bot has a native OAuth custom-connector preview.

Sign-in, bounded Apple and Microsoft calendar and inbox-metadata reads, reconnect and revocation were checked in Grok Bot 0.78.1 on 31 October 2026. Ordinary-chat reads also worked without a saved skill.

Sign in to your own Pear account and connect your providers. In Grok Bot, ask to add a custom remote MCP app named Pear. Set the server URL tohttps://pearmcp.com/api/mcp, authentication to OAuth, and public Client ID to pear_oauth_grok_bot. Leave the client secret empty. No shared Pear API key is needed.

Open the Connect card and complete Pear consent. Let Grok use its hosted callback at https://www.cursor.com/agents/mcp/oauth/callback. The consent screen calls this client Cursor because Grok uses Cursor's connector backend. Cursor editor and Grok Bot share this grant boundary; revoking it can disconnect both. Cursor Cloud uses a separate identity.

For summaries, choose Read-only briefs if Grok requests broader access. This grants discovery, calendar reads, contacts reads and mail metadata, excluding message bodies, provider changes and sending. Contacts-read is needed for Microsoft calendar access. Choose Keep connected or 30 days, then allow access.

Ask for pear_provider_status, inspect the actual permissions, choose your account and confirm one small calendar or inbox read. Use returned account IDs when names are ambiguous. In Settings → Apps → Pear → Tools, choose the tools and approval settings you need; these cannot expand your Pear grant. Separate chats organize topics; they do not isolate OAuth permissions. Account selection is not a server-enforced account allowlist.

Skills are optional instructions over the same connection. Native writes, token refresh, two-member isolation and scheduled routines remain unverified. Setup creates no routine. This preview does not establish a public app listing, shareable Bot template or plugin-marketplace certification. Never put a personal Pear API key in a shared team plugin variable.

Make the connection

4. Use Pear from Grok Build

Store your Pear API key in the PEAR_API_KEY environment variable without committing it. Then add Pear through Grok Build's documented static header path:

grok mcp add --transport http pear https://pearmcp.com/api/mcp \
  --header 'Authorization: Bearer ${PEAR_API_KEY}'
grok mcp doctor pear
grok inspect
grok

Inside the Grok TUI, open /mcps to check Pear status. xAI also documents compatible Claude, Cursor, and project MCP configuration files.

Read xAI's Grok Build MCP documentation

Make the connection

5. Use Pear from the xAI API

If you call Grok through the xAI API, pass Pear as a remote MCP tool. Keep the Pear API key on your server and send it as the MCP authorization value. The example reads the key from the server environment rather than embedding it in source. It limits discovery to provider status for the first check. xAI does not support the Responses APIrequire_approval option; enforce approval in your own application before enabling write tools. Omitted or empty allowed_tools allows every tool.

const pearApiKey = process.env.PEAR_API_KEY;

if (!pearApiKey) throw new Error('Missing PEAR_API_KEY');

const pearMcpTool = {
  type: "mcp",
  server_url: "https://pearmcp.com/api/mcp",
  server_label: "pear",
  server_description: "Pear MCP connects Grok to Calendar, Tasks, Contacts, and Mail.",
  authorization: `Bearer ${pearApiKey}`,
  allowed_tools: ["pear_provider_status"],
};

Read xAI's Remote MCP Tools documentation

Check it works

Check your first result

After connecting, make a read-only request. Available tools depend on the chosen Grok surface and permissions. These prompts describe what to check on your own account; they are not a verified Grok demonstration.

Start with status. Ask: "Use Pear to check which accounts and calendar services are ready. Do not read mail, create, or change anything." Confirm that the result names the account you connected. This checks readiness, not the contents of your calendar.

For the xAI API example above, stop here first: its allowed_tools exposes only pear_provider_status. For the calendar check below, explicitly add pear_list_calendars and pear_list_events to that allowlist while retaining provider status. Do not remove the allowlist or set it to an empty list.

Read a known calendar. Give Grok your timezone, then ask: "List the calendars for the account I choose. After I select one, list today's events with the calendar name, title, start time, and timezone. Do not create or change anything."

  • Check that Grok made a Pear calendar read. A successful sign-in or provider-status response alone does not prove that event data is available.
  • Compare the exact account, calendar, and event time in Apple Calendar or Outlook. If today is empty, try a date with a known event before changing credentials.

If your first check fails

Grok Web cannot sign in: check the public Client ID, blank Client Secret, None / PKCE only, and S256 settings above. A Pear API key does not belong in those OAuth fields. Managed workspaces also need the connector provisioned by an authorized admin.

Grok Build cannot see Pear: use grok mcp doctor pear and /mcps, and check that PEAR_API_KEY is available to the process without printing it.

The API returns status but no events: check the explicit read-tool allowlist. For every surface, also check the selected account, service readiness, and read permission in Pear. An empty calendar can reflect its date range or timezone.

If the error remains, contact Pear support with the Grok surface, failed step, and sanitized error. Do not send keys, OAuth tokens, or private provider data.

Built-in connector or Pear?

Grok offers built-in connectors including Outlook Mail and Calendar. If that connector already covers your Microsoft account and task, check its available actions first. Pear is a separate custom connection with its own consent and provider permissions, not a requirement for every Outlook workflow.

Use this guide for Pear's hosted iCloud connection, iCloud Mail workflows, or Microsoft To Do. Compare actual tool availability for the Grok surface you use; a registered OAuth client alone does not establish that the complete connection has been tested.

Connector types checked against xAI's connector documentation on 16 October 2026. Grok Bot preview reads are described above; this does not establish the separate Grok Web, Build or API connection tests.

What the Grok paths can expose

The available tools, reads, writes, and approvals depend on the current Grok surface, workspace role, connector configuration, and permission policy.

  • Use one hosted MCP server for Apple iCloud and Microsoft 365 workflows.
  • Read and write calendar events, tasks, contacts, and mail when the chosen Grok surface exposes and invokes the corresponding Pear tools.
  • Keep Google Calendar migration paths ready as Pear expands provider support beyond compatible IMAP/SMTP mailbox beta.
  • Start Pear OAuth from Grok Web with the active production Client ID, or use the documented coding/API paths without running a local bridge. Follow the Grok Bot custom-connector preview steps and limits above.
Put it to use

Grok workflows to try

Only move on after your first read matches the source account. Tool availability and writes remain subject to your Grok surface and Pear permissions.

These workflow guides do not establish native Grok Bot write or routine support. In an xAI API application, enforce approval before enabling write tools.

All guides

Connect Grok

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.