claude-code

claude-code is a skill for Claude Code, Codex from udjin-labs/mnemostack. It costs 0 tokens per session (612 once invoked), scanned A, original, Apache-2.0.

A setup guide for connecting Mnemostack to Claude Desktop and Claude Code through MCP, a standard way for an AI tool to access external services. It covers installing Mnemostack, configuring a memory provider, and checking that the connection works.

In plain words
What is it for?
Use it to configure Mnemostack as an MCP server, select a supported memory provider, optionally connect a graph database, and verify the available tools.
Why use it?
It explains how to make Mnemostack's memory tools available inside Claude. It also helps avoid configuration errors by requiring a health check and a restart before verification.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/udjin-labs/mnemostack/claude-code
Any agent
npx skills add udjin-labs/mnemostack --skill claude-code
Clone the repo
git clone --depth 1 https://github.com/udjin-labs/mnemostack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/udjin-labs/mnemostack/claude-code.svg)](https://agentmods.dev/skills/udjin-labs/mnemostack/claude-code)
Your own site
<a href="https://agentmods.dev/skills/udjin-labs/mnemostack/claude-code"><img src="https://agentmods.dev/badge/skills/udjin-labs/mnemostack/claude-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00612
Opus 5 $0.00000 $0.00306
Sonnet 5 $0.00000 $0.00122
Haiku 4.5 $0.00000 $0.00061

Measured 4d ago against content hash ede32b744e73, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/claude-code/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Desktop / Claude Code

Wire mnemostack into Claude Desktop (and by extension Claude Code, which reads the same MCP config) as an MCP server.

Install

  1. Make sure the binary and a working backend are ready:

    pip install 'mnemostack[mcp]'
    mnemostack health --provider gemini
    
  2. Locate the Claude Desktop MCP config:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux (unofficial/Claude Code): ~/.config/claude/claude_desktop_config.json
  3. Merge this entry into the mcpServers block (create the file if needed):

    {
      "mcpServers": {
        "mnemostack": {
          "command": "mnemostack",
          "args": [
            "mcp-serve",
            "--provider", "gemini",
            "--collection", "my-memory"
          ],
          "env": {
            "GEMINI_API_KEY": "your-key-here"
          }
        }
      }
    }
    

    Swap --provider gemini for ollama or openai if that's what health validated. For graph tools, add --memgraph-uri bolt://localhost:7687.

  4. Restart Claude Desktop (fully quit, not just close the window).

Verify

In a new chat, ask Claude:

List the MCP tools you have available from mnemostack.

You should see health, search, answer, and feedback (plus graph_query and graph_add_triple if a Memgraph URI was passed). Then:

Use mnemostack to search for "VPN failover" with tier 1.

The reply should cite sources and not leak any snippets (tier 1 = list only).

Uninstall

Remove the mnemostack entry from mcpServers in the config file and restart Claude Desktop. No other state lives on the host side — the vector store and the memgraph are owned by the mnemostack process, not by the integration.

Troubleshooting

  • Tools don't appear: check Claude Desktop's MCP logs (~/Library/Logs/Claude/mcp*.log on macOS). A common cause is mnemostack not being on PATH for the GUI app — use an absolute path in command.
  • fastmcp not installed: the [mcp] extra is missing: pip install 'mnemostack[mcp]'.
  • health says DOWN: the MCP server will start but every tool call will fail until Qdrant/embedding provider is reachable.

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 74 lines · 0 tokens per session scan A ede32b744e73

Subscribe to this mod's changes

claude-code is a skill published in the GitHub repository udjin-labs/mnemostack (7 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 612 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.