Skip to content

Claude Code can't connect to agentmemory's mcp server anymore #908

Description

@Yoshimit

┌ agentmemory status

◆ Connected — v0.9.27 at http://localhost:3111

◇ agentmemory ───────────────────────────────────────────────────────────────────╮
│ │
│ Health: ✓ healthy │
│ Sessions: 82 │
│ Observations: 3084 │
│ Memories: 32 │
│ Graph: 0 nodes, 0 edges │
│ Circuit: open │
│ Heap: 44 MB │
│ Uptime: 931s │
│ Viewer: http://localhost:3113
│ │
│ Token savings: ~244.820 tokens saved (99% reduction) │
│ Full context: ~246.720 tokens │
│ Injected: ~1.900 tokens │
│ │
│ Provider: ✓ llm │
│ Embeddings: ✓ embeddings │
│ Flags: │
│ ✓ GRAPH_EXTRACTION_ENABLED Knowledge graph extraction │
│ ✓ CONSOLIDATION_ENABLED Memory consolidation │
│ ✓ AGENTMEMORY_AUTO_COMPRESS LLM-powered observation compression │
│ ✓ AGENTMEMORY_INJECT_CONTEXT In-conversation context injection │
│ │
│ Followup rate: 0/0 (0%) within 30s — directional, may overcount on refinement │
│ │
├─────────────────────────────────────────────────────────────────────────────────╯

Claude code shows to "/plugins":

Needs attention

❯ agentmemory MCP · ✘ failed

  User
agentmemory Plugin · agentmemory · ✔ enabled

Trying to reconnect the mcp gives me:
⎿ Failed to reconnect to plugin:agentmemory:agentmemory: -32000

The viewer is available on http://localhost:3113/#dashboard

agentmemory connect claude-code:
┌ agentmemory connect

◇ Wiring Claude Code…

│ → Using MCP. Hooks are also available — see docs/claude-code.md.

● Backup: /home/myuser/.agentmemory/backups/claude-code-2026-06-11T13-23-58-782Z.json

◆ Claude Code → wired into /home/myuser/.claude.json

● Restart Claude Code (or run /mcp inside a session) to pick up the new server.

◇ summary ──────────────────────────────────────╮
│ │
│ ✓ claude-code → /home/myuser/.claude.json │
│ │
├────────────────────────────────────────────────╯

● Next: install agentmemory's 8 skills into the same agent(s) so they know when to call the tools:
│ npx skills add rohitg00/agentmemory -y

└ Restart any wired agent (or open a new session) to pick up agentmemory.

agentmemory doctor:
┌ agentmemory doctor

◇ server: 2/6 passing ──────────────────────────────────────────────────────────────────────╮
│ │
│ ✓ Server reachable │
│ ✗ Health status │
│ Status: unknown │
│ ✗ LLM provider │
│ set ANTHROPIC_API_KEY (or GEMINI/OPENROUTER/MINIMAX) in ~/.agentmemory/.env │
│ ✗ Embedding provider │
│ Running BM25-only. Add OPENAI_API_KEY / VOYAGE_API_KEY / COHERE_API_KEY / OLLAMA_HOST │
│ ✓ Claude Code plugin hooks registered │
│ ✗ Knowledge graph populated │
│ Graph is empty. Run a session with GRAPH_EXTRACTION_ENABLED=true. │
│ │
├────────────────────────────────────────────────────────────────────────────────────────────╯

◆ env-missing ✓

◆ no-llm-provider-key ✓ (found: GEMINI_API_KEY)

▲ engine-version-mismatch ✗ iii on PATH but --version failed

● why: Re-run the iii installer for the pinned version and restart the engine.

◇ [engine-version-mismatch] iii binary on PATH doesn't match the version agentmemory pins to.
│ F Fix

◇ Installing iii-engine v0.11.2 (pinned) ✓

● Using iii at: /home/t314534/.agentmemory/bin/iii (v0.11.2)

◇ iii-engine process started

◆ Engine ready

▲ viewer-unreachable ✗

● why: Stop the engine, restart it, and retry the viewer probe.

◆ [viewer-unreachable] Viewer port not reachable.
│ ● F Fix (Stop the engine, restart it, and retry the viewer probe.)
│ ○ S Skip
│ ○ ? More info
│ ○ Q Quit doctor

Using the fix from doctor seems not fixing anything.

Can't make claude code to talk to agentmemory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions