Skip to main content
Glama
fidgetcoding

Refero MCP

Official
by fidgetcoding

Refero MCP

Durchsuche styles.refero.design in einfachem Englisch und füge eine DESIGN.md zu jedem Projekt hinzu.

npm version License: MIT Node MCP Compatible

Follow on X LinkedIn YouTube Instagram


Schnelle Navigation

Link

Abschnitt

Was es tut

Zeit

Was das ist

Übersicht

Der Katalog, die Lücke, die Zusammenfassung

~1 Min

Schnellinstallation

Einrichtung

Eine Zeile in Claude Code

~1 Min

Nutzung

Interaktion

Einfache englische Prompts

~2 Min

Tools

Referenz

Die sechs Tools, jeweils eine Zeile

~1 Min

Konfiguration

Einrichtung

Umgebungsvariablen + JSON-Konfig

~1 Min

Funktionsweise

Referenz

Cache, Embeddings, DESIGN.md-Generierung

~1 Min

Fehlerbehebung

Referenz

Die wahrscheinlich ersten drei Probleme

~1 Min

Lizenz + Autor

Meta

MIT


Related MCP server: Design System MCP Server

Was das ist

Refero Styles ist ein Beta-Katalog mit etwa 200 kuratierten Websites, bei denen jemand die mühsame Arbeit übernommen hat, Farben, Typografie, Abstände sowie Do's und Don'ts pro Stil herauszuarbeiten. Jeder Eintrag enthält einen designSystem-Block, der im Grunde eine fertige DESIGN.md ist.

Dieses MCP bindet diesen Katalog ein, sodass Claude Code ihn in natürlicher Sprache durchsuchen und eine generierte DESIGN.md direkt in jedes Projekt einfügen kann, das Sie gerade aufsetzen. Kein Kopieren und Einfügen von JSON aus Browser-Tabs, keine manuell erstellten Tabellen.

Es ist für jeden gedacht, der Claude Code verwendet, um eine neue App, ein Deck oder ein Kundenprojekt zu starten und das Design-Vokabular festlegen möchte, bevor die erste Komponente gerendert wird.


Schnellinstallation

Eine Zeile:

claude mcp add refero -- npx -y fidgetcoding-refero-mcp

Starten Sie Claude Code neu und beschreiben Sie den gewünschten Look.

Wenn Sie eine Vibe-Suche wünschen (semantisches Ranking basierend auf der poetischen northStar-Zusammenfassung jedes Stils), geben Sie einen OpenAI-Key an:

claude mcp add refero --env OPENAI_API_KEY=sk-... -- npx -y fidgetcoding-refero-mcp

Ohne diesen greift die Suche auf Keyword-Scoring zurück. Funktioniert gut, ist nur weniger magisch.

Für Benutzer von claude_desktop_config.json:

{
  "mcpServers": {
    "refero": {
      "command": "npx",
      "args": ["-y", "fidgetcoding-refero-mcp"],
      "env": {
        "OPENAI_API_KEY": "sk-...",
        "REFERO_MCP_VAULT_DIR": "/absolute/path/to/your/vault"
      }
    }
  }
}

Nutzung

[!IMPORTANT] Sie sprechen. Claude führt aus. Keine Befehle, keine Syntax, kein JSON.

Jedes Tool hier ist mit einfachen englischen Prompts verknüpft. Sie müssen sich keine Tool-Namen merken oder Payloads erstellen – Claude wählt das Tool aus und füllt die Parameter aus.

Ein paar Prompts, die gut funktionieren:

"Find me a dark editorial style with a serif and a warm accent."
"Pull the full breakdown for Linear."
"What's similar to Vercel in the Refero catalog?"
"Render Cursor's DESIGN.md — don't save it yet, just show me."
"Save Cursor's DESIGN.md into my PARZVL project."
"Show me only dark-mode brutalist styles, top five."
"Refresh the Refero catalog before we start the design pass."

Weitere Rezepte finden Sie in docs/USAGE.md.


Tools

Tool

Was es tut

refero_search

Vibe-Suche in natürlicher Sprache durch den Katalog. Embeddings, falls OPENAI_API_KEY gesetzt ist, sonst BM25-lite-Fallback.

refero_get

