Claude Code Buddy MCP Server

MeMesh — Local memory for Claude Code and MCP coding agents. One SQLite file, zero cloud required.

Remote serverstreamable-httpPython

What is the Claude Code Buddy MCP server?

MeMesh — Local memory for Claude Code and MCP coding agents. One SQLite file, zero cloud required. The claude code buddy mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 9 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • remember — Store knowledge with observations, relations, and tags
  • recall — FTS5 + sqlite-vec search with multi-factor scoring (relevance, recency, frequency, confidence, recall impact) — no LLM in the hot path
  • forget — Soft-archive (never deletes) or remove specific observations
  • consolidate — LLM-powered compression of verbose memories
  • export — Share memories as JSON between projects or team members
  • import — Import memories with merge strategies (skip / overwrite / append)
  • learn — Record structured lessons from mistakes (error, root cause, fix, prevention)
  • user_patterns — Analyze your work patterns — schedule, tools, strengths, learning areas
  • verify_agent_work — Persist a verification report for background-agent work; reality-checks claimed file changes against git diff

Configuration

You will need 5 environment variables: MEMESH_AUTO_CAPTURE, MEMESH_DB_PATH, ANTHROPIC_API_KEY, OPENAI_API_KEY, OLLAMA_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

When to reach for it

Plenty of knowledge and memory servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Claude Code Buddy's toolset — remember, recall, forget and 6 more — is a fair guide to whether it matches your workflow. It is maintained by pcircle-ai; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Claude Code Buddy.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the claude code buddy mcp server does with a few real requests.

Available tools

ToolWhat it does
rememberStore knowledge with observations, relations, and tags
recallFTS5 + sqlite-vec search with multi-factor scoring (relevance, recency, frequency, confidence, recall impact) — no LLM in the hot path
forgetSoft-archive (never deletes) or remove specific observations
consolidateLLM-powered compression of verbose memories
exportShare memories as JSON between projects or team members
importImport memories with merge strategies (skip / overwrite / append)
learnRecord structured lessons from mistakes (error, root cause, fix, prevention)
user_patternsAnalyze your work patterns — schedule, tools, strengths, learning areas
verify_agent_workPersist a verification report for background-agent work; reality-checks claimed file changes against git diff

How to install the Claude Code Buddy MCP server

{
  "mcpServers": {
    "claude-code-buddy": {
      "command": "npx",
      "args": ["-y", "@pcircle/memesh"],
      "env": {
        "MEMESH_AUTO_CAPTURE": "your-value",
        "MEMESH_DB_PATH": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "OPENAI_API_KEY": "your-value",
        "OLLAMA_HOST": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
MEMESH_AUTO_CAPTUREConfiguration value read at startup.Optional
MEMESH_DB_PATHFilesystem location the server is allowed to use.Optional
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Claude Code Buddy to remember.
  • Use Claude Code Buddy to recall.
  • Use Claude Code Buddy to forget.

Frequently asked questions

It connects Claude Code Buddy to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (remember, recall, forget, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Claude Code Buddy directly.