# devmemory MCP server

> Provides persistent, local-first project memory for AI coding agents to store and retrieve architectural decisions, debugging lessons, and conventions.

- Repository: https://github.com/vasikmansuri/devmemory
- Page: https://hostedmcp.org/servers/vasikmansuri/devmemory
- Transport: stdio
- Stars: 14
- License: MIT

## Install

### Claude Code

```sh
claude mcp add devmemory -- npx -y @vasikmansuri/devmemory
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "devmemory": {
      "command": "npx",
      "args": [
        "-y",
        "@vasikmansuri/devmemory"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "devmemory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vasikmansuri/devmemory"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"devmemory","type":"stdio","command":"npx","args":["-y","@vasikmansuri/devmemory"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "devmemory": {
      "command": "npx",
      "args": [
        "-y",
        "@vasikmansuri/devmemory"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add devmemory -- npx -y @vasikmansuri/devmemory
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.devmemory]
command = "npx"
args = ["-y", "@vasikmansuri/devmemory"]
```

### Gemini CLI

```sh
gemini mcp add -s user devmemory npx -- -y @vasikmansuri/devmemory
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "devmemory": {
      "command": "npx",
      "args": [
        "-y",
        "@vasikmansuri/devmemory"
      ]
    }
  }
}
```

## Tools (9)

- `memory_save`
- `memory_search`
- `memory_get`
- `memory_update`
- `memory_forget`
- `memory_list`
- `memory_context`
- `memory_link`
- `memory_stats`

## FAQ

### How does it handle sensitive information like API keys?

The server performs secret redaction, covering AWS keys, GitHub tokens, and other private credentials before anything is stored.

### Does it support semantic search?

Currently, it uses SQLite FTS5 full-text keyword search rather than semantic search, though semantic search is on the roadmap.

### Can I use it with Claude Code?

Yes, it is verified end-to-end with Claude Code.