Ruft das vollständige Design-System für einen Stil ab. Akzeptiert eine UUID, einen Hostnamen (z. B. cursor.com) oder einen Seitennamen (z. B. "Cursor").

refero_similar

Referos eigenes Ranking für "ähnliche Stile" zu einem gegebenen Stil. Kostenlose Empfehlungen aus der Quelle.

refero_list

Durchsuchen Sie den lokalen Katalog-Spiegel mit optionalen Themen-/Tag-Filtern. Stabil sortiert.

refero_design_md

Rendert einen Stil als agentenfreundliche DESIGN.md (Frontmatter, North Star, Farbtabelle, Dos/Donts). Schreibt optional auf die Festplatte.

refero_refresh

Erzwingt ein vollständiges Neuladen des Katalogs und überschreibt den lokalen Spiegel. Überspringt das 24-Stunden-TTL.


Konfiguration

Alles ist optional. Die Standardwerte sind so gewählt, dass das MCP einfach läuft.

Variable

Erforderlich

Standard

Was es tut

OPENAI_API_KEY

Nein

nicht gesetzt

Ermöglicht Vibe-Suche via text-embedding-3-small. Ohne diesen greift die Suche auf Keyword-Scoring zurück.

REFERO_API_BASE

Nein

https://styles.refero.design

Überschreiben, falls Refero die API verschiebt oder Sie auf ein Fixture zeigen.

REFERO_CACHE_DIR

Nein

~/.refero-cache

Wo der lokale Katalog-Spiegel, Embeddings und der Detail-Cache liegen.

REFERO_CACHE_TTL_MS

Nein

86400000 (24h)

Wie lange eine zwischengespeicherte Seite als aktuell gilt.

REFERO_MCP_VAULT_DIR

Nein (erforderlich für Schreibzugriffe)

nicht gesetzt

Absoluter Pfad zum Vault-Root, in den refero_design_md schreibt. Wenn nicht gesetzt, gibt das Tool das Markdown zurück, schreibt aber nicht auf die Festplatte.

Eine .env.example zum Kopieren befindet sich im Repo-Root.

Es gibt keinen Standardwert für REFERO_MCP_VAULT_DIR. Der vorherige Entwurf hatte meinen Laptop-Pfad fest kodiert, was für genau einen Rechner auf der Welt funktionierte. Der Reviewer hat es bemerkt. Wenn Sie es jetzt nicht setzen, verweigert das Tool das Schreiben – unhöflich, aber besser, als Dateien in einen Ordner zu schreiben, der auf Ihrem Computer nicht existiert.


Funktionsweise

Zum Zeitpunkt der Erstellung gibt es keine öffentliche Refero-API-Dokumentation – die Struktur wurde empirisch anhand der Live-Seite abgebildet. Die vollständige Aufschlüsselung befindet sich in docs/api-surface.md, damit mein zukünftiges Ich sie nicht neu entdecken muss.

  • Lokaler Katalog-Spiegel. Refero bietet ?page=N Paginierung, ignoriert aber stillschweigend ?search=, ?q= und ?colorScheme=. Daher durchläuft dieses MCP die Seiten einmal, spiegelt sie lokal unter REFERO_CACHE_DIR und führt alle Filterungen und Rankings clientseitig aus.

  • Vibe-Suche via northStar. Jeder Refero-Stil enthält eine einzeilige poetische Zusammenfassung namens northStar. Wenn OPENAI_API_KEY gesetzt ist, bettet das MCP diese Zusammenfassungen mit text-embedding-3-small ein und rankt sie nach Kosinus-Ähnlichkeit zu Ihrer Anfrage. Ohne Key greift es auf Keyword-Scoring für northStar + Tags + Seitenname zurück.

  • DESIGN.md lokal generiert. Refero bietet keinen /design.md-Endpunkt. Das MCP synthetisiert eine aus style.fullResult.designSystem (Dos, Donts, Tags, Theme, rollenspezifische Farben). Die Ausgabe ist kompatibel mit den Skills /stitch-design-taste und /design-taste-frontend.


Fehlerbehebung

"No styles found" / Katalog fühlt sich leer an. Der erste Durchlauf trifft auf einen kalten Cache. Bitten Sie Claude einmal, den "Refero-Katalog zu aktualisieren" – er durchläuft die ca. 10 Seiten mit einer höflichen Pause von 250 ms und schreibt sie in REFERO_CACHE_DIR. Danach ist die Suche sofort verfügbar.

Suchergebnisse fühlen sich eher nach Keywords als semantisch an. Wahrscheinlich ist OPENAI_API_KEY nicht gesetzt. Fügen Sie ihn Ihrer MCP-Konfiguration hinzu und starten Sie neu, oder nutzen Sie das Vokabular des Katalogs stärker (Branchen plus Tags wie editorial, brutalist, glass).

refero_design_md gibt Markdown zurück, schreibt aber nicht auf die Festplatte. REFERO_MCP_VAULT_DIR ist nicht gesetzt. Setzen Sie es auf Ihren Vault-Root (absoluter Pfad) und das Tool schreibt nach <vault>/05-Projects/<NAME>/DESIGN.md. Ohne dies erhalten Sie das Markdown im Chat und können es überall einfügen.


Lizenz

MIT – siehe LICENSE für Details.

Autor

Erstellt von Nate Davidovich / Lorecraft LLC.

⤴ zurück nach oben


Sicherheit: gitleaks-Scan

Dieses Repo enthält eine .gitleaks.toml-Konfiguration und ein scripts/security-scan.sh-Hilfsskript, das den Arbeitsbaum auf Geheimnisse (GitHub-Token, API-Keys, JWTs, private Schlüssel, Anthropic-Keys usw.) scannt.

bash scripts/security-scan.sh

Ein .husky/pre-commit-Hook führt bei jedem Commit auch gitleaks protect --staged aus und gibt eine Warnung aus, falls gitleaks lokal nicht installiert ist.

Falls Sie es noch nicht haben:

Available Tools

6 tools
refero_design_mdA

Render a Refero style as an agent-friendly DESIGN.md (frontmatter, north star, color table, fonts, dos/donts, tags). When save_to_project is set, writes the file to /05-Projects//DESIGN.md.

ParametersJSON Schema
NameRequiredDescriptionDefault
identifierYesuuid, hostname/URL, or site name to render.
save_to_projectNoVault project folder name (e.g. "PARZVL"). Sanitized; must be [A-Za-z0-9_.-].

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description discloses the side effect of writing a file when save_to_project is set and specifies the file path. However, it does not detail overwrite behavior, error handling, or permission requirements, leaving some behavioral ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences: first states purpose and content, second adds conditional behavior. No superfluous information, efficiently communicates core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with two parameters and no output schema, the description explains the main action and optional save. It could mention that it generates a document without modifying the original style, but overall it is sufficient for an agent to understand what the tool does.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already has 100% coverage with clear descriptions. The tool description adds context by explaining the file path construction from save_to_project, going beyond the schema. Good addition but not essential.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool renders a Refero style as a DESIGN.md file with specified contents (frontmatter, north star, etc.) and optionally writes it to a project folder. This distinguishes it from sibling tools that retrieve, list, or search styles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the tool does but lacks explicit guidance on when to use it over alternatives like refero_get or refero_search. No when/ when-not or comparison to siblings is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

refero_getA

Fetch the full design system for a single style. Accepts a uuid, a hostname/URL (e.g. cursor.com), or a site name (e.g. "Cursor"). Fuzzy-matches site names within Levenshtein distance 2.

ParametersJSON Schema
NameRequiredDescriptionDefault
identifierYesuuid, hostname/URL, or site name.

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses fuzzy matching behavior and acceptable input types. It does not explicitly state the tool is read-only or describe failure modes (e.g., no match found), but the intention is clear and no contradictions exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no redundancy, front-loaded with the primary action. Every word adds value—first sentence states purpose, second sentence details input flexibility and matching algorithm.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description could mention what the tool returns (e.g., JSON object of the design system), but for a simple fetch operation, the description is sufficiently complete. The context of sibling tools helps, and the tool is straightforward.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes the 'identifier' parameter as 'uuid, hostname/URL, or site name' (100% coverage). The description adds value by explaining fuzzy matching (Levenshtein distance 2) and giving an example, which goes beyond the schema's basic description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool fetches "the full design system for a single style," specifying the verb 'Fetch' and the resource 'full design system for a single style'. It distinguishes itself from sibling tools like refero_list (list all), refero_search (search), and refero_similar (find similar), which have different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly lists acceptable input formats (uuid, hostname/URL, site name) and provides an example ("Cursor"). It also mentions fuzzy matching with Levenshtein distance 2, giving clear guidance on how the identifier will be resolved, which helps the agent choose correct inputs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

