Visual Memory MCP

io.github.putervision由 GitHub 账号 putervision 发布v1.4.2更新于 Oct 27, 2026

Local visual UI cache for AI agents using perceptual hashing, CLIP, and 3D spatial grounding.

发布方自己的服务:Memory.fit

概览

AI 生成的概览

面向 AI 编程助手的本地视觉记忆缓存,用感知哈希与 CLIP 向量存储界面截图,减少重复的视觉模型调用。

可以做什么
  • 分析截图,按感知哈希或语义向量检索已缓存的视觉状态,并获取会话上下文与精简切片
  • 将界面元素定位到 CSS 选择器与坐标,记录操作结果、规划导航路径并等待目标视觉状态
  • 把 WebM/MP4 录屏切分为关键帧时间线,比较状态与轨迹,生成证据包并导出微调数据集
  • 管理视觉规格基线做回归检查,保存与恢复快照,撤销状态写入并清除已存状态
适用场景
适合前端开发和 UI 测试场景:助手需要反复查看相同界面,或希望把截图与端到端测试录屏变成可检索的本地视觉历史。不适合纯后端无界面工作、持续高帧率视频,或内存很小的机器。
运行要求
以本地 stdio 进程运行,通过 npm 安装,需要 Node.js 18.18.0 或更高版本。使用前需在工作区执行初始化,生成数据库目录、.env 文件与 IDE 规则。完整本地 CLIP 模型约需 300 MB 内存,并会下载模型文件,除非以跳过模型加载的方式启动。
安装前请注意
它会把截图、无障碍树数据和视频关键帧保存在本地磁盘,导入敏感界面前应先确认其隐私与 PII 脱敏说明。初始化会向项目写入文件,包括 .gitignore 与 .env;相关工具可删除或回滚已存状态。可选的视觉模型兜底可能按配置把图像发送给外部服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Visual Memory MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@putervision/vision-memory-mcp

[npm version] [version] [npm downloads] [CI] [Node] [TypeScript] [Website] [License: MIT]

@putervision/vision-memory-mcp is a zero-infrastructure, local-first Model Context Protocol (MCP) server and CLI tool that provides AI coding assistants (such as Cursor, Claude Code, Gemini, or Copilot) with visual state caching using perceptual hashing, local CLIP embeddings, and transition graphs to eliminate repetitive vision LLM calls.

🌐 Official Documentation & Website: visionmemorymcp.com


⚡ Quick Start & Installation

Prerequisites: Node.js >= 18.18.0

1. Installation

bash
# Global installation via npmnpm install -g @putervision/vision-memory-mcp

2. Workspace Initialization

Run init in your project root to scaffold database directories, .gitignore, .env, and IDE rules:

bash
vision-memory-mcp init --yes

3. Basic MCP Client Setup

Add to your MCP client config (e.g. .cursor/mcp.json or .vscode/mcp.json):

json
{  "mcpServers": {    "vision-memory-mcp": {      "command": "vision-memory-mcp",      "args": ["run"]    }  }}

Alternative Options & CLI Usage Examples

bash
# Run stdio MCP server directly via binary (after global install)vision-memory-mcp run
# Start server skipping heavy CLIP model downloads (air-gapped / offline mode)vision-memory-mcp run --skip-model-load
# Re-initialize across all registered workspace projectsvision-memory-mcp init-global
# Health check dependencies, sharp bindings, and git safetyvision-memory-mcp doctor
# Run health diagnostics & aggregate metrics across all registered projectsvision-memory-mcp doctor-global
# Inspect stored visual states and metadata in terminal ASCII tablevision-memory-mcp inspect
# Register baseline design mockup contract (Visual SDD)vision-memory-mcp spec set --name "Dashboard" --file ./dashboard-spec.png
# Save visual memory checkpoint snapshotvision-memory-mcp snapshot save --name "v1.0-milestone"
# Ingest WebM / MP4 video recording into visual state memory timelinevision-memory-mcp video ingest ./playwright-test.webm --category playwright_test
# Open interactive force-directed visual graph viewer in browservision-memory-mcp view

🌟 Key Highlights

  • 👁️ Perceptual Visual Caching & Compact Slices: Sub-5ms L1/L2 dHash zero-token fast-path layout recognition and sub-1KB compact_slice export for Pentad System 1 StatePack assembly.
  • 🎬 WebM & MP4 Video Ingestion: Digest E2E test recordings & screen captures into searchable keyframe visual states & state transition graphs.
  • ⚡ 15 Core MCP Tools: High-coherence consolidated toolset covering perception, video memory, evidence packs, trajectory comparison, semantic retrieval, element grounding, visual SDD, snapshots, and unified context & metrics.
  • 🔗 Dual-MCP Synergy & Immutable Evidence Packs: Deeply bridges @putervision/state-memory-mcp task DAGs with visual state memory, generating cryptographically hashable evidence packs for compliance and audit trails.
  • 📉 Reduced Token Overhead: Caches UI states locally using dHash, local CLIP vector search, and accessibility trees to maximize vision token savings.
  • 🚀 Sub-5ms Fast-Path Latency: Eliminates repetitive vision LLM API calls and avoids visual hallucination loops.
  • 🎯 Element Grounding & Action Target Prediction: Maps screen elements to CSS selectors and coordinates for deterministic UI interaction.
  • 🎨 Visual Spec-Driven Development (Visual SDD): Register design mockups or screenshots as perceptual baseline contracts to verify visual regression.
  • 🛡️ 100% Local-First Privacy: Local LanceDB vector store, local CLIP model, zero cloud telemetry, and PII redaction guarantees.

