Skip to main content
Glama
ComponentPilot MCP

ComponentPilot MCP

ComponentPilot MCP

ComponentPilot is a local STDIO MCP server for finding public UI patterns and source-linked implementations from The Component Gallery. It retrieves cited evidence live; it does not ship a component database or crawl implementation sites during ordinary research.

Install and run

Node.js 22+ and a TinyFish API key are required for live use. Copy .env.example only for local reference; set the key in your MCP client or shell and never commit it.

npm install
export TINYFISH_API_KEY='your_tinyfish_api_key'
npm run build
npm test

Start the compiled server with npm start. MCP messages use standard input/output, so this is not an HTTP server.

Related MCP server: Tessera

How to use it

Ask in ordinary frontend language. Start with find_components, then use the returned catalog component name in follow-up calls. For example: “I need products side by side with previous/next arrows.”

Tools

Research tools: find_components, get_component_examples, find_design_systems, get_accessibility_guidance, compare_implementations, and health_check. They return bounded, cited source metadata and never follow third-party implementation links.

Agent tools: inspect_component_demo validates a source-linked target and queues a TinyFish inspection, returning a run_id immediately. get_component_demo_run retrieves that same run without queuing, retrying, or billing a second run. Run context is held only in memory, so query it from the same ComponentPilot process.

The Agent accepts a source-linked implementation name, URL, or both when they identify the same source record; it never accepts an arbitrary browsing target. Without a selector it returns a structured list of available names. Set selection_mode to "auto" only when the user explicitly asks ComponentPilot to select the first source-backed implementation. Its checks are limited, reversible, and return structured errors or uncertainty rather than invented observations. For Tabs, Tab-key focus alone is not treated as arrow-key, activation, tab-panel, or accessibility evidence.

Evidence and pagination

get_component_examples uses offset pagination. Start with offset: 0, then keep using next_offset while has_more is true. total is the complete normalized source result count, not the current page length.

Every source-derived record carries source_url, retrieved_at, and verification: "source_retrieved". Empty results such as no_match, no_results, and not_published are successful responses. Redirects, stale evidence, source-layout changes, blocks, and unsafe links fail explicitly. A citation proves retrieval, not accessibility, quality, safety, or permission to republish linked content.

Claude Desktop (macOS)

Build first, then add this to Claude Desktop’s MCP configuration. Replace the generic path and key locally; do not put a real key in a repository or chat.

{
  "mcpServers": {
    "componentpilot": {
      "command": "node",
      "args": ["/absolute/path/to/componentpilot-mcp/dist/index.js"],
      "env": { "TINYFISH_API_KEY": "your_tinyfish_api_key" }
    }
  }
}

Restart Claude Desktop after editing the configuration or rebuilding.

Examples

Natural-language discovery prompt:

I need users to browse several products side by side with previous/next arrows. Find verified Component Gallery patterns first, explain the matches with citations, then show implementation examples for the best match.

First examples page:

{ "component": "Carousel", "max_results": 5, "offset": 0 }

Queue an Agent inspection after get_component_examples has returned the implementation:

{
  "component": "Carousel",
  "implementation_name": "Example UI",
  "requested_checks": ["keyboard_navigation"]
}

Check the same run later; this never starts another inspection:

{ "run_id": "the_run_id_returned_by_inspect_component_demo" }

Test

npm test
npm run build

npm run health is an optional live Fetch check and requires TINYFISH_API_KEY. health_check reports server health separately from source reachability and cached-data freshness. It performs one bounded Fetch probe at startup and then at most once per five-minute probe interval (COMPONENTPILOT_HEALTH_PROBE_INTERVAL_MS); concurrent health calls share that probe and never queue a TinyFish Agent run. A failed probe retains, and clearly timestamps, the last successful source data. Do not bypass an access block; update parser code and tests if the Gallery layout changes.

Example Prompts

You don't need to know component names or MCP tool names.

  • "I'm building a dashboard and want users to switch between Profile, Settings, and Activity without leaving the page. What component should I use?"

  • "Compare Ariakit, Headless UI, and Chakra UI tabs for a React project. Which would you recommend?"

  • "Use ComponentPilot to try the live Ariakit Tabs demo. Click between sections and tell me what actually changes."

