CoreViz

MCP Server

Use CoreViz as visual memory for Claude Code and other AI agents via the Model Context Protocol

MCP Server

The @coreviz/cli package includes a built-in MCP (Model Context Protocol) server that exposes your entire CoreViz visual library as tools for Claude Code and other MCP-compatible AI agents. This turns CoreViz into visual memory — your AI agent can browse, search, tag, and upload photos directly from chat.

What is MCP?

The Model Context Protocol is an open standard for giving AI assistants access to external tools and data sources. By running the CoreViz MCP server, Claude Code gains the ability to understand and work with your visual library without you having to copy-paste image URLs or describe your photos manually.

Setup

1. Log in to CoreViz

npx @coreviz/cli login

This stores your session token locally — the MCP server reads it automatically. No credentials in config files.

2. Connect to your MCP client

Claude Code — Install the plugin (recommended):

claude plugin marketplace add coreviz/cli
claude plugin install coreviz@coreviz

Or configure MCP manually in ~/.claude/settings.json:

{
  "mcpServers": {
    "coreviz": {
      "command": "npx",
      "args": ["coreviz-mcp"]
    }
  }
}

Claude Desktop — Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "coreviz": {
      "command": "npx",
      "args": ["coreviz-mcp"]
    }
  }
}

Other MCP clients — Add to your project's .mcp.json:

{
  "mcpServers": {
    "coreviz": {
      "command": "npx",
      "args": ["coreviz-mcp"]
    }
  }
}

3. Verify the connection

In Claude Code, run /mcp and confirm that the coreviz server appears with all its tools listed.

Available Tools

ToolDescription
list_collectionsList all collections in your workspace
create_collectionCreate a new collection
browse_mediaNavigate folders and list media items in a collection
search_mediaSemantic search across all your media using natural language
get_mediaGet full details, tags, and detected objects for a specific item
get_tagsAggregate all tags across a collection
find_similarFind visually similar images using an object ID
analyze_imageRun AI vision analysis on an image URL
create_folderCreate a folder inside a collection
move_itemMove a media item or folder
rename_itemRename a media item or folder
add_tagAdd a tag to a media item
remove_tagRemove a tag from a media item
upload_mediaUpload a local photo or video file to a collection

Usage Examples

Once connected, you can interact with your visual library through natural language in Claude Code:

Search my library for photos of the product launch event
Upload all JPGs from ~/Downloads/shoot-2026 to my "Campaign 2026" collection
Tag all photos in the "Portraits" collection with category=headshot where a person is visible
Find images similar to the face in object ID abc123 from media item xyz456

Authentication Options

Run npx @coreviz/cli login once. The token is stored in your local config and used automatically.

Option 2 — Environment variable

Pass an API key via env when you don't want to use the device login flow:

{
  "mcpServers": {
    "coreviz": {
      "command": "npx",
      "args": ["coreviz-mcp"],
      "env": {
        "COREVIZ_API_KEY": "your_api_key_here"
      }
    }
  }
}

Local Development Override

When developing against a local CoreViz instance, override the base URL:

{
  "mcpServers": {
    "coreviz": {
      "command": "node",
      "args": ["/path/to/@coreviz/cli/bin/mcp.js"],
      "env": {
        "COREVIZ_API_URL": "http://localhost:3000"
      }
    }
  }
}

Next Steps

  • Library SDK: Use the same functionality programmatically in your own applications
  • Authentication: Learn more about authentication options