🛠️ MCP Tool Suite

@putervision/vision-memory-mcp provides 15 production-grade consolidated MCP tools structured across 4 core visual perception & automation domains:

  • Perception & Semantic Search: analyze_screenshot (L1/L2 perceptual dHash & AX tree parsing, single/batch), recall_memory (text & image semantic vector search), get_session_context (aggregated cache hit metrics, recent states, and sub-1KB compact_slice export).
  • Element Grounding & Navigation: predict_next_action (deterministic CSS selectors & bounding coordinates), record_outcome (UI action transitions & visual blockers), get_navigation_paths (BFS shortest-path planner), wait_for_visual_state (polling for target UI state).
  • Video Trajectories & Evidence Packs: manage_video (WebM/MP4 keyframe ingestion, timeline search), compare_states (visual layout diffs & video trajectory comparison), create_evidence_pack (cryptographic audit proof linking video keyframes to state-memory DAGs), export_trajectories (multimodal fine-tuning datasets).
  • Snapshots & Visual SDD: manage_visual_spec (mockup baseline contracts & regression checks), manage_snapshot (checkpoints, export, restore), undo_visual_mutation (revert state ingestion), forget_state (privacy & PII purging).

👉 For complete parameter specifications, return schemas, and example payloads, see the Formal API Reference and Features & Architecture Guide.


🚀 Architecture At a Glance

                     Incoming Screen                            │                            ▼              ┌──────────────────────────────┐              │ L1: In-Memory Cache Lookup   │ ──(Hit)──▶ Return Cached Description & Grounded Elements              └──────────────┬───────────────┘                             │ (Miss)                             ▼              ┌──────────────────────────────┐              │ L2: Perceptual Hash Scan     │ ──(Hit)──▶ Return Cached Description & Grounded Elements              └──────────────┬───────────────┘                             │ (Miss)                             ▼              ┌──────────────────────────────┐              │ L3: Local CLIP Vector Search │ ──(Hit)──▶ Return Semantically Close              └──────────────┬───────────────┘                             │ (Miss)                             ▼              ┌──────────────────────────────┐              │ L4: Vision LLM Fallback      │ ──(Ingest)──▶ Save Redacted State to DB              └──────────────┬───────────────┘

📚 Documentation Directory

Explore dedicated guides and deep dives in the docs/ directory:

GuideDescription
🏗️ Architecture & Codebase DistillationHigh-signal architectural overview, 4-tier pipeline, module inventory, and design decisions.
🚀 Features & ArchitectureKey features, 4-tier retrieval pipeline, element grounding, and Dual MCP Synergy.
📘 Formal API ReferenceComplete specifications, parameters, and schemas for all 15 consolidated MCP tools.
🔌 Multi-IDE Integration GuideStep-by-step configs for Cursor, Claude Desktop, Antigravity, Windsurf, Zed, Roo Code & Agent Rules.
💻 CLI Commands ReferenceFull guide for all 16 CLI management, visual spec, and snapshot commands.
⚙️ Configuration GuideComplete .env environment variables, thresholds, and L4 vision fallback setup.
🔒 Storage Encryption & SecurityEncryption details, local storage privacy, and PII masking guarantees.
🤝 Contributing GuideDevelopment setup, codebase structure, and submission guidelines.
🛡️ Security PolicySecurity vulnerability reporting and privacy disclosures.
📜 ChangelogChronological record of release features, fixes, and patch updates.

⚠️ When Not to Use This Server

While vision-memory-mcp is designed for visual frontend state caching, UI testing, and multimodal workflows, it may not be appropriate for:

  • Headless / Pure Backend Development: Non-visual CLI tools, database scripts, or pure backend microservices with no UI rendering. (Use state-memory-mcp standalone instead).
  • High-Framerate Live Video Streaming: Continuous 60 fps live video ingest without discrete keyframe or test action boundaries.
  • Ultra Low-Memory Embedded Environments (<512 MB RAM): Running full local CLIP neural embeddings requires ~300 MB RAM (use --skip-model-load for lightweight dHash-only perception if memory is constrained).

🧪 Testing

bash
# Run full unit and integration test suite across all 72 test files (312 tests)npm run test

⚖️ License & Disclaimers

Developed and maintained by PuterVision. Released under the MIT License.

  • Local Storage Guarantee: Provided "as is" without warranty. Screenshots, perceptual hashes, vector embeddings, and transition graphs are stored locally unencrypted at the application level in .vision-memory-mcp/. Zero telemetry or analytics data is ever transmitted.
  • Trademarks & Non-Affiliation: Product names (Cursor, Claude Code, Gemini, Windsurf, VS Code, Sharp, LanceDB, ONNX, HuggingFace) are property of their respective owners and used solely for compatibility identification.

来源:README.md,提交 622c7fc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

7
  1. v1.4.2最新Oct 8, 2026
  2. v1.4.1Oct 3, 2026
  3. v1.4.0Oct 2, 2026
  4. v1.3.2Sep 30, 2026
  5. v1.3.1Sep 29, 2026
  6. v1.3.0Sep 26, 2026
  7. v1.2.1Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Memory 集成