# elen MCP server

> Records coding agent decisions and their constraints in a local SQLite database to track precedents and supersede old decisions.

- Repository: https://github.com/LearningNodes/Elen
- Page: https://hostedmcp.org/servers/learningnodes/elen
- Transport: stdio
- Stars: 4
- License: AGPL-3.0
- Latest version: 0.3.1

## Install

### Claude Code

```sh
claude mcp add elen -- npx -y @learningnodes/elen-mcp
```

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

```json
{
  "mcpServers": {
    "elen": {
      "command": "npx",
      "args": [
        "-y",
        "@learningnodes/elen-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "elen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@learningnodes/elen-mcp"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "elen": {
      "command": "npx",
      "args": [
        "-y",
        "@learningnodes/elen-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add elen -- npx -y @learningnodes/elen-mcp
```

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

```toml
[mcp_servers.elen]
command = "npx"
args = ["-y", "@learningnodes/elen-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user elen npx -- -y @learningnodes/elen-mcp
```

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

```json
{
  "mcpServers": {
    "elen": {
      "command": "npx",
      "args": [
        "-y",
        "@learningnodes/elen-mcp"
      ]
    }
  }
}
```

## Tools (12)

- `elen_commit`
- `elen_get_competency`
- `elen_consolidate`
- `elen_get_context`
- `elen_expand`
- `elen_incoming`
- `elen_log_decision`
- `elen_search_precedents`
- `elen_status`
- `elen_suggest`
- `elen_supersede`
- `elen_team_search`

## FAQ

### Where are decisions stored?

Decisions are kept in a local SQLite file on your machine, defaulting to ~/.elen/decisions.db.

### Does it work with Claude Code?

Yes, it is compatible with Claude Code and has been run by the maintainer.

### How can I make my agent use elen?

You should add a specific 'Epistemic Decision Memory Protocol' block to your agent's rules file or system prompt to ensure it searches and commits decisions.

### Is there a cloud or connected mode?

Yes, a connected mode is available in beta which requires an elen login and an API key.
