Skip to main content
MemContext provides a hosted MCP server. You can connect it directly to Claude.ai or Claude Desktop with OAuth, or use an API key for coding agents like Claude Code, Cursor, OpenCode, and Codex CLI.

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 generates ready-to-paste configs with your API 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.

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).