refero_listA

Browse the local catalog mirror with optional theme/tag filters. Returns paginated, stably-ordered results (newest first, then site name).

ParametersJSON Schema
NameRequiredDescriptionDefault
themeNoFilter to light- or dark-themed sites only.
tagsNoFilter by tag terms (matched against siteName + northStar in the catalog projection).
pageNo1-indexed page number (default 1).
limitNoItems per page (default 20, max 50).

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must cover behavior. It mentions read-like operation ('browse') and stable ordering, but does not disclose caching, rate limits, or whether the mirror is synced. Adequate but minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words. Purpose and key details are front-loaded, making it easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers pagination, ordering, and filters. No output schema exists, but description could mention return structure. Still, given the tool's simplicity and thorough schema descriptions, it is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema already describes all 4 parameters with 100% coverage. Description adds no additional meaning beyond restating 'optional theme/tag filters' and pagination. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool browses a catalog mirror with optional filters and pagination. Verb 'browse' and resource 'local catalog mirror' are specific, and the ordering detail distinguishes it from sibling tools like refero_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage for browsing/filtering the catalog, but does not explicitly compare with alternatives (e.g., refero_search for full-text search, refero_similar for similar sites). No guidance on when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

refero_refreshA

Force a full re-fetch of the styles.refero.design catalog and overwrite the local mirror. Useful after the catalog has changed and you don't want to wait for the 24h TTL.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses destructive behavior (overwrite local mirror) but lacks details on authorization, side effects, rate limits, or synchronous/asynchronous nature. No annotations to supplement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two efficient sentences: first states action, second provides use case. No fluff, perfectly front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and no output schema, description adequately explains purpose and when to use. Lacks mention of return value or sync/async but sufficient for a simple refresh.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has zero parameters, so description doesn't need to document any. Schema coverage is 100%. Baseline 4 for no parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the action: force full re-fetch and overwrite local mirror. Specifies the resource (styles.refero.design catalog) and implies the verb 'refresh'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use: after catalog changes and wanting to avoid 24h TTL. Implies alternative is waiting or using other tools like refero_get for normal reads.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

refero_similarA

Refero's own "similar styles" recommendation list for a given style. Useful for follow-up exploration once you've found a candidate via refero_search.

ParametersJSON Schema
NameRequiredDescriptionDefault
identifierYesuuid, hostname/URL, or site name.
limitNoHow many similar styles to return (default 10, max 20).

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description does not disclose read-only nature, required permissions, or any side effects. Minimal behavioral info beyond purpose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no fluff. First sentence states purpose, second gives usage context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema; description does not hint at return format or pagination. However, tool is simple with good sibling context, so adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers both parameters with descriptions; description adds no extra meaning. Baseline 3 due to 100% schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states 'recommendation list for a given style' and distinguishes from siblings by referencing refero_search as a precursor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'Useful for follow-up exploration once you've found a candidate via refero_search', which tells when to use it. Does not explicitly exclude alternatives, but context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updatesv0.1.0
    • First observedrefero_design_md
    • First observedrefero_get
    • First observedrefero_list
    • First observedrefero_refresh
    • First observedrefero_search
    • First observedrefero_similar

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: fetching details, browsing, searching, refreshing, getting recommendations, and generating design docs. No overlap in functionality.

Naming Consistency4/5

All tools share the 'refero_' prefix and use lowercase with underscores, but the suffixes vary between verbs (get, list, refresh, search) and non-verbs (similar, design_md), causing slight inconsistency.

Tool Count5/5

6 tools is well-scoped for interacting with a design system catalog, covering key operations without being too few or too many.

Completeness4/5

The tool set covers browsing, searching, fetching details, getting recommendations, refreshing the catalog, and generating documentation. Minor gaps like filtering by popularity are absent but core workflows are complete.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fidgetcoding/refero-design-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server