Atlas / MCP servers / remete618 / Widemem

WidememBLOCK

mcp/remete618/widemem

Local-first memory layer for LLM apps and agents. Runs offline on Ollama, sentence-transformers and FAISS; OpenAI and Anthropic optional. Importance scoring, contradiction resolution, confidence-aware retrieval.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
4 3r · 0w · 1d
Transport
stdio
License
Apache-2.0
Stars
49
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Goldfish memory? ¬_¬ Fixed.

[](https://pypi.org/project/widemem-ai/) [](https://pypi.org/project/widemem-ai/) [](https://github.com/remete618/widemem-ai/actions/workflows/ci.yml) [](https://scorecard.dev/viewer/?uri=github.com/remete618/widemem-ai) [](https://github.com/remete618/widemem-ai/blob/main/LICENSE) [](https://python.org)

widemem is a local-first memory layer for LLM apps. It extracts facts from conversations, ranks them by importance and recency, resolves contradictions in one LLM call, and tells your agent how confident it is before it answers. By default everything runs on your machine: Ollama for the LLM, sentence-transformers for embeddings, FAISS and SQLite for storage. Cloud providers (OpenAI, Anthropic) are optional add-ons.

Install

pip install "widemem-ai[local]"   # FAISS, Ollama client, sentence-transformers
ollama pull llama3.1:8b           # the default local model, 4.9 GB

You need Ollama installed and running. The first run also downloads the all-MiniLM-L6-v2 embedding model (about 90 MB) from Hugging Face; after that, set HF_HUB_OFFLINE=1 and widemem runs fully offline. Python 3.10+.

What local costs: [local] pulls PyTorch through sentence-transformers (about 550 MB on macOS; more on Linux with CUDA wheels), and with the defaults each add() makes up to two LLM calls, extract then resolve. On an Apple M4 wit

Read from source at commit fb547668d7a9OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add widemem-ai --env OPENAI_API_KEY=${OPENAI_API_KEY} --env WIDEMEM_API_KEY=${WIDEMEM_API_KEY} -- uvx widemem-ai
claude-desktop
{
  "mcpServers": {
    "widemem-ai": {
      "command": "uvx",
      "args": [
        "widemem-ai"
      ],
      "env": {
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "WIDEMEM_API_KEY": "${WIDEMEM_API_KEY}"
      }
    }
  }
}
03

Exposed tools (4)

3 read · 0 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
widemem_countreadCount stored memories, optionally filtered by user.
widemem_deletedestructiveDelete a memory by its ID.
widemem_exportreadExport all stored memories as a JSON array, optionally filtered by user.
widemem_healthreadHealth check: verify the widemem server is running and responsive.
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
found

Findings (10)

HIGHPrompt injection · prompt.override · CWE-94, CWE-1427
CHANGELOG.md:113
- **Prompt-injection sanitizer** — `widemem.security.sanitize()` strips well-known prompt-injection patterns (instruction overrides, system tags, role markers, jailbreak vocabulary, memory-targeted de
Why it matters. asks the agent to drop prior instructions or safety
Fix. remove the instruction
HIGHPrompt injection · prompt.override · CWE-94, CWE-1427
docs/guide.md:355
- Common jailbreak vocabulary (`DAN mode`, `developer mode`)
Why it matters. asks the agent to drop prior instructions or safety
Fix. remove the instruction
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/test_pgvector_store.py:71
url="postgresql://test:test@localhost/widemem_test",
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
widemem_delete
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
tests/_sdk_transport.py:26
return importlib.import_module(root)
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
tests/test_judge_separation.py:25
return importlib.import_module(name)
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
tests/test_provider_contract.py:225
module = importlib.import_module(f"{package.__name__}.{info.name}")
LOWPrompt injection · prompt.override · CWE-94, CWE-1427
docs/guide.md:352
- Direct instruction overrides (`ignore previous instructions`, `disregard the rules`, `forget what I said`)
Why it matters. asks the agent to drop prior instructions or safety
Fix. remove the instruction
LOWPrompt injection · prompt.override · CWE-94, CWE-1427
docs/guide.md:363
cats = detect_injection("Please ignore all previous instructions.")
Why it matters. asks the agent to drop prior instructions or safety
Fix. remove the instruction
INFOInventory / provenance · inv.oversize · CWE-1104
docs/widemem-fish.png
docs/widemem-fish.png
Why it matters. 1465359 bytes not read

Gates applied: instruction_override, no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha fb547668d7a9full audit observations/trust-audit/mcp-server/remete618__widemem.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08fb547668d7a9BLOCKD69first audit
06

Questions

What is the Widemem MCP server?

Local-first memory layer for LLM apps and agents. Runs offline on Ollama, sentence-transformers and FAISS; OpenAI and Anthropic optional. Importance scoring, contradiction resolution, confidence-aware retrieval.

What tools does Widemem expose?

4 in total: 3 read-only, 0 that write, and 1 that can delete or overwrite (widemem_delete). Every one is listed on this page with its risk.

Is Widemem safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Widemem need?

It reads OPENAI_API_KEY and WIDEMEM_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Widemem run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as widemem-ai.

How current is this page?

The grade is for one exact copy of the source (fb547668d7a9), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement