mnemexa

mcp

Community mnemexa
Updated

MCP server adapter for Mnemexa — the Intelligent Memory OS for AI. Exposes memory store, recall, and health tools over STDIO.

The intelligence layer for AI that never forgets.

     

Dashboard  •  Website  •  Docs  •  npm

The Problem

Every time you start a new conversation with your AI:

  • It forgets who you are
  • It forgets your project context
  • It forgets decisions you already made
  • It asks the same questions again
  • Your team's agents can't share knowledge

Your AI has amnesia. Mnemexa gives it a brain.

What This Is

Mnemexa is the Intelligent Memory OS for AI. This package is the MCP adapter — it connects any MCP-compatible IDE or agent runtime to Mnemexa's cloud memory engine via four tool calls your AI uses automatically.

Once installed, your AI agent:

  • Remembers preferences, decisions, and project context across every conversation
  • Recalls relevant facts before answering — without being told to look
  • Shares memory with other agents on the same workspace in real time
  • Self-optimizes — importance scoring, deduplication, and temporal decay happen automatically in the cloud

No prompt engineering. No manual context pasting. Your AI just gets smarter the more you use it.

Install

npx @mnemexa/mcp

The installer detects your AI tools and configures everything — API key storage, MCP server registration, and memory behaviour instructions injected directly into your IDE's rules file.

You need a Mnemexa API key. Get one free at app.mnemexa.com — no credit card required to start.

Silent install — CI, scripts, or AI-assisted setup
npx @mnemexa/mcp --install YOUR_API_KEY

Saves the key, configures all detected AI tools, and exits. Suitable for automated provisioning or letting your AI install it on your behalf.

Try It in 10 Seconds

Once installed, open your AI and try this:

> What is your status?
> Remember that this client prefers LinkedIn over Instagram.
> What do we know about this client?

That's it. Your AI now has persistent, self-optimizing memory.

Architecture

This package is a thin stdio adapter — roughly 1,200 lines of TypeScript with no business logic. All intelligence (scoring, deduplication, decay) runs in Mnemexa's cloud. The adapter's only jobs are: resolve the API key, translate MCP tool calls into REST requests, and return formatted results.

Tools

Your AI gets these capabilities out of the box:

Tool What it does
brain.remember Save important information — auto-scored for importance, deduplicated, categorized
brain.recall Semantic search over your memory store — returns ranked, scored results
brain.health Memory quality report — health score, total count, stale signals
brain.status Live connection check — reports the workspace name, current status, plan, and API key prefix

Multi-Agent Memory

Give your entire AI team a shared brain.

Same API key = same workspace = shared intelligence.

# Agent 1 — your machine
npx @mnemexa/mcp --install mnx_workspace_key

# Agent 2 — teammate's machine
npx @mnemexa/mcp --install mnx_workspace_key

# Agent 3 — CI / automation
npx @mnemexa/mcp --install mnx_workspace_key

One agent learns a client prefers morning meetings. Every other agent on the workspace knows it immediately. No Slack messages. No copy-pasting context. No documentation you'll forget to update.

How the Memory Engine Works

The intelligence is in Mnemexa's cloud, not this adapter. When a memory is stored, it passes through a multi-stage pipeline:

Input text
  → PII detection (passwords, API keys, card numbers filtered out)
  → Noise filtering (greetings, small talk discarded)
  → Semantic deduplication (near-duplicates merged, not doubled)
  → Importance scoring 1–10 (LLM-assessed business value)
  → Temporal classification (deadline vs permanent fact)
  → Auto-categorization (domain tags assigned)
  → pgvector storage with HNSW index

When a memory is retrieved, it's ranked by a four-factor hybrid score:

Final score = (semantic similarity × 0.55)
            + (recency                × 0.20)
            + (business importance    × 0.15)
            + (access frequency       × 0.10)
            × temporal decay multiplier

Expired time-bound memories drop to 5% relevance automatically. High-importance persistent memories never decay. Your agents always surface what's current and relevant — not whatever happens to be semantically closest.

Your AI doesn't just store text. It builds understanding.

Why Mnemexa?

Feature Naive Vector Store LangChain / Custom RAG Mnemexa
Persistent across sessions Yes Yes Yes
Importance-weighted retrieval Yes
Temporal decay Yes
LLM deduplication Yes
Shared team / swarm memory Yes
PII filtering Yes
Self-optimizing health Yes
Auto-categorization Yes
One-line MCP install Yes

