Skip to content
MCP server

A Mem MCP

Self-evolving memory system for AI agents

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.1
Listing updated
4 days ago

About A Mem MCP

A Mem MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add a-mem-mcp --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- uvx a-mem

Add to claude_desktop_config.json

{
  "mcpServers": {
    "a-mem-mcp": {
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "a-mem-mcp": {
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "a-mem-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "a-mem-mcp": {
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "a-mem-mcp": {
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

Configuration

  • LLM_BACKENDLLM backend to use (openai, ollama, sglang, or openrouter)
  • LLM_MODELLLM model name (e.g., gpt-4o-mini, llama2, etc.)
  • OPENAI_API_KEYOpenAI API key (required if LLM_BACKEND=openai)Required
  • EMBEDDING_MODELSentence transformer model for embeddings
  • CHROMA_DB_PATHChromaDB storage directory path

Pricing

Open source

A Mem MCP FAQ

Is A Mem MCP free?

Yes. A Mem MCP is open source, so you can use and self-host it for free.

How do I add A Mem MCP to Claude Code?

Run this command in your terminal: claude mcp add a-mem-mcp --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- uvx a-mem