Reftrixmcp MCP Server

Web design analysis with 26 MCP tools: layout, motion, quality, semantic search via pgvector

Local serverstdio

What is the Reftrixmcp MCP server?

Connect Reftrixmcp to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Web design analysis with 26 MCP tools: layout, motion, quality, semantic search via pgvector. The reftrixmcp mcp server is what makes that connection.

What the server does

ReftrixMCPは、Webデザインパターンをベクトル検索(pgvector HNSW)と RAGで検索可能なナレッジベースに集約し、MCPツール経由でClaude等の AIエージェントと統合するプラットフォームです。

  • Layout analysis — -- auto-detect sections (hero, feature, CTA, etc.), extract grid/typography, and generate React/Vue/HTML code
  • Motion detection — -- discover CSS/JS animations with frame capture (15 px/frame video mode), CLS detection via Pixelmatch
  • Quality evaluation — -- score designs on three axes (originality, craftsmanship, contextuality) with anti-AI-cliche detection
  • Semantic search — -- find layout, motion, narrative, background, and responsive patterns via pgvector HNSW hybrid search
  • Preference profiling — -- learn user design preferences through feedback sessions and personalize search results via reranking (GDPR-compliant)
  • Part-level analysis — -- extract 16 UI part types (button, icon, heading, etc.) with DINOv2 visual embeddings for visual similarity search

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • layout.ingest — - fetch a web page, take a screenshot, and extract section patterns
  • layout.search — - semantic search over layout sections by natural-language query
  • motion.detect — - detect CSS/JS animations with video-mode frame capture
  • quality.evaluate — - score design quality on originality, craftsmanship, and contextuality
  • page.analyze — - unified analysis: layout + motion + quality + responsive in one call (async via BullMQ), with opt-in Phase 7.5: accessibility audit, performance
  • responsive.search — - search responsive analysis results by viewport and breakpoint
  • preference.hear — - interactive preference hearing sessions with sample presentation and feedback collection
  • preference.get — - retrieve preference profiles (with GDPR data portability support)
  • preference.reset — - reset or permanently delete preference profiles (GDPR Right to Erasure)
  • part.search — - semantic search over UI parts with visual (DINOv2) or text embeddings
  • part.inspect — - get detailed part info including computed styles, bounding box, and accessibility
  • part.compare — - compare 2-5 parts side by side on styles, layout, and interaction

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: DATABASE_URL, REDIS_URL, OLLAMA_BASE_URL, OLLAMA_HOST, ENABLE_SECTION_SCREENSHOT_FALLBACK, DINOV2_MODEL_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Node.js 20+, pnpm 10+, Docker & Docker Compose, Ollama

Where it fits

Among the cloud and infrastructure options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Reftrixmcp's toolset — layout.ingest, layout.search, motion.detect and 11 more — is a fair guide to whether it matches your workflow. It is maintained by TKMD; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Reftrixmcp.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
layout.ingest- fetch a web page, take a screenshot, and extract section patterns
layout.search- semantic search over layout sections by natural-language query
motion.detect- detect CSS/JS animations with video-mode frame capture
quality.evaluate- score design quality on originality, craftsmanship, and contextuality
page.analyze- unified analysis: layout + motion + quality + responsive in one call (async via BullMQ), with opt-in Phase 7.5: accessibility audit, performance evaluation, and auto snapshot
responsive.search- search responsive analysis results by viewport and breakpoint
preference.hear- interactive preference hearing sessions with sample presentation and feedback collection
preference.get- retrieve preference profiles (with GDPR data portability support)
preference.reset- reset or permanently delete preference profiles (GDPR Right to Erasure)
part.search- semantic search over UI parts with visual (DINOv2) or text embeddings
part.inspect- get detailed part info including computed styles, bounding box, and accessibility
part.compare- compare 2-5 parts side by side on styles, layout, and interaction
PrerequisitesNode.js 20+, pnpm 10+, Docker & Docker Compose, [Ollama](https://ollama.com/)
SetupThe Setup tool exposed by this server.

How to install the Reftrixmcp MCP server

{
  "mcpServers": {
    "reftrix": {
      "command": "node",
      "args": ["/absolute/path/to/ReftrixMCP/apps/mcp-server/dist/index.js"],
      "env": {
        "NODE_ENV": "development",
        "DATABASE_URL": "postgresql://reftrix:change_me@localhost:26432/reftrix?schema=public",
        "REDIS_URL": "redis://localhost:27379",
        "OLLAMA_BASE_URL": "http://localhost:11434",
        "OLLAMA_HOST": "http://localhost:11434",
        "ENABLE_SECTION_SCREENSHOT_FALLBACK": "true"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

Node.js 20+, pnpm 10+, Docker & Docker Compose, Ollama

VariableDescriptionRequired
DATABASE_URLEndpoint or connection string the server talks to.Yes
REDIS_URLEndpoint or connection string the server talks to.Yes
OLLAMA_BASE_URLEndpoint or connection string the server talks to.Yes
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional
ENABLE_SECTION_SCREENSHOT_FALLBACKConfiguration value read at startup.Optional
DINOV2_MODEL_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Reftrixmcp to layout.ingest.
  • Use Reftrixmcp to layout.search.
  • Use Reftrixmcp to motion.detect.

Frequently asked questions

It connects Reftrixmcp to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (layout.ingest, layout.search, motion.detect, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Reftrixmcp directly.