Mnemexa isn't a key-value store. It's an intelligence layer that learns what matters, forgets what doesn't, and gets smarter over time.

Use Cases

Personal AI Memory

"Remember that I prefer TypeScript and always use Tailwind."

Next conversation, your AI already knows.

Project Context

"We decided PostgreSQL over MongoDB for billing."

Weeks later, your AI recalls the decision and why.

Client Work

"This client prefers formal communication, timezone EST."

Every agent remembers this for every future interaction.

Agent Onboarding

Spin up a new agent with the workspace key — it instantly knows everything the team has learned.

Setup by Tool

Claude Code

Claude Code reads MCP configuration from ~/.claude.json and picks up memory instructions from ~/.claude/CLAUDE.md. The installer handles both automatically.

Automatic (recommended):

npx @mnemexa/mcp

Manual:

claude mcp add mnemexa npx @mnemexa/mcp -- --api-key mnx_your_key_here

Or add directly to ~/.claude.json:

{
  "mcpServers": {
    "mnemexa": {
      "command": "npx",
      "args": ["-y", "@mnemexa/mcp"],
      "env": {
        "MNEMEXA_API_KEY": "mnx_your_key_here"
      }
    }
  }
}

Claude Desktop

Automatic (recommended):

npx @mnemexa/mcp

Manual — add to your Claude Desktop config file:

OS Config path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mnemexa": {
      "command": "npx",
      "args": ["-y", "@mnemexa/mcp"],
      "env": {
        "MNEMEXA_API_KEY": "mnx_your_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Automatic (recommended):

npx @mnemexa/mcp

Manual — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project root (project-scoped):

{
  "mcpServers": {
    "mnemexa": {
      "command": "npx",
      "args": ["-y", "@mnemexa/mcp"],
      "env": {
        "MNEMEXA_API_KEY": "mnx_your_key_here"
      }
    }
  }
}

The installer also writes memory-use rules to ~/.cursor/rules/mnemexa.mdc so Cursor's agent uses memory proactively across all projects.

Windsurf

Automatic (recommended):

npx @mnemexa/mcp

Manual — add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "mnemexa": {
      "command": "npx",
      "args": ["-y", "@mnemexa/mcp"],
      "env": {
        "MNEMEXA_API_KEY": "mnx_your_key_here"
      }
    }
  }
}

VS Code

Manual — add to ~/.vscode/mcp.json:

{
  "servers": {
    "mnemexa": {
      "command": "npx",
      "args": ["-y", "@mnemexa/mcp"],
      "env": {
        "MNEMEXA_API_KEY": "mnx_your_key_here"
      }
    }
  }
}

OpenClaw

OpenClaw is an open-source autonomous agent framework that runs on your machine and operates via Telegram, Discord, WhatsApp, or Slack — a programmable digital worker that executes tasks autonomously across your apps and workflows.

Why Mnemexa + OpenClaw:

OpenClaw's core design is multi-agent. Developers build swarms where one agent plans, others execute specialized tasks, and results are combined. But OpenClaw's built-in memory is local and per-machine. The moment you run a second agent on a different machine or channel, those memories are siloed.

Mnemexa replaces that with shared workspace memory. Every agent in your OpenClaw swarm reads from and writes to the same memory pool — regardless of which machine, channel, or LLM provider they run on. One agent learns something. Every other agent knows it immediately.

OpenClaw does not inherit MCP servers from your IDE configs. Even after npx @mnemexa/mcp --install writes ~/.cursor/mcp.json, ~/.claude/settings.json, etc., OpenClaw agents will still report No MCP server named "mnemexa". OpenClaw reads only its own ~/.openclaw/openclaw.json — you must register mnemexa there explicitly. A successful mcporter call 'mnemexa.brain.status()' proves the MCP adapter works on the machine; it does not prove OpenClaw can see it.

Setup — add to ~/.openclaw/openclaw.json:

{
  "mcp": {
    "servers": {
      "mnemexa": {
        "command": "npx",
        "args": ["-y", "@mnemexa/mcp"],
        "env": {
          "MNEMEXA_API_KEY": "mnx_your_key_here"
        }
      }
    }
  }
}

