tutorial getting-started mcp

Getting Started with CodeMem

Learn how to set up CodeMem and give your AI coding assistant persistent memory in under 5 minutes.

CodeMem Team

What is CodeMem?

CodeMem is a universal memory layer for AI coding assistants. It allows your AI tools—whether Claude, Cursor, GitHub Copilot, or any MCP-compatible agent—to remember your coding preferences, architectural decisions, and project context across sessions.

Quick Setup (5 minutes)

Step 1: Create Your Account

Visit app.codemem.dev/dashboard and sign in with your GitHub or Google account. You'll get 1,000 free memories to start.

Step 2: Generate an API Key

In your dashboard, navigate to API Keys and create a new key. Copy it somewhere safe—you'll only see it once!

cm_abc123...

Step 3: Configure Claude Desktop

Add CodeMem to your Claude Desktop configuration file:

// ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
// %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "codemem": {
      "url": "https://app.codemem.dev/mcp",
      "headers": {
        "Authorization": "Bearer cm_your_api_key_here"
      }
    }
  }
}

Step 4: Start Using Memory

Restart Claude Desktop and you're ready! Try these commands:

  • "Remember that I prefer TypeScript over JavaScript"
  • "Save that we use Tailwind CSS for styling"
  • "What are my coding preferences?"

Available Tools

CodeMem provides these MCP tools to your agent:

  • add_memory - Save new information
  • search_memories - Find relevant context
  • list_memories - Browse your memories
  • delete_memory - Remove outdated info

Best Practices

  • Be specific: "I use 2-space indentation" is better than "I like nice formatting"
  • Use projects: Organize memories by project for better context
  • Review periodically: Check your dashboard to prune outdated memories

Next Steps

Now that you're set up, explore more: