mesh-memory

mesh-memory is a skill for Claude Code from skillmds/skillmd. It costs 44 tokens per session (1,773 once invoked), scanned A, original, MIT.

A self-hosted memory service for AI agents that saves worklogs, decisions, notes, and research in PostgreSQL with pgvector. It recalls saved information by meaning rather than exact words and can share it across agents or teammates.

In plain words
What is it for?
Use it to save project knowledge, recall past work, organize notes by project or role, and look up tagged decisions.
Why use it?
It lets agents remember useful context across sessions without requiring you to repeat earlier decisions or use the original wording.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the agents-mcp plugin — 34 skills shipped together

Good fit Use it to save project knowledge, recall past work, organize notes by project or role, and look up tagged decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skillmds/skillmd/mesh-memory
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.

Any agent
npx skills add skillmds/skillmd --skill mesh-memory
Clone the repo
git clone --depth 1 https://github.com/skillmds/skillmd

Made for: Claude Code.

Or install agents-mcp, the plugin that ships this one along with the rest of its 34 skills.

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 mesh-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/skillmds/skillmd/mesh-memory/github.svg)](https://agentmods.dev/skills/skillmds/skillmd/mesh-memory)
Your own site
<a href="https://agentmods.dev/skills/skillmds/skillmd/mesh-memory"><img src="https://agentmods.dev/badge/skills/skillmds/skillmd/mesh-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mesh-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/skillmds/skillmd/mesh-memory"><img src="https://agentmods.dev/badge/skills/skillmds/skillmd/mesh-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.01773
Opus 5.5 $0.00018 $0.00709
Sonnet 5.5 $0.00009 $0.00355
Haiku 4.5 $0.00004 $0.00177

Measured 1mo ago against content hash f89c1d908082, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mesh-memory scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Tool calls fail with connection errors.** The MCP server cannot reach `MESH_API_URL`. Verify the instance is up (`curl $MESH_API_URL/health` returns `{"status":"healthy"}`) and the env var is set in the MCP config.
plugins/agents-mcp/skills/mesh-memory/SKILL.md · 162 lines

How it starts

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

Mesh Memory

Mesh Memory is a self-hosted semantic memory service with a built-in MCP server. It stores documents (worklogs, decisions, notes, research) in PostgreSQL with pgvector and retrieves them by meaning, so a query like "what database did we pick?" surfaces a saved note that says "chose Redis for caching" even with zero keyword overlap. Embeddings are generated locally with multilingual-e5-base (768 dimensions); the core flow requires no external API keys.

Use this skill when an agent needs persistent memory across sessions: saving its own work, recalling prior decisions, or building a project knowledge base shared between multiple agents.

When to Use This Skill

  • Saving a session worklog, decision, or research note so a later session can find it.
  • Recalling past work by topic when you do not remember the exact words you used.
  • Sharing a long-lived knowledge base across multiple agents, terminals, or teammates.
  • Organizing context by role or project through workspaces (one workspace per role/project).
  • Looking up structured tags (e.g. all type:decision entries from one project).

Prerequisites

  • A running Mesh Memory instance reachable from the MCP server. Local Docker is the common path -- docker compose up -d in the upstream repo brings it up; see https://github.com/dklymentiev/mesh-memory for the full Quick Start.
  • The MCP server (mcp_server.py) registered with your client (Claude Code, Cursor, Claude Desktop, or any other MCP-aware agent).
  • MESH_API_URL pointing at the running instance (default: http://localhost:8000).

Setup

Register the MCP server in your client configuration:

{
  "mcpServers": {
    "mesh": {
      "command": "python3",
      "args": ["/path/to/mesh-memory/mcp_server.py"],
      "env": {
        "MESH_API_URL": "http://localhost:8000"
      }
    }
  }
}

When the server is reachable, the 13 tools listed below become available.

MCP Tools

Tool Purpose
mesh_focus Switch the active workspace (optionally prefetch recent docs).
mesh_add Save a document with optional tags. Auto-adds date:YYYY-MM-DD and source:.
mesh_update Update content, tags, or pinned status of an existing document.
mesh_delete Delete a document by GUID.
mesh_get Fetch a single document by GUID.
mesh_search Semantic search by query, optionally across multiple workspaces with weights.
mesh_bytag List documents that match one or more tags (AND logic).
mesh_recent List most recently created documents, optionally filtered by type: tag.
mesh_projects List per-project document counts (uses guid: tag as project marker).
mesh_tags List existing tags with counts; optional prefix filter.
mesh_versions Show the version chain of a document (similarity-linked revisions).
mesh_stats Memory statistics for the active workspace.
mesh_schema Show the tag schema (recognized prefixes and types).

Read the full file on GitHub · 162 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. 1mo ago First seen · 162 lines · 44 tokens per session scan A f89c1d908082

Subscribe to this mod's changes

mesh-memory is a skill published in the GitHub repository skillmds/skillmd (143 stars, last pushed 4d ago), licensed MIT. It adds 44 tokens to every session and 1,773 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

mesh-memory compared with skills from other repositories

mesh-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mesh-memoryskillmds/skillmdSkill1434d agoMITA44Claude Code
nlqdb-memorynlqdb/nlqdbSkill2todaynoneA70Claude Code
postgresdbericrisco/rsc-harnessSkill5293d agoMITA91Claude Code, Codex
neonericrisco/rsc-harnessSkill5293d agoMITA93Claude Code, Codex
forgetful-cli-setupScottRBK/forgetfulSkill338todayMITA84Claude Code
demo-datamendixlabs/mxcliSkill137todayApache-2.0A66Claude Code
diesel-guardayarotsky/diesel-guardSkill1224d agoMITA77Claude Code, Codex