Memlane Sign in

Connections developer guide

Last updated June 18, 2026

← Connect ChatGPT or Claude

Memlane exposes your library to AI assistants through the Model Context Protocol (MCP) and a /v1 REST API. Two authentication paths:

Create and revoke keys in the app: Manage → Connections.

Remote MCP (OAuth)

Use when your AI app offers a custom connector or remote MCP server field, not a local npx command.

Endpoint: https://api.memlane.io/mcp

  1. Add a new MCP connector and paste the URL above.
  2. Sign in to Memlane (magic link). Consent screen: app.memlane.io/oauth/mcp.
  3. Approve access. Token scopes: read, write, capture.
  4. Tools load in the host app.

OAuth discovery (RFC 9728 / 8414) is served by the Worker (/.well-known/oauth-protected-resource, token/authorize/register endpoints). Disconnect by removing the connector in the host app.

ChatGPT

  1. Settings → Connectors (or Apps & Connectors).
  2. Add a custom connector / MCP server.
  3. URL: https://api.memlane.io/mcp
  4. Complete Memlane OAuth when redirected.

Claude (Desktop, web, mobile)

Claude Desktop, Claude on the web, and Claude mobile all support custom connectors with remote MCP + OAuth, same endpoint as ChatGPT.

  1. Settings → ConnectorsAdd custom connector.
  2. URL: https://api.memlane.io/mcp
  3. Click Add, then Connect and complete Memlane OAuth.

No API key or claude_desktop_config.json needed. If tools fail to reload, remove and re-add the connector.

Local MCP (API key)

Package: @memlane/mcp. Requires Node.js 18+ and an API key from Manage → Connections.

{
  "mcpServers": {
    "memlane": {
      "command": "npx",
      "args": ["-y", "@memlane/mcp"],
      "env": {
        "MEMLANE_API_KEY": "ml_live_…"
      }
    }
  }
}
VariableRequiredDefault
MEMLANE_API_KEYYesn/a
MEMLANE_API_URLNohttps://api.memlane.io

After npm install -g @memlane/mcp, use "command": "memlane-mcp" instead of npx. Restart the host after editing config.

Cursor

  1. Cursor Settings → MCP, or .cursor/mcp.json in your project.
  2. Paste the mcpServers block above with your API key.
  3. Restart Cursor or reload MCP servers.

Claude Code

CLI: local stdio MCP with an API key.

claude mcp add memlane -- npx -y @memlane/mcp -e MEMLANE_API_KEY=ml_live_…

VS Code + Copilot

Root key is "servers" (not mcpServers):

{
  "servers": {
    "memlane": {
      "command": "npx",
      "args": ["-y", "@memlane/mcp"],
      "env": {
        "MEMLANE_API_KEY": "ml_live_…"
      }
    }
  }
}

Save as .vscode/mcp.json. Enable "chat.mcp.enabled": true.

Other MCP hosts

HostConfig location
Windsurf~/.codeium/windsurf/mcp_config.json
Gemini CLI~/.gemini/settings.json
Claude Codeclaude mcp add (stdio)

Local and remote setups expose the same tools; only auth differs.

Available tools

ToolDescription
search_savesSemantic search over your library
list_savesBrowse saves (project, topic, kind, status filters)
get_saveMetadata; optional full markdown body
capture_urlSave a URL (background enrich pipeline)
create_note / update_noteCreate or edit markdown notes
list_projects / list_topicsList projects and topics
add_topic_to_save / remove_topic_from_saveTag or untag a save

REST API

Base: https://api.memlane.io/v1/* with Authorization: Bearer ml_live_…. Scopes: read, write, capture.

MethodPathScopeDescription
GET/v1/itemsreadList saves
GET/v1/items/:idreadMetadata + topics
GET/v1/items/:id/contentreadMarkdown body
POST/v1/searchreadSemantic search
POST/v1/capturecaptureSave a URL
POST/v1/noteswriteCreate note
PATCH/v1/notes/:idwriteUpdate note
DELETE/v1/items/:idwriteDelete save
GET/v1/projectsreadList projects
GET/v1/topicsreadList topics
POST/v1/items/:id/topicswriteAttach topic
DELETE/v1/items/:id/topicswriteRemove topic

Supabase JWT (browser session) also works on /v1/* for the web app. Repo reference: docs/AI_ACCESS.md.

Security & limits

Questions: hello@memlane.io.