# agexs brain

> agexs brain is an MCP server for agent memory. Shared long-term memory and team rules for Claude Code, Codex, Cursor and other MCP agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** CLI, API, Web
- **Website:** https://agexs.dev/docs/brain
- **MCP Registry name:** dev.agexs/brain
- **Categories:** [agent memory](https://ai-powered.com/categories/agent-memory)
- **Listing updated:** 2026-11-30

## About

Teams that use several coding agents often watch them repeat the same mistakes across sessions. This server keeps a shared memory that agents write to when someone corrects them, then feeds the relevant notes back in at session start, on each prompt, and before work on infrastructure or deploy files.

Memories are saved as short entries with a type, scope and space, and always-on rules can be pinned so they load every session. Before saving, the system checks for near-duplicates and updates them instead of creating copies, and entries containing secrets are refused. Agents can also search and read memories on demand with dedicated tools.

The product is aimed at development teams working with MCP-capable agents. Spaces can be private or shared, team owners can choose whether risky commands are blocked when the memory service is unreachable, and spaces can be exported as Markdown or backed up to your own server.

## Features

- **Shared memory across agents:** One memory store is used by Claude Code, Codex, Cursor and other MCP clients.
- **Automatic lesson capture:** When an agent is corrected, it is asked to save the lesson as a short memory.
- **Context injection per prompt:** Relevant memories are pushed into sessions at start, per prompt and after infra changes.
- **Duplicate detection:** New lessons are compared with existing memories and merge into them when close.
- **Team rules enforcement:** Always-on rules apply to every session, with optional blocking of risky commands.
- **Private and team spaces:** Memories are organised into spaces that control who can access them.
- **Markdown export and backup:** Spaces can be exported as Markdown or backed up nightly to your own server.

## Good for

- Stop coding agents from repeating a mistake a teammate already corrected
- Share deploy steps and project conventions across a team's agents
- Keep CLAUDE.md, AGENTS.md or Cursor rules in one shared place
- Load server or tool-specific notes when an agent starts work on them
- Export team memory to Markdown for review or archiving

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http brain https://brain.agexs.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "brain": {
      "type": "http",
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://brain.agexs.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "brain": {
      "type": "http",
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://brain.agexs.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add brain --url https://brain.agexs.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.brain]
url = "https://brain.agexs.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "brain": {
      "httpUrl": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http brain https://brain.agexs.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "brain": {
      "serverUrl": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "brain": {
      "type": "streamableHttp",
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "brain": {
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://brain.agexs.dev/mcp
```

Enter a Name (for example "agexs brain"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "brain": {
      "type": "http",
      "url": "https://brain.agexs.dev/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 2 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `memory_search` (name suggests: reads): Searches saved memories.
- `memory_get` (name suggests: reads): Reads a memory in full.

## FAQ

### Which agents can connect?

The CLI has install commands for Claude Code, Codex and Cursor, and other MCP clients can connect using the connector URL.

### What happens if the memory service is down?

Agents keep working without memories, and every hook gives up after a few seconds. Rule checks pause unless an owner enables blocking of risky commands when the service is unreachable.

### Are secrets stored in memories?

Memories containing secrets are refused when saved.

### Can I export my memories?

Yes, a space can be exported as Markdown files at any time, and memories can be backed up to your own server with a cron script and a backup key.

### How do I add agexs brain to Claude Code?

Run this command in your terminal: claude mcp add --transport http brain https://brain.agexs.dev/mcp

### What are the best alternatives to agexs brain?

The closest alternatives to agexs brain are axs brain, memsprout, Memorinth, Hippo memory and Sessionmem.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [axs brain](https://ai-powered.com/mcp/axs-brain): axs brain is an MCP server for agent memory.
- [memsprout](https://ai-powered.com/mcp/memsprout): memsprout is a paid MCP server for agent memory.
- [Memorinth](https://ai-powered.com/mcp/memorinth): Memorinth is a free MCP server for knowledge and memory.
- [Hippo memory](https://ai-powered.com/mcp/hippo-memory): Hippo memory is an open-source MCP server for knowledge and memory.
- [Sessionmem](https://ai-powered.com/mcp/sessionmem): Sessionmem is an open-source MCP server for agent memory.
- [Heirmos](https://ai-powered.com/mcp/heirmos): Heirmos is a free MCP server for knowledge and memory.
- [Brigade Memory](https://ai-powered.com/mcp/brigade-memory): Brigade Memory is an open-source MCP server for knowledge and memory.
- [Memstack](https://ai-powered.com/mcp/memstack): Memstack is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/agexs-brain
