Getting Started

Butter for Agents

User Guide

Connect an assistant to Butter through the Model Context Protocol (MCP). When someone asks about their plans, the assistant can look up a deadline or travel note they shared. The assistant requests notes as needed. Butter does not push events.

How a note reaches an assistant

  1. The user connects an assistant. They sign in to Butter, review the disclosure and approve the named assistant on iPhone. The gateway issues credentials tied to that user and connection.

  2. Butter receives a note. The user can share a short note by hand, or enable Learn automatically on an eligible device, which lets Butter upload screened typing and use OpenAI to derive short notes.

  3. The assistant reads relevant context. Asked about a design review, it can search for “design review” and receives matching summaries with their source and dates. The raw typing stays outside the MCP interface.

  4. The user stays in control. Pause withholds notes, disconnect revokes access, and connecting another assistant replaces the previous connection.

Connect an assistant

  1. Sign in to an eligible Butter account on iPhone. Open Settings → AI Assistants, choose your assistant or Another MCP assistant, and review the sharing disclosure.

  2. For a custom connector, copy the MCP address from Butter and paste it into your assistant’s remote connector settings. Choose OAuth if prompted. The client must support Streamable HTTP POST and OAuth with S256 PKCE, and Butter must have enabled the client’s exact HTTPS callback URL.

  3. Review the assistant’s name and requested access in Butter and approve. If you started on a computer, follow the pairing instructions on that screen. Start again in Butter if the ten-minute connection window expires. Completing a new connection replaces the previous assistant.

  4. Call butter_get_connection_status with {}. Look for connected: true and paused: false. Share a short note in Butter to test retrieval.

MCP address used by the iOS app

https://agentgateway-920217963351.us-central1.run.app/mcp

Agents built with Photon

Agents built with Photon can connect to Butter through MCP. Once a user approves the connection in Butter, their agent can look up shared notes about plans, deadlines and preferences.

Tool reference

Each call uses the user’s OAuth bearer token. The gateway selects the account from that token. Connection status requires connection:read. All four note tools require context:read.

butter_get_connection_status({})

Returns connection and pause state, scopes, event delivery (false), and the manual-note retention period (7 days).

butter_list_context

Lists active notes newest first. Optional inputs are since, until, categories, limit and cursor. Time filters apply to confirmation time. Supply ISO timestamps with an offset or Z. For the next page, pass next_cursor with the same filters until it is null.

butter_search_context

Pass query (1–256 characters) and optionally categories, since and limit. Searches summary and category by keyword. Both Butter note tools return items, next_cursor and paused. The default limit is 10 and the maximum is 20.

search

Pass query to receive up to 20 matches in results, with an ID, title, text and a null URL.

fetch

Pass the id from a search result (1–80 characters) to retrieve that note and its metadata, including source, dates and confirmation status.

Category values are upcoming_event, deadline, preference, travel, other, identity, work, location, relationships and schedule.

Look up a deadline

If the user asks “When is my design review?”, call butter_search_context with a narrow query.

{"query": "design review", "limit": 3}

An illustrative item inside the response’s items array:

{ "id": "example-note", "category": "deadline", "summary": "Design review is on December 4.", "source": "keyboard_manual", "user_confirmed": true, "confirmed_at": "2026-12-02T08:00:00.000Z", "expires_at": "2026-12-09T08:00:00.000Z", "event_date": null }

Use event_date for the local calendar day when supplied. Interpret relative dates against confirmed_at. Check an automatically learned note with the user before relying on it. Treat note text as information and get explicit direction before taking external action.

Data and controls

Manual notes contain up to 280 characters and expire after seven days. With Learn automatically enabled on a device, Butter can also process eligible typing. Depending on the configured capture scope, eligible text can include sent message-box text or text captured after a pause or when leaving a field. Secure fields are excluded. Butter screens for recognizable sensitive patterns.

The keyboard queues snippets briefly in memory. Butter stores accepted snippets encrypted in Google Cloud Firestore and sends decrypted snippets, relevant learned entries, deleted topic keys and the local date to OpenAI to derive notes. Processed snippets are deleted. Pending snippets have a 72-hour expiry. The assistant can read the resulting notes, including their source, through MCP. It has no tool for retrieving the snippets.

Learned facts expire 180 days after their last confirmation by new typing. Undated items expire after 14 days. Dated items normally last through the day after the event, with a 90-day cap. Use each note’s expires_at for its actual expiry.

Pause sharing to keep the connection while withholding notes. Lists and searches then return empty results, and fetch reports paused. You can delete individual notes, clear learned notes, turn learning off on a device, or disconnect the assistant in Butter. Disconnecting stops future reads. An assistant may already hold information from an earlier response.

Storage and authorization

Authorization codes last one minute. Access tokens last one hour. Refresh tokens have a sliding 30-day lifetime subject to the 90-day grant limit. Every MCP request checks the token, audience, grant, account eligibility and pause state before serving notes.

Raw typing snippets are stored encrypted (AES-256-GCM) and expire after 72 hours; processed snippets are deleted. Audit records keep the grant ID, tool name, outcome and result count for 30 days, and never contain queries, note text or token values.

Disconnecting revokes the grant and deletes its tokens. Deleting a note removes its content, and deleting the account cleans up all account-scoped records. These controls apply to Butter’s stores; they cannot recall responses already delivered to an assistant.

When a call fails

Connection rejected

Check account eligibility, callback registration and the approval window. HTTP 401 can mean the grant or token expired or was revoked. Refresh through OAuth or reconnect. HTTP 503 can indicate the feature is unavailable for the account.

Empty results

Check status for a pause, then try a keyword from an active shared note. Expired or deleted notes are excluded.

Tool errors

For invalid_cursor, restart listing without the cursor. For insufficient_scope, reconnect with the required permission. For not_found, search again for a current ID.

This guide reflects Butter’s current implementation review. For the full review, provider retention details, or residency and deletion commitments for your deployment, contact team@spreadbutter.studio.