Prerequisites
- A MemContext account at app.memcontext.in
- An API key if you are connecting a coding agent (create one under Settings > API Keys)
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:Recommended instructions
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/mcpto sign in. - Codex CLI:
codex mcp add memcontext --url https://mcp.memcontext.in/mcp, thencodex mcp login memcontext. - Cursor / VS Code / OpenCode: add the server with only the
url(no headers). The client prompts you to sign in.
OAuth connections created before the MCP 2026-07-28 upgrade must be
reconnected once. API-key setups are unaffected.
Claude Code
Step 1 - Add the MCP server via CLI:~/.claude.json:
~/.claude/CLAUDE.md:
Cursor
Step 1 - Add this to~/.cursor/mcp.json:
OpenCode
Step 1 - Add the MCP server to~/.config/opencode/opencode.json:
~/.config/opencode/AGENTS.md.
Codex CLI
Step 1 - Add the MCP server to~/.codex/config.toml:
~/.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).