Then restart your gateway:

openclaw gateway restart

For multi-agent swarms — use the same workspace key across every agent instance. One key. Shared memory. Every agent in the swarm stays in sync automatically.

Running per-agent MCP routing in OpenClaw? Add the mnemexa server to each agent's mcpServers override. Agents without an override inherit the global server list.

Verify against OpenClaw's runtime — not just mcporter:

openclaw mcp list                  # mnemexa must appear
openclaw mcp show mnemexa          # confirms config in ~/.openclaw/openclaw.json

Then trigger a real tool call through an OpenClaw agent — e.g. ask the agent "What is your Mnemexa status?" and confirm it invokes brain.status and returns a successful response. If mcporter works but openclaw mcp list doesn't show mnemexa, the OpenClaw config is missing — re-check Step 1 above and run openclaw gateway restart.

The One Thing Worth Adding to Your Agent Instructions

The installer injects memory-use instructions automatically for most tools. But the single most impactful thing you can do is add one line to your agent's system prompt or rules file:

Use Mnemexa as your persistent memory — store important decisions, preferences, and context as you learn them, and retrieve relevant memory at the start of every conversation. Everything else is handled automatically.

That's it. Your agent now has fully intelligent, self-managing memory.

What Gets Installed

The installer automatically configures everything:

Step What happens
1 Saves your API key to ~/.mnemexa/config.json
2 Adds Mnemexa MCP server to your AI tool's config
3 Injects memory instructions so your AI uses memory proactively

Auto-detected AI tools:

         

Any MCP-compatible host (including custom agent runtimes) works with manual configuration.

Security

API keys Stored locally in ~/.mnemexa/config.json — never logged, transmitted in URLs, or included in error output
Transport All API calls use HTTPS only — enforced at startup. HTTP overrides are rejected
Isolation The adapter never connects to any database directly — only api.mnemexa.com REST endpoints
Error handling Internal errors and stack traces are never forwarded to the AI or shown in tool output
Retries Only on transient server-side failures (502/503/504), never on 4xx responses

Environment Variables

Variable Default Description
MNEMEXA_API_KEY Workspace API key. Auto-loaded from ~/.mnemexa/config.json if the CLI installer was used.
MNEMEXA_BASE_URL https://api.mnemexa.com API base URL override. HTTPS required.

Troubleshooting

"Not connected" after install

Restart your AI tool after running the installer. MCP servers are loaded at startup.

"Invalid API key" on every call

Check that MNEMEXA_API_KEY is set in your MCP config's env block, or that ~/.mnemexa/config.json contains your key. Regenerate your key at app.mnemexa.com if needed.

Tools not appearing in my IDE

Verify the MCP server block is under the correct key for your tool: mcpServers for Claude and Cursor, servers for VS Code, mcp.servers for OpenClaw.

Memory not persisting between conversations

Confirm all agents are using the same workspace API key. Each workspace is isolated — a personal key and a team key are different memory pools.

OpenClaw agents not sharing memory

Confirm all agents in ~/.openclaw/openclaw.json use the same MNEMEXA_API_KEY. Run openclaw gateway restart after any config change.

Requirements

Built With

     

Stop teaching your AI the same things twice.

Dashboard  •  Website  •  Docs  •  npm

Built by Mnemexa — The Intelligent Memory OS for AI

MCP Server · Populars

MCP Server · New

    moorcheh-ai

    Memanto MCP Server

    Memory that AI Agents Love!

    Community moorcheh-ai
    bgauryy

    Octocode: Research Driven Development for AI

    MCP server for semantic code research and context generation on real-time using LLM patterns | Search naturally across public & private repos based on your permissions | Transform any accessible codebase/s into AI-optimized knowledge on simple and complex flows | Find real implementations and live docs from anywhere

    Community bgauryy
    openaccountants

    OpenAccountants

    Open-source tax skills for AI — 371 skills across 134 countries. Upload to any LLM or connect via MCP. Quality-tiered Q1–Q5.

    Community openaccountants
    kapillamba4

    code-memory

    MCP server with local vector search for your codebase. Smart indexing, semantic search, Git history — all offline.

    Community kapillamba4
    MarcellM01

    TinySearch

    Shrink the web for your local LLMs!

    Community MarcellM01