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 $0.00009 $0.00355
Haiku 4.5 $0.00004 $0.00177

Measured 4d ago against content hash f89c1d908082, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-23, 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 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.

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. 4d 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 (1 stars, last pushed yesterday), 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

Other skills, from other repositories

nlqdb-memory

Give this agent persistent, queryable memory over the nlqdb MCP server. Use whenever the agent needs to remember something across sessions, recall what it stored, or aggregate over its memory (GROUP BY / JOIN / counts / trends) — backed by a real Postgres it queries in plain English, not a vector store.

nlqdb/nlqdb · 70 tokens

forgetful-cli-setup

Set up the Forgetful CLI and connect from a terminal — install, local or remote mode, auth, and verification. Use when connecting a human or headless agent via shell, wiring CI with token auth, or operating a local server (serve, database selection, feature flags, re-embedding). Also covers the machine contract…

ScottRBK/forgetful · 84 tokens

demo-data

Seed a Mendix app's PostgreSQL database directly, bypassing the runtime — Mendix's internal ID system, association storage, and bulk import from an external database. Use when populating test or demo data, when data is needed before the UI exists, or for imports too large for the runtime.

mendixlabs/mxcli · 66 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens

neon

Use when you have picked Neon (serverless Postgres) and need to connect correctly from a serverless or edge runtime, wire database branching into dev, preview and CI, or stop being burned by scale-to-zero cold starts and pooler limits — including choosing HTTP versus WebSocket connections and pooled versus direct…

ericrisco/rsc-harness · 93 tokens

diesel-guard

Lints Diesel and SQLx Postgres migrations for unsafe schema changes that lock tables or cause downtime, and authors custom Rhai checks. Use when reviewing, writing, or fixing SQL migrations, when diesel-guard reports a violation, when configuring diesel-guard.toml, or when the user mentions migration safety, table…

ayarotsky/diesel-guard · 77 tokens