# Connect your AI

Let Claude or ChatGPT read, search and write your notes. MemoMori runs an MCP
server that both can connect to, as can coding agents such as Claude Code and
Codex. It needs [Pro](/docs/plans).

```
https://memomori.app/mcp
```

You need no API key. When an app asks to connect, sign in to MemoMori, pick how
long its access lasts, from 7 days to never, and click **Allow**.

## Claude

Works on claude.ai and in the Claude desktop and mobile apps. Claude's Free
plan allows one custom connector.

1. On claude.ai, open **Customize → Connectors**.
2. Click **+ Add**, then **Add custom connector**.
3. Name it `MemoMori`, paste the server URL, and click **Add**.
4. Click **Connect** and sign in to MemoMori.

In a chat, click **+**, open **Connectors**, and turn MemoMori on. See
[Claude's guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)
if your menus differ.

## ChatGPT

1. Open [chatgpt.com/plugins](https://chatgpt.com/plugins), click **+**, then
   **Add custom MCP server**.
2. Name it `MemoMori` and paste the server URL.
3. Pick **OAuth** for authentication, then **Create as a plugin**.
4. Install the plugin and sign in to MemoMori.

In a chat, type `@` and pick MemoMori. ChatGPT asks you to confirm each change
before it writes. See
[OpenAI's guide](https://developers.openai.com/api/docs/guides/developer-mode)
if your menus differ.

## Coding agents

### Claude Code

```sh
claude mcp add --transport http memomori https://memomori.app/mcp
```

Then run `/mcp` in Claude Code to sign in. See the
[Claude Code MCP guide](https://code.claude.com/docs/en/mcp).

### Codex

```sh
codex mcp add memomori --url https://memomori.app/mcp
```

Then run `codex mcp login memomori` to sign in. See the
[Codex MCP guide](https://developers.openai.com/codex/mcp).

### Other clients

Give the server URL to any client that speaks Streamable HTTP and OAuth, such
as Cursor or VS Code.

## Things to ask

- "Find my notes about the Kyoto trip and sum them up."
- "Add today's standup notes to `journal/2026-11-26.md`."
- "Save this article to `reading/`."
- "List my tags, then show me every note tagged `#travel`."
- "What did I change in `plans.md` this week? Undo the last edit."
- "Which notes have `status: todo` and are overdue? Mark them `doing`."
- "Draw our sign-up flow in `diagrams/signup.excalidraw`."
- "Add a cache between the API and the database in my architecture drawing."

## What your AI can do

| Task                 | Tools                                                                                          |
| -------------------- | ---------------------------------------------------------------------------------------------- |
| Find and read        | `search_entries`, `list_entries`, `list_tags`, `list_properties`, `read_entry`, `read_entries` |
| Write and edit       | `write_entry`, `append_entry`, `edit_entry`, `set_properties`, `format_entry`                  |
| Organize             | `create_directory`, `update_entry`, `delete_entry`                                             |
| Draw                 | `read_drawing`, `render_drawing`, `edit_drawing`, `prepare_drawing_image`                      |
| Upload files         | `prepare_upload`, `complete_upload`                                                            |
| Save a web page      | `clip_page`                                                                                    |
| Read and restore     | `list_versions`, `read_version`, `restore_version`                                             |
| Undo its own changes | `list_operations`, `undo_operation`, `restore_entry`                                           |
| Check the account    | `whoami`, `list_audits`                                                                        |

Your AI cannot change account settings or billing. File deletes go to the
[graveyard](/docs/restore#bring-back-a-deleted-file). Text edits keep the prior
version, subject to [history limits](/docs/restore#how-long-history-lasts).
Undoable file actions last 24 hours; replacing binary uploads does not keep
their old bytes.

## Edit or upload large files

- Use `edit_entry` to replace exact text without sending the whole note.
- Use `set_properties` to change frontmatter on one note or up to 100 notes.
- For a local file, use `prepare_upload`, PUT the bytes to the returned URL
  with the returned headers, then call `complete_upload`. The client needs
  a way to send those bytes, such as a shell tool.
- Pass `if_match` from the last read or write to protect concurrent edits.
  Content writes accept `etag` or `content_etag`.

## Draw

Your AI edits [drawings](/docs/drawings) by element, not by rewriting their
Excalidraw JSON:

- `read_drawing` lists each element with its id, position, text and the arrows
  between elements.
- `render_drawing` returns a picture of the drawing, so the AI can check its
  work.
- `edit_drawing` adds, changes, moves and deletes elements by id. Shapes added
  without a position are laid out along their arrows, and arrows stay attached
  when shapes move. It also turns a Mermaid flowchart into shapes and arrows.
- `prepare_drawing_image` uploads a local image to place in a drawing. Images
  already in MemoMori need no upload.

Each edit saves a new version, so you can [restore](/docs/restore) the drawing
from before it.

Renames return `rewritten`, which lists notes whose links changed and their
new hashes. Use those hashes when comparing local files with MemoMori.

## When access ends

An app stops working when access expires, you revoke it, Pro ends, or you
schedule account deletion. Check the account first. If access expired or
you revoked it, sign in again from the app.

## Manage connected apps

[Settings → Integrations](https://memomori.app/settings/integrations) lists each app. Rename
one to tell it apart, or revoke it to cut it off.
