MCP server
Connect Claude, ChatGPT, Cursor or any MCP client, so it can search, read and save in your library for you.
Connect
Every client connects to the same server URL. Fold handles sign-in with OAuth, so there are no keys to paste.
Add Fold as a remote server, then sign in from inside Claude Code.
$ claude mcp add --transport http fold https://mcp.fold.example.com/mcpStart Claude Code, run /mcp, choose fold and follow the sign-in link.
Add Fold to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one.
{ "mcpServers": { "fold": { "url": "https://mcp.fold.example.com/mcp" } }}Open Cursor Settings → MCP, find fold and click Connect to sign in.
Open Settings → Connectors and choose Add custom connector.
Name it Fold and paste the server URL.
Server URLhttps://mcp.fold.example.com/mcpClick Connect, then allow Fold in the window that pops up.
Add a server entry to ~/.codex/config.toml.
[mcp_servers.fold]url = "https://mcp.fold.example.com/mcp"Start Codex. The first time it uses Fold, it opens your browser to approve access.
Add Fold to .vscode/mcp.json in your workspace.
{ "servers": { "fold": { "type": "http", "url": "https://mcp.fold.example.com/mcp" } }}Open the Command Palette, run MCP: List Servers, select fold and choose Start.
Open Settings → Apps & Connectors → Advanced settings and turn on Developer mode.
Back in Apps & Connectors, choose Create and name the connector Fold.
Paste the server URL, choose OAuth for authentication, and click Create.
Server URLhttps://mcp.fold.example.com/mcp
Clients with remote MCP support (streamable HTTP and OAuth) can connect with the server URL alone. For clients that only run local servers, bridge to Fold with mcp-remote:
{ "mcpServers": { "fold": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.fold.example.com/mcp"] } }}Approve and verify
Sign in when your client opens the Fold window.
If you’re already signed in to Fold in your browser, this step is skipped.
Choose what the client can do.
Read lets it search and read your library. Read and save also lets it add saves, highlights and collection changes. You can limit access to chosen collections.
Click Allow.
You can see and revoke every connection in Fold under Settings → Connected apps.
To check it worked, ask your client:
Search my Fold library for "resonance" and summarise what I've saved, with a link to each source.You should see the client call search_library and answer with your own saves.
Available tools
The server exposes these tools. Tools marked Save need the Read and save permission.
| Tool | What it does | Access |
|---|---|---|
search_library | Search saves, highlights and transcripts by keyword or meaning. | Read |
ask_library | Answer a question from your library, citing the saves it used. Pro. | Read |
get_save | Fetch a save's reader copy, summary, transcript and details. | Read |
list_collections | List your collections with their save counts. | Read |
get_highlights | List highlights and notes, filtered by save, tag or date. | Read |
save_url | Save a link, optionally into a collection with tags. | Save |
add_to_collection | Add an existing save to a collection. | Save |
create_highlight | Highlight a passage in a save, with an optional note. | Save |