Skip to content

Security: haitham72/MeMCP

Security

SECURITY.md

Security policy

Local-first data handling

MeMCP is designed so vault content never leaves the machine in the default configuration:

  • Storage is local: Markdown files, a local Postgres (localhost:5433 by default), a local BM25 index and a local ChromaDB index under <vault>/.memcp.
  • Embeddings and re-ranking use local models (see configuration). The only network access is the one-time model download from Hugging Face — and the TF-IDF fallback works fully offline.
  • The tool-call log (<data>/.tool_calls.jsonl) records only {ts, tool, ok, ms, n_args} — never argument values, which carry query text and vault content.

Data leaves the machine only if the user configures it to: a remote MEMCP_PG_DSN / PGHOST, a remote embedding provider, or a pasted snippet in a bug report. There is no telemetry, no hosted component, and no account.

Secrets

  • The Postgres password has no default and lives in .env, which is gitignored. Never commit .env, and never paste a DSN with a password into issues or chat logs.
  • HF_TOKEN, if set for authenticated model downloads, is read from the environment only.

Sensitive vault content

Entity cards containing "sensitive" are flagged sensitive, and cards with "do not attempt to resolve" are flagged do-not-resolve. These flags travel with the entity into the database so tools can treat them with care — but they are labels, not access control: anyone with vault or database access can read everything. Keep the vault directory and the Postgres port bound to localhost unless you know what you are doing.

Reporting a vulnerability

Do not open a public issue for a security bug. Use the repository's private vulnerability reporting (GitHub Security Advisories) or contact the maintainer through the channel listed on the repo page. Include:

  1. What is affected (module, tool name, or file).
  2. Steps to reproduce with the sample vault only — never attach a real vault.
  3. What you expected to happen instead.

Supported versions

Only the latest tagged release (v0.1.0 and later) receives security fixes. The main branch is development HEAD.

There aren't any published security advisories