Skip to main content
MemContext provides a hosted MCP server. You can connect with OAuth from any client that supports remote MCP sign-in (Claude.ai, Claude Desktop, ChatGPT, Claude Code, Codex CLI, Cursor, VS Code, OpenCode), or use an API key header in coding agents. Both work side by side.

Prerequisites

  • A MemContext account at app.memcontext.in
  • An API key if you are connecting a coding agent (create one under Settings > API Keys)
The MCP page in your dashboard has step-by-step OAuth instructions for each client (recommended) and an API-key section that generates ready-to-paste configs with your key pre-filled.

Claude.ai & Claude Desktop

Use this path when you want everyday Claude conversations to remember preferences, project context, and recurring details without editing config files. Step 1 - Open Connectors In Claude.ai or Claude Desktop, open Settings → Connectors. Step 2 - Add a custom connector Choose Add custom connector. Step 3 - Enter the production URL Use:
Step 4 - Connect and approve access Click Connect, sign in to MemContext if prompted, then approve the requested scopes on the consent screen. Paste this into Claude → Settings → Profile → Instructions for Claude:
Claude.ai and Claude Desktop use OAuth for this flow. You do not need to paste API keys, headers, or config files.

Other clients with OAuth

Any client that supports MCP OAuth can connect with just the server URL, with no API key. The client discovers MemContext’s authorization server, opens a browser to sign in, and shows a consent screen with the client’s name and logo. Pick the workspace for the connection and approve.
  • ChatGPT: add a custom connector (developer mode) with the URL above.
  • Claude Code: claude mcp add --transport http memcontext https://mcp.memcontext.in/mcp, then run /mcp to sign in.
  • Codex CLI: codex mcp add memcontext --url https://mcp.memcontext.in/mcp, then codex mcp login memcontext.
  • Cursor / VS Code / OpenCode: add the server with only the url (no headers). The client prompts you to sign in.
Connections stay signed in: clients receive refresh tokens and renew access automatically. Each connection is bound to the workspace you approved on the consent screen. To use a different workspace, connect again and pick it. To see or remove connected apps, open the MCP page in the dashboard and scroll to Active connections. It shows each app, when it was connected, and when it was last active. Disconnect signs the app out immediately. Workspace owners and admins can manage every member’s connections.
OAuth connections created before the MCP 2026-07-28 upgrade must be reconnected once. API-key setups are unaffected.
The sections below use API keys, which are useful for clients without OAuth support and for scripted setups.

Claude Code

Step 1 - Add the MCP server via CLI:
Or add this to ~/.claude.json:
Step 2 - Add agent instructions to ~/.claude/CLAUDE.md:

Cursor

Step 1 - Add this to ~/.cursor/mcp.json:
Step 2 - Add the agent instructions to Cursor Settings > Rules and commands > User Rules.

OpenCode

Step 1 - Add the MCP server to ~/.config/opencode/opencode.json:
Step 2 - Add the agent instructions to ~/.config/opencode/AGENTS.md.

Codex CLI

Step 1 - Add the MCP server to ~/.codex/config.toml:
Step 2 - Add the agent instructions to ~/.codex/instructions.md.

Agent instructions

These instructions tell your AI assistant how and when to use MemContext. Add them to the preferences file for your client (listed above):

Available tools

Once connected, your assistant has access to five tools: See the MCP Tools section for parameter documentation.

Verifying the connection

After setup, ask Claude or your coding assistant:
“Search your memory for any information about me.”
If the connection is working, it will call search_memory and return results (or an empty set if no memories exist yet).