For more examples, see EXAMPLE_PROMPTS.md.

Available Tools

8 tools
compare_implementationsC

Compare distinct implementation references linked by a component page without crawling third-party sites.

Inputs: component (required), source_id, max_results, implementation_names.

find_componentsA

Dynamically discover verified component types from a configured public catalogue. Use this first to translate a user's natural-language frontend intent (for example, horizontally browsable products) into returned catalog component name(s); do not guess a component name. Returns source citations.

Inputs: query (required), source_id, max_results.

find_design_systemsC

Search design-system names with query and, optionally, filter by a source-published technology tag. Existing query-only technology calls are supported as a documented fallback.

Inputs: query, source_id, technology, max_results.

get_accessibility_guidanceC

Return bounded, cited guidance published in an Accessibility section or relevant published markup/keyboard sections. Returns status not_published when none is available.

Inputs: component (required), source_id.

get_component_demo_runA

Retrieve status or the completed result for an Agent inspection already queued by this ComponentPilot process. This never queues, retries, or bills a second Agent execution. The result-validation context is in memory and unavailable after a server restart.

Inputs: run_id (required).

get_component_examplesB

Return one offset-based page of implementations linked by the source component page. Pagination metadata describes the full normalized source-derived result set. Does not invent or crawl external implementation URLs.

Inputs: component (required), offset, source_id, max_results.

health_checkB

Report MCP-server health, bounded source reachability, cached-data freshness, and the latest successful source refresh. A lightweight TinyFish Fetch probe runs only when due; it never queues a paid Agent run.

Inputs: source_id.

inspect_component_demoA

Queue a bounded Agent inspection and immediately return its TinyFish run_id; it does not wait for browser execution. Select a source-linked implementation using implementation_name, implementation_url, or both when they identify the same record. If neither selector is supplied, the response lists source-backed implementation names; set selection_mode to auto only when the user explicitly asks ComponentPilot to choose the first source-backed implementation. Arbitrary URLs, credentials, logins, paywall bypasses, and destructive actions are prohibited. Use get_component_demo_run with the returned run_id for status and the final validated result; it retrieves the existing run and never queues, retries, or bills another Agent execution.

Inputs: component (required), requested_checks (required), source_id, selection_mode, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: discovery (find_components, find_design_systems), content retrieval (get_component_examples, get_accessibility_guidance), comparison, demo inspection, and health. The closest overlap is between get_component_examples, compare_implementations, and inspect_component_demo, since all deal with source-linked implementations, but descriptions and the explicit queue/poll pairing of inspect_component_demo and get_component_demo_run keep boundaries reasonably clear.

    Naming Consistency4/5

    The set overwhelmingly follows a consistent verb_noun snake_case pattern (find_components, get_component_examples, compare_implementations, inspect_component_demo, get_component_demo_run). The only minor deviation is health_check, a conventional noun-first name, but it is immediately readable and does not disrupt the pattern.

    Tool Count5/5

    Eight tools is well-scoped for a component discovery and demo-inspection server. Each tool maps to a distinct workflow step: discovery, examples, design systems, accessibility, comparison, demo queueing, demo retrieval, and health.

    Completeness4/5

    The surface covers the main lifecycle from component discovery through examples, comparison, and bounded demo inspection, plus design-system search and accessibility guidance. Minor gaps remain: there is no direct tool for retrieving a single component's metadata/details, and design-system search lacks a corresponding detail/retrieval operation.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to search and retrieve real production websites, their design systems, and reference components over MCP, so they can study design patterns before writing UI.
      1,101
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to search, inspect, and retrieve real UI components from existing component libraries, with ranked results, score explanations, licence and provenance details, and safe installation plans. It also surfaces similar components and higher-level UI patterns so agents can reuse existing interface code instead of generating it from scratch.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables coding agents to ground UI work in real product screens by searching a catalogue for concrete screen references and design materials such as fonts, icons, and animated icons, then pulling the colors, typography, components, and provenance behind a chosen web screen. It also serves bundled skill documents, command playbooks, and connection diagnostics so an agent can settle a screen's states and acceptance criteria before building and verify the rendered result afterward.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables coding agents to find real UI screen references and design materials, retrieve recorded design-system details for selected screens, and diagnose catalog access while building product UI.
      MIT