# SlashML (/ ml) Persistent Agent Memory & Code Localization

> SlashML (/ ml) Persistent Agent Memory & Code Localization is an MCP server for knowledge and memory. Persistent agent memory, behavioural code search and bug localisation, with hooks. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Website:** https://slashml.ai
- **Repository:** https://github.com/slashml-ai/ml-memory
- **MCP Registry name:** ai.slashml/ml-memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

The ml server stores memories across agents and team members and searches them back. The README and site claim 94.5% on LoCoMo at 0.86 ms, results the vendor reports itself. Memory tools add, search, get and forget; code tools index a repository, search by behaviour and find bug candidates.

Lifecycle hooks can pick up new standing instructions on UserPromptSubmit and check tool calls against active rules before and after use. It is Apache-2.0 licensed and hosted at api.slashml.ai.

## Features

- **Memory storage:** Add, search, get, forget.
- **Behavioural code search:** By what code does.
- **Bug candidates:** Localises likely bugs.
- **Repository indexing:** Builds a code index.
- **Lifecycle hooks:** Rules check tool calls.
- **Shared memory:** Across agents.

## Good for

- Keep context across sessions
- Find code by behaviour
- Narrow down a bug
- Share team rules

## Install

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

```sh
claude mcp add --transport http ml-memory https://api.slashml.ai/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": {
    "ml-memory": {
      "type": "http",
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

```text
https://api.slashml.ai/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": {
    "ml-memory": {
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "type": "http",
      "url": "https://api.slashml.ai/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://api.slashml.ai/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 ml-memory --url https://api.slashml.ai/mcp
```

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

```toml
[mcp_servers.ml-memory]
url = "https://api.slashml.ai/mcp"
```

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "httpUrl": "https://api.slashml.ai/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http ml-memory https://api.slashml.ai/mcp

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "serverUrl": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "url": "https://api.slashml.ai/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": {
    "ml-memory": {
      "type": "streamableHttp",
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ml-memory": {
      "url": "https://api.slashml.ai/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": {
    "ml-memory": {
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "url": "https://api.slashml.ai/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://api.slashml.ai/mcp
```

Enter a Name (for example "SlashML (/ ml) Persistent Agent Memory & Code Localization"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

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

```json
{
  "mcpServers": {
    "ml-memory": {
      "type": "http",
      "url": "https://api.slashml.ai/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 1 of 7 tools changes data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `add_memory` (name suggests: changes)
- `search_memories` (name suggests: reads)
- `get_memories` (name suggests: reads)
- `forget_memory`
- `index_repository`
- `search_code_by_behavior` (name suggests: reads)
- `find_bug_candidates` (name suggests: reads)

## FAQ

### What licence?

Apache-2.0.

### Are benchmarks independent?

They are the vendor's own figures.

### What do hooks do?

Apply standing rules.

### How do I add SlashML (/ ml) Persistent Agent Memory & Code Localization to Claude Code?

Run this command in your terminal: claude mcp add --transport http ml-memory https://api.slashml.ai/mcp

### What are the best alternatives to SlashML (/ ml) Persistent Agent Memory & Code Localization?

The closest alternatives to SlashML (/ ml) Persistent Agent Memory & Code Localization are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README and the project's website.
- Status: checked automatically by AIPoweredBot on 24 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/slashml-ml-persistent-agent-memory-and-code-localization
