Server data from the Official MCP Registry
Local visual UI cache for AI agents using perceptual hashing + CLIP to cut vision token use.
Local visual UI cache for AI agents using perceptual hashing + CLIP to cut vision token use.
The MCP server implements visual memory caching with local-first architecture and includes reasonable access controls for sensitive file paths. However, several security concerns exist: the code uses broad exception handling that could mask vulnerabilities, lacks input validation on some parameters, contains a potential SQL injection vulnerability through the escapeSql function, and has incomplete/truncated handler code that prevents full analysis. The permissions are appropriate for a developer tool, but the implementation quality issues and potential injection vulnerabilities lower confidence in the security posture. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.
3 files analyzed Β· 13 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-putervision-vision-memory-mcp": {
"args": [
"-y",
"@putervision/vision-memory-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
An MCP (Model Context Protocol) server and CLI tool designed to cache visual UI states using perceptual hashing, local CLIP embeddings, and state transitions. It helps AI agents remember seen screens, reducing frontier model token usage and execution latency by up to 90%. Official Documentation & Demos: visionmemorymcp.com
npm install -g @putervision/vision-memory-mcp
Or install from source for development:
git clone https://github.com/putervision/vision-memory-mcp.git
cd vision-memory-mcp
npm install
npm run build
npm install -g .
Run the following command in your target project root:
vision-memory-mcp init
This scaffolds .vision-memory-mcp, generates a default .env template, and adds configuration properties to your .gitignore.
.cursor/mcp.json){
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"],
"env": {
"LANCEDB_PATH": ".vision-memory-mcp"
}
}
}
}
~/.config/Claude/claude_desktop_config.json){
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"],
"env": {
"LANCEDB_PATH": "/absolute/path/to/your/project/.vision-memory-mcp"
}
}
}
}
To allow AI agents to query the visual cache and manage brain images automatically without requesting permission prompts, configure the security grants:
~/.gemini/config/config.json)Add the following permission entries to "userSettings" -> "globalPermissionGrants" -> "allow":
"command(vision-memory-mcp)",
"read_file(.*\\.gemini/antigravity/brain/.*)",
"write_file(.*\\.gemini/antigravity/brain/.*)"
settings.json)Ensure you allow:
command(vision-memory-mcp).vision-memory-mcp/ workspace database.grounded_elements) with bounding boxes, ARIA roles, CSS selectors, and target handles (grounded_target) for deterministic UI clicks and typing.forget_state purges sensitive states on demand..vision-memory-mcp databases, aggregating visual memory queries across packages.vision-memory-mcp spec verify CLI and composite GitHub Action.@putervision/state-memory-mcp to cross-link UI workflow tasks with perceptual caching, providing first-class bidirectional renders_state graph edges, synergistic token metrics, and unified multi-modal trajectory exports for agent training. 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
ββββββββββββββββ¬ββββββββββββββββ
| Tool | Purpose | Key Inputs |
|---|---|---|
analyze_screenshot | Check visual cache / ingest new screen | screenshot (opt), file_path (opt), response_format ('compact' | 'full'), accessibility_tree (opt) |
recall_memory | Find past screens via query or image | query (opt), screenshot (opt), file_path (opt), response_format (opt) |
record_outcome | Log action success and build navigation path | from_state_id (req), to_state_id (req), action (req), success (req) |
get_navigation_paths | Find optimal BFS path between UI states | from_state_id (opt), to_description (opt) |
compare_states | Compare visual and key-level structural diffs | state_a_id (req), state_b_id (req), response_format (opt) |
get_session_context | Retrieve summary context briefing | include_recent (opt), include_frequent (opt), response_format (opt) |
save_visual_snapshot | Save checkpoint of visual memory states | name (req), description (opt) |
diff_visual_snapshots | Diff two checkpoints for visual drift | snapshot_a_name (req), snapshot_b_name (req) |
undo_last_visual_mutation | Revert the last state or edge mutation | type ('state' | 'transition' | 'any') |
create_visual_blocker | Generate structured visual blocker payload for state-memory-mcp | visual_state_id (req), description (req), project (opt) |
predict_next_action | Predict optimal next UI action and target coordinates from state | current_state_id (req), goal_description (opt), goal_state_id (opt) |
batch_analyze_screenshots | Process batch array of 1β20 screenshots or file paths | items (req array of screenshot/file_path objects), response_format (opt) |
set_visual_spec | Set a screenshot/mockup as a Visual Spec design baseline contract | name (req), screenshot (opt), file_path (opt) |
verify_visual_spec | Verify runtime screenshot against a Visual Spec baseline contract | spec_name (req), screenshot (opt), file_path (opt), tolerance (opt) |
get_visual_diff | Calculate perceptual dHash diff and layout region deltas | state_id_a (req), state_id_b (req) |
forget_state | Purge a specific state and vector embedding from storage | state_id (req) |
export_visual_trajectories | Export multimodal trajectories for local model fine-tuning | git_branch (opt), limit (opt), format ('json' | 'llava' | 'qwen2_vl') |
get_metrics | Query real-time cache hit ratios, token savings & latency stats | None |
export_snapshot | Export standalone .tar.gz snapshot archive JSON payload | name (req) |
restore_snapshot | Restore visual memory database from snapshot archive | archive_json (req) |
| Prompt | Description | Key Arguments |
|---|---|---|
analyze-ui-state | Analyze UI screen layout, input fields, interactive controls, and active alerts. | state_id (req) |
diagnose-visual-regression | Compare baseline vs current snapshot checkpoints to diagnose visual drift. | baseline_snapshot (req), current_snapshot (req) |
navigate-to-goal | Formulate step-by-step navigation path from current state to reach a goal. | current_state_id (req), goal_description (req) |
vision-memory-mcp run: Launches the MCP stdio server.vision-memory-mcp init: Bootstraps environment and IDE rules.vision-memory-mcp doctor [--json]: Health checks LanceDB writability, sharp bindings, Node runtime, Git repos, and .gitignore protection.vision-memory-mcp update: Checks the npm registry and updates @putervision/vision-memory-mcp globally to the latest version.vision-memory-mcp audit [--json]: Performs a deep workspace audit of Git repos, submodules, database locations, and state counts.vision-memory-mcp inspect: Prints an ASCII table of stored states.vision-memory-mcp metrics: Displays ROI metrics, token savings, and cached sizes.vision-memory-mcp view: Opens a local force-directed graph view of the memory in your browser.vision-memory-mcp spec <set|verify>: Baseline visual design contract registration and live visual regression verification.vision-memory-mcp snapshot <save|diff|list>: Manage visual checkpoints.vision-memory-mcp undo: Revert the last visual mutation.vision-memory-mcp optimize: Compacts LanceDB storage.vision-memory-mcp prune: Cleans up expired states.vision-memory-mcp backup --out <file>: Back up LanceDB to tarball.vision-memory-mcp restore <file>: Restore LanceDB from tarball.Set these environment variables in your .env file:
LANCEDB_PATH=.vision-memory-mcp # Storage path for LanceDB
LANCEDB_CACHE_SIZE=100 # Maximum hot items in LRU Cache
MAX_LANCEDB_SIZE_MB=1000 # Eviction threshold (MB)
STRICT_MODE=false # Refuse external L4 calls & enforce projectRoot paths
STRIP_EXIF=true # Strip EXIF metadata from stored screenshots
OFFLINE_MODE=false # Restrict CLIP loading to local files only
CLIP_MODEL_PATH= # Optional local path to pre-downloaded CLIP model
LIMIT_INPUT_PIXELS=16777216 # Sharp decompression bomb pixel limit
HASH_EXACT_THRESHOLD=5 # Hamming distance <= this = exact hit
HASH_SIMILAR_THRESHOLD=10 # Hamming distance <= this = similar hit
CLIP_MODEL=Xenova/clip-vit-base-patch32 # Embedding model name
EMBEDDING_DIMENSIONS=512 # CLIP embedding output dimension
VISION_MODEL_ENABLED=false # Enable L4 vision fallback
VISION_MODEL_ENDPOINT=http://localhost:1234/v1 # Vision model server URL
VISION_MODEL_NAME=gpt-4o # Vision model identifier
OPENAI_API_KEY=your-api-key-here # Required if using OpenAI endpoints for L4 fallback
LOG_LEVEL=info # log levels (debug, info, warn, error)
TTL_DEFAULT_MS=604800000 # Eviction TTL (default: 7 days)
100% of dataβincluding screenshots, perceptual hashes, vector embeddings, and transition graphsβremains stored locally on your machine in .vision-memory-mcp/. Zero telemetry, analytics, or external API calls are made unless you explicitly enable L4 LLM Vision fallback endpoints.
Run the initialization command in your repository root to create .vision-memory-mcp/, .gitignore, .env, and IDE rules:
vision-memory-mcp init --yes
Config Location: ~/.gemini/config/mcp_config.json
{
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"],
"env": {
"OPENAI_API_KEY": "sk-your-openai-key-optional"
}
}
}
}
Config Location: .cursor/mcp.json or Cursor Settings β Features β MCP
{
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"]
}
}
}
Config Location: .vscode/mcp.json or Global MCP Settings
{
"servers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"]
}
}
}
Config Location: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"]
}
}
}
Config Location: ~/.config/zed/settings.json
{
"context_servers": {
"vision-memory-mcp": {
"command": {
"path": "vision-memory-mcp",
"args": ["run"]
}
}
}
}
Config Location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"vision-memory-mcp": {
"command": "vision-memory-mcp",
"args": ["run"]
}
}
}
To ensure your AI agent automatically leverages vision-memory-mcp before sending raw screenshots to vision LLMs, add this rule to your project's .cursorrules, .windsurfrules, AGENTS.md, or system prompt:
# Visual Memory Rules
This project uses vision-memory-mcp to cache visual UI states and prevent redundant LLM vision calls.
## Mandatory Workflow
1. **Before visual checks**: Call `analyze_screenshot` with base64 screenshots.
2. **On Cache Hit (`is_known: true`)**: Do NOT query external vision models; reuse the cached `description`.
3. **On Cache Miss (`is_known: false`)**: Query your vision model, then call `analyze_screenshot` with the image and new description to seed the cache.
4. **Transition Tracking**: Call `record_outcome` after click/type/navigation steps.
Contributions are welcome! Please read our CONTRIBUTING.md guide for details on development setup, architecture, and submission guidelines.
Β© 2026 PuterVision LLC. Released under the MIT License.
Software & Data Loss Disclaimer: This software is provided "as is", without warranty of any kind, express or implied. Under no circumstances shall the authors, copyright holders, or PuterVision LLC be liable for any database corruption, data loss, filesystem modifications, or issues resulting from execution. Always back up your database files before performing destructive operations.
Sensitive Data & Privacy Notice: Screenshots are stored locally in
.vision-memory-mcp/unencrypted at the application level. Users are solely responsible for ensuring captured screens do not expose confidential credentials, API keys, passwords, PII, or regulated data (e.g., HIPAA, PCI-DSS).Third-Party API Fees Notice: PuterVision LLC and the software authors assume no liability for third-party API costs, token fees, billing overages, or rate limits incurred via optional L4 vision fallback endpoints configured by the user.
Performance & Cost Estimates Notice: Any token savings estimates (e.g. "up to 90%"), execution latency figures, or ROI calculations stated in this documentation are benchmark estimates based on typical UI automation workloads with repeated visual states. Actual token savings, execution speedups, and financial cost drops depend on workflow layout repetition, image resolution, model provider rates, and prompt structure. PuterVision LLC does not guarantee specific monetary savings or API throughput.
Trademark Notice: All product names, trademarks, and registered trademarks (such as Cursor, Claude, OpenAI, Playwright, Zed, Windsurf, Roo Code, LanceDB) mentioned herein belong to their respective owners and are used solely for identification purposes. Use of these names does not imply affiliation or endorsement.
Be the first to review this server!
by Modelcontextprotocol Β· Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.