Back to Discover

vision-memory-mcp

connector

putervision

Local visual UI cache for AI agents using perceptual hashing + CLIP to cut vision token use.

View on GitHub
0 starsSynced Aug 4, 2026

Install to Claude Code

/plugin marketplace add putervision/vision-memory-mcp

README

@putervision/vision-memory-mcp

npm version Website License

@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.17.0

1. Installation

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

2. Workspace Initialization

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

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):

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

Alternative Options & CLI Usage Examples

# Run stdio MCP server directly via binary (after global install)
vision-memory-mcp run

# Re-initialize across all registered workspace projects
vision-memory-mcp init-global

# Health check dependencies, sharp bindings, and git safety
vision-memory-mcp doctor

# Inspect stored visual states and metadata in terminal ASCII table
vision-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 snapshot
vision-memory-mcp snapshot save --name "v1.0-milestone"

# Open interactive force-directed visual graph viewer in browser
vision-memory-mcp view

๐ŸŒŸ Key Highlights

  • ๐Ÿ‘๏ธ Perceptual Visual Caching: Sub-5ms L1/L2 dHash zero-token fast-path layout recognition.
  • โšก 23 Core MCP Tools: Full visual state ingestion, semantic vector retrieval, element grounding, target action prediction, visual SDD, and snapshot checkpoints.
  • ๐Ÿ“‰ Up to 90% Token Savings: Caches UI states locally using dHash, local CLIP vector search, and accessibility trees to cut LLM vision costs.
  • ๐Ÿš€ 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.

๐Ÿš€ 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
๐Ÿš€ Features & ArchitectureKey features, 4-tier retrieval pipeline, element grounding, and Dual MCP Synergy.
๐Ÿ“˜ Formal API ReferenceComplete specifications, parameters, and schemas for all 23 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.

๐Ÿงช Testing

# Run full unit and integration test suite across all 37 test suites
npm run test

โš–๏ธ License & Disclaimers

Developed and maintained by PuterVision LLC. 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.

Rendered live from putervision/vision-memory-mcp's GitHub README โ€” not stored, always reflects the source repo.

1 Install Method

NameDescriptionCategorySource
npm packageInstall via npm (stdio transport)mcp-server@putervision/vision-memory-mcp

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet โ€” be the first to share an update.