SlashML (/ml) Persistent Agent Memory & Code Localization
Persistent agent memory, behavior-based code search and bug localization
- Pricing
- Freemium
- Platforms
- CLI, API, vscode
- Runs
- Locally
- Version
- 1.0.14
- Listing updated
- 3 days ago
About SlashML (/ml) Persistent Agent Memory & Code Localization
SlashML (/ml) Persistent Agent Memory & Code Localization is a freemium MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
Two jobs share one server. The memory half stores architectural decisions, user preferences and standing project rules across sessions through add_memory, search_memories, get_memories and forget_memory. The code half indexes a repository and then finds functions, classes and modules by what they do rather than what they are called, and ranks the files most likely behind a symptom or stack trace.
In Claude Code it also installs lifecycle hooks: new standing instructions are picked up on each prompt, and tool calls are checked against the active rules before and after they run and when the agent stops. A Python and a TypeScript SDK use the same API key (sml_live_...), and a user id keeps personal or team memory separate.
The vendor's site reports sub-millisecond recall and benchmark scores such as 94.5% on LoCoMo, and compares itself with Mem0, Honcho, Hindsight, Zep and Supermemory; these figures are the vendor's own. The plugin is Apache-2.0, a free tier is mentioned, and the site names Cloud and private VPC options.
Install
Run in a terminal
claude mcp add ml-memory --env SLASHML_API_KEY='<SLASHML_API_KEY>' -- npx -y @slashml/mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"ml-memory": {
"command": "npx",
"args": [
"-y",
"@slashml/mcp"
],
"env": {
"SLASHML_API_KEY": "<SLASHML_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ml-memory": {
"command": "npx",
"args": [
"-y",
"@slashml/mcp"
],
"env": {
"SLASHML_API_KEY": "<SLASHML_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"ml-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@slashml/mcp"
],
"env": {
"SLASHML_API_KEY": "<SLASHML_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ml-memory": {
"command": "npx",
"args": [
"-y",
"@slashml/mcp"
],
"env": {
"SLASHML_API_KEY": "<SLASHML_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ml-memory": {
"command": "npx",
"args": [
"-y",
"@slashml/mcp"
],
"env": {
"SLASHML_API_KEY": "<SLASHML_API_KEY>"
}
}
}
}Configuration
SLASHML_API_KEYYour SlashML API key (sml_live_...) from https://app.slashml.aiRequiredSLASHML_USER_IDOptional default user or workspace namespaceSLASHML_AGENT_IDOptional caller agent ID for per-agent read/write access and redaction policiesSLASHML_REDACT_POLICYOptional default redaction preset or comma-separated sensitive bucketsSLASHML_REDACT_SCOPEOptional redaction scope: memorize_and_recall or recall_onlySLASHML_API_KEYYour SlashML API key (sml_live_...) from https://app.slashml.aiRequired
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
- search_memories
- Searches stored memories.
- add_memory
- Stores a new memory.
- get_memories
- Retrieves stored memories.
- forget_memory
- Removes a stored memory.
- search_code_by_behavior
- Locates code by runtime or architectural behavior.
- index_repository
- Indexes a repository for search.
- find_bug_candidates
- Ranks functions and files likely behind a symptom or stack trace.
What it does
- Persistent memory
- Stores and retrieves decisions, preferences and project rules across sessions.
- Behavioral code search
- Finds code by runtime or architectural behavior.
- Bug localization
- Ranks files and functions likely responsible for a symptom.
- Rule enforcement hooks
- Checks tool calls against active rules in Claude Code.
- Namespaces
- A user or workspace id keeps memories separate.
- SDKs included
- Python and TypeScript clients share the same API.
Good for
- Keep project conventions across coding sessions
- Remember a team's architectural decisions
- Locate the code behind a vague behavior description
- Narrow down likely culprits from a stack trace
- Stop an agent from breaking a standing rule
Pricing
Freemium
Free tier available; Cloud and private VPC options
Prices change. Check slashml.ai before you buy.
SlashML (/ml) Persistent Agent Memory & Code Localization FAQ
Do I need an API key?
Yes, a SlashML key starting `sml_live_`, created at app.slashml.ai.
Which tools does it expose?
Memory tools, repository indexing and behavioral search, and bug candidate ranking.
What licence is the plugin?
Apache-2.0.
Are the benchmark numbers independent?
They are published by the vendor on its own site.
Is SlashML (/ml) Persistent Agent Memory & Code Localization free?
SlashML (/ml) Persistent Agent Memory & Code Localization has a free plan, with paid plans for more usage or features.
How do I add SlashML (/ml) Persistent Agent Memory & Code Localization to Claude Code?
Run this command in your terminal: claude mcp add ml-memory --env SLASHML_API_KEY='<SLASHML_API_KEY>' -- npx -y @slashml/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 REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to SlashML (/ml) Persistent Agent Memory & Code Localization

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools