Skip to main content
Glama
SlashML MCP Server

SlashML MCP Server

Official
by slashml-ai

@slashml/mcp -- SlashML MCP Server

Official Model Context Protocol (MCP) server for SlashML (/ ml). Connects coding and chat agents to the SlashML Cloud API (https://api.slashml.ai).

Quick Install

Claude Code (1-liner)

claude mcp add --scope user ml-memory -- env SLASHML_API_KEY=sml_live_xxx npx -y @slashml/mcp@latest

Cursor / Claude Desktop / Windsurf (mcp.json)

{
  "mcpServers": {
    "ml-memory": {
      "command": "npx",
      "args": ["-y", "@slashml/mcp@latest"],
      "env": {
        "SLASHML_API_KEY": "sml_live_xxx"
      }
    }
  }
}

Code Mode

Expose a single execute_memory_code meta-tool:

claude mcp add --scope user ml-memory-code -- env SLASHML_API_KEY=sml_live_xxx npx -y @slashml/mcp@latest --code-mode

Ambient Lifecycle Hooks

Register UserPromptSubmit, PreToolUse, PostToolUse, and Stop hooks in ~/.claude/settings.json:

npx -y @slashml/mcp@latest --install-hooks --api-key "$SLASHML_API_KEY"

Related MCP server: LightRAG Code Brain MCP

Available Tools (Standard Mode)

  1. search_memories -- Search stored conversational memories, user preferences, and facts.

  2. get_memories -- List conversational memories for a user/agent scope.

  3. forget_memory -- Delete or subject-purge (purge: true) a specific memory by ID.

  4. redact_memory -- Redact sensitive spans statelessly (text) or in-place (memory_id) under a policy preset (tier1_secrets, soc2_coding, gdpr, hipaa, enterprise_strict).

  5. dismiss_intervention -- Record that an active pre-tool intervention was a false positive or superseded for the current target.

  6. index_repository -- Index a git repository for code search and bug localization.

  7. search_code_by_behavior -- Search indexed repository symbols by behavioral or architectural description.

  8. find_bug_candidates -- Rank likely bug locations across a repository from symptoms and stack traces.

  9. add_memory (opt-in via --enable-write-tool; ambient lifecycle hooks assimilate memories automatically by default) -- Explicitly store a persistent conversational memory, user preference, or operational rule.

Per-Agent Access & Redaction Environment Variables

  • SLASHML_AGENT_ID (or --agent-id): Attaches X-SlashML-Agent-Id to enforce per-agent read_write / read_only access modes and redaction clearances configured in https://app.slashml.ai (Redaction & Access).

  • SLASHML_REDACT_POLICY (or --redact-policy): Default redaction policy preset or comma-separated buckets.

  • SLASHML_REDACT_SCOPE (or --redact-scope): memorize_and_recall or recall_only.

License

Apache-2.0. Connects to the SlashML Cloud Service (https://api.slashml.ai).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Connects AI coding agents to a shared knowledge base by allowing them to search, retrieve, and contribute coding traces. It acts as a protocol adapter for the CommonTrace API, facilitating collaborative knowledge sharing through natural language queries and tool-based interactions.
      6
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding tools to query a local index of documents, code, and crawled web pages using hybrid keyword and semantic search with re-ranking, plus knowledge graph, memory, and agent workflow tools. It also lets clients trigger source syncing and ingestion so context stays current.
      Business Source 1.1