Skip to main content
Glama

TastePro

TastePro is a read-only Model Context Protocol server that gives coding agents design taste: domain playbooks, original design directions, palettes, type pairings, hero and section blueprints, brand-system analyses, and a web-interface audit rubric. It is deterministic, works offline, and never calls an LLM or browses the web on its own.

TastePro speaks stdio for local clients and Streamable HTTP for hosted clients. The same server works with ChatGPT, Claude, OpenCode, Cursor, and any MCP-compatible agent.

Status: 1.3

The current build ships the read-only foundation, the hosted audit, the distribution path, and domain-specific patterns across public sector, enterprise, commerce, healthcare, and Web3:

  • npx -y tastepro (npm, with provenance) and signed standalone binaries.

  • tastepro audit <file> for a local verdict with rule ids, evidence, fixes, and --fail-on error for CI.

  • 1007 committed content packs across 14 kinds, including 159 app patterns.

  • GOV.UK, USWDS, CMS, NHS.UK, Carbon, Spectrum, SAP Fiori, PatternFly, Ant Design, Primer, PIE, and ethereum.org pattern guidance.

  • 40-domain taxonomy with 15 deep seed playbooks and same-family fallback for uncovered domains.

  • 104-rule web-interface audit rubric with severity and category filters.

  • taste_search, taste_get, taste_guidelines, and taste_audit, a static HTML audit that cites the rubric and admits what it cannot verify.

  • Static resources, resource templates, and two design prompts.

  • stdio and Streamable HTTP transports.

  • OAuth resource-server auth for hosted deployments, plus bearer auth, host allowlists, CORS, body limits, session TTL, and health checks for the HTTP transport.

  • server.json for the official MCP Registry, covering the npm package and the GHCR image.

  • Content ingestion from sixteen pinned upstream repositories.

  • Unit, integration, contract, and production-tier tests.

  • Docker and staging scaffolding.

Not included: executed page JavaScript during audits (browser mode renders with JavaScript disabled), artifact storage, or an authorization server — TastePro validates tokens from your IdP, it does not issue them. See Roadmap.

Related MCP server: ui-polish-mcp

Why it exists

Coding agents can write a page, but they often default to the same generic SaaS landing page: a gradient hero, three feature cards, a fake dashboard, and no point of view. TastePro gives the agent a curated vocabulary and a decision sequence:

  1. Frame the domain and read its playbook.

  2. Commit to one visual direction, not five averaged together.

  3. Choose a palette, type pairing, and the sections the page actually needs.

  4. Build with real content and real states.

  5. Audit against specific, citable rules.

The server returns compact cards first, then full packs only when the agent asks for them. Response budgets keep context use predictable.

Quick start

Requirements: Node.js 22 or newer. No account, no API key, and no network access at runtime.

npx -y tastepro info
npx -y tastepro audit ./index.html --fail-on error

Connect a client:

claude mcp add tastepro -- npx -y tastepro --stdio

Use codex mcp add, opencode mcp add, or the JSON recipes in install.md. The server defaults to stdio and is meant to be launched by an MCP client, not used interactively from a shell.

To expose the HTTP transport locally:

npx -y tastepro --http --host 127.0.0.1 --port 3000
curl http://127.0.0.1:3000/healthz

The response includes the content hash, catalog counts, quality mix, and validation warning count.

Development

Requirements: Bun 1.4.4 or newer.

bun ci
bun run build
bun dist/cli.js info

Build a standalone binary

The binary embeds the content snapshot; users do not need Bun, Node, npm, or a content/ directory.

bun run build:binaries
./dist-bin/tastepro-darwin-arm64 info
./dist-bin/tastepro-darwin-arm64 --stdio

The target suffix matches the build host (darwin-arm64, darwin-x64, linux-x64, linux-arm64). bun run smoke:binary runs the built binary over real MCP stdio from a temporary working directory, proving the embedded content is used.

Install as a command

npm install -g tastepro
tastepro info
tastepro --stdio

With Bun: bun add -g tastepro. From a checkout: bun link.

Connect a client

What it serves

Kind

Count

What it is

domain

40

Domain taxonomy; 15 have deep playbooks

direction

20

Complete visual arguments

palette

56

Token sets with contrast checks

type

44

Display/text pairings with sources

hero

58

Hero archetypes and blueprints

section

185

Section blueprints by role

motion

18

Motion recipes

site

202

Text studies of real sites

brand

84

Brand design-system analyses

guideline

104

Web-interface audit rules

reference

25

Full reference documents

app-style

7

App visual systems

app-shell

5

App shell blueprints

app-pattern

159

App screen and form patterns

Quality mix: 684 verified, 313 reference, 10 incomplete. Incomplete packs are excluded by default and are never presented as complete.

The content is committed under content/generated/, so the server works offline. It is generated from the pinned sources by bun run ingest; do not hand-edit generated files.

Tools

Search the catalog by product, audience, domain, mood, kind, quality, or source. Returns compact cards with ids. Defaults: 12 results, 1,400-token budget.

{
  "query": "fintech dashboard",
  "domain": "fintech-payments",
  "kind": "direction",
  "limit": 5
}

Search first requires every meaningful query term (with fuzzy tolerance for typos), then adds the inferred domain playbooks. This keeps a query such as dark developer tool from returning a generic portfolio. If the query lands only on domains without authored playbooks, the response adds same-family playbooks and lists them in familyFallback; these are references, not domain-specific playbooks.

taste_get

Fetch one or more packs by id.

{
  "ids": ["domain/fintech-payments", "direction/quiet-instrument"],
  "format": "brief"
}

Formats:

  • brief — decision-oriented projection. Default.

  • full — the complete pack.

  • markdown — implementation-oriented document.

  • json — raw JSON.

includeBody: true returns the full body of a reference pack instead of a 1,200-character excerpt. The default budget is 2,400 tokens; includeBody raises the default to the 24,000-token maximum unless you pass an explicit maxTokens.

taste_guidelines

Query the 104-rule web-interface audit rubric.

{
  "query": "focus",
  "severity": "error",
  "format": "markdown",
  "limit": 10
}

Use severity: "error" for must-fix issues. The Markdown format is a copy-paste checklist with rule ids and source lines. Rules are pinned to the Vercel Web Interface Guidelines commit recorded in sources.lock.json.

taste_audit

Audit submitted HTML against the rubric. Findings cite a guidelineId, severity, category, evidence, and a fix; the response also lists checked (rules actually evaluated) and notVerified (rendered layout, runtime behavior, external stylesheets, and copy quality are out of scope for a static audit).

{
  "html": "<html><body><img src='/hero.png'></body></html>",
  "target": "landing page"
}
  • url input requires TASTEPRO_AUDIT_ALLOW_URL_FETCH=true; the fetch is SSRF-guarded (private, loopback, and link-local addresses are refused, with redirect, size, and timeout caps).

  • mode: "browser" requires TASTEPRO_AUDIT_BROWSER=playwright and the optional Dockerfile.audit image. It renders with JavaScript disabled, blocks service workers, aborts every subresource request, adds a layout-overflow check, and is bounded by hard timeouts and a concurrency/queue gate.

  • On hosted deployments the tool requires the tastepro:audit OAuth scope. Anonymous endpoints do not expose it.

  • Submitted documents are never stored, logged, or echoed; only short evidence snippets appear in the response.

Resources and prompts

Static resources:

  • tastepro://catalog — stats, sources, and domain index.

  • tastepro://taxonomy/domains — the 40 domains and authored playbooks.

  • tastepro://stats — build stats and validation warnings.

  • tastepro://skill — the agent-facing skill guide.

Resource templates:

  • tastepro://pack/{+id} — any pack as JSON. References include the full body.

  • tastepro://guideline/{+id} — one guideline rule as JSON.

Templates are not enumerated in resources/list; listing every pack would cost roughly 77k tokens. Use taste_search to discover ids, or URI completion on the template. resources/list returns only the four static resources above.

Prompts:

  • design_brief — turn a project description into a concrete brief.

  • design_audit — turn a URL, file, or component into a prioritized audit plan. The prompt tells the agent not to claim it inspected a page it could not load.

HTTP transport

The HTTP transport uses the MCP Streamable HTTP protocol at POST /mcp. Stateless is the production default: every request is independent, so any replica can serve it and no session store is needed. --stateful (or TASTEPRO_HTTP_MODE=stateful) enables sessions for SSE (--sse) and resumability. In stateless mode GET/DELETE return 405 and --sse is rejected at startup.

TASTEPRO_API_KEY="$(openssl rand -hex 32)" \
  node dist/cli.js --http --host 0.0.0.0 --port 3000

With an API key set, every /mcp request needs:

Authorization: Bearer <token>

Health, readiness, and root metadata stay anonymous:

  • GET /healthz

  • GET /readyz

  • GET /

Other hardening:

  • A non-loopback bind requires auth — OAuth (TASTEPRO_OAUTH_ISSUER plus TASTEPRO_PUBLIC_URL) or TASTEPRO_API_KEY — and TASTEPRO_ALLOWED_HOSTS; anonymous hosting needs the explicit TASTEPRO_ALLOW_ANONYMOUS=true opt-in and never exposes taste_audit.

  • With OAuth configured, /mcp verifies JWT access tokens (issuer, audience, expiry, signature via the IdP's JWKS or OIDC discovery) and serves /.well-known/oauth-protected-resource metadata. OAuth and a static API key cannot be combined. Stateless mode applies the token's scopes per request.

  • TASTEPRO_ALLOWED_HOSTS rejects unexpected Host headers.

  • Browser origins are deny-by-default; an untrusted Origin is rejected before a request is handled.

  • Request bodies are capped at 1 MiB.

  • Stateful sessions expire after 30 minutes idle and are capped; stateless mode has no sessions.

  • taste_audit is bounded by a concurrency/queue gate. Browser mode blocks all subresource requests and uses hard timeouts.

  • SIGINT/SIGTERM close sessions and drain the HTTP server.

For a production-shaped self-host deployment, use deploy/production.compose.yml with deploy/production.env.example.

OAuth with Keycloak

For a local OAuth check without Docker, run:

bun run smoke:oauth:local

The repository also includes a reference Keycloak realm and an end-to-end smoke:

docker compose -f deploy/keycloak.compose.yml up -d
bun run smoke:oauth
docker compose -f deploy/keycloak.compose.yml down -v

It checks a real token, the tastepro:audit scope, scope denial, and audience rejection. See docs/deployment.md for the production IdP setup.

Configuration

Variable

Default

Purpose

TASTEPRO_CONTENT_DIR

package content/

Content directory

TASTEPRO_HOST

127.0.0.1

HTTP bind host

TASTEPRO_PORT

3000

HTTP port

TASTEPRO_API_KEY

unset

Require static bearer auth on /mcp

TASTEPRO_OAUTH_ISSUER

unset

OAuth issuer URL; enables OAuth on /mcp

TASTEPRO_OAUTH_AUDIENCE

<public-url>/mcp

Expected OAuth audience

TASTEPRO_OAUTH_JWKS_URI

OIDC discovery

JWKS endpoint

TASTEPRO_PUBLIC_URL

unset

Public origin; required with OAuth

TASTEPRO_HTTP_MODE

stateless

stateful enables sessions and SSE

TASTEPRO_ALLOW_ANONYMOUS

false

Explicit opt-in for unauthenticated non-loopback

TASTEPRO_CORS_ORIGIN

unset (deny)

Comma-separated browser origins, or *

TASTEPRO_ALLOWED_HOSTS

unset

Comma-separated Host allowlist

TASTEPRO_AUDIT_ENABLED

true

Set false to remove the taste_audit tool

TASTEPRO_AUDIT_ALLOW_URL_FETCH

false

Allow the SSRF-guarded url input on taste_audit

TASTEPRO_AUDIT_BROWSER

unset

playwright enables browser rendering (JS off)

TASTEPRO_AUDIT_MAX_CONCURRENCY

2

Maximum in-flight audits

TASTEPRO_AUDIT_MAX_QUEUE

8

Maximum queued audits before returning busy

TASTEPRO_LOG_LEVEL

info

debug, info, warn, error, silent

CLI flags override environment variables. Run node dist/cli.js --help for the full list.

Content and provenance

The content pipeline is reproducible:

bun run ingest            # fetch pinned sources, transform, write content/generated
bun run ingest:offline    # use the local source cache only
bun run validate          # validate schemas, counts, hash, provenance, licenses
bun run sources:update    # check the four pins for newer commits

Every pack carries:

{
  "provenance": {
    "source": "taste-skill",
    "repo": "https://github.com/Leonxlnx/taste-skill",
    "commit": "12af471f627f866411b4bd785b19646d3672784c",
    "path": "skills/taste-skill/library/directions.json",
    "license": "MIT",
    "authors": ["Leonxlnx"],
    "transformations": ["..."]
  }
}

The contentHash in content/generated/stats.json covers the catalog, every full pack file, reference bodies, and source commits. bun run validate recomputes it from the served files and fails if the committed content drifts.

See docs/content.md for the content model and authoring rules.

Development

bun run typecheck        # TypeScript strict check
bun run lint             # Biome
bun run format           # Biome format
bun run test                 # all tests
bun run test:integration # real stdio/HTTP MCP clients
bun run validate         # content and provenance validation
bun run build            # compile to dist/
bun run smoke:http       # real HTTP MCP smoke test with auth

Tests are organized in tiers:

  • tests/unit/ — parsers, schema, budget, search, get, guidelines, loader.

  • tests/integration/ — real stdio and HTTP MCP clients.

  • tests/production/ — committed content, CLI lifecycle, HTTP hardening.

The HTTP tests bind to an ephemeral localhost port. The stdio tests spawn the real CLI and speak JSON-RPC over pipes. No network is required for the test suite.

Docker

docker compose up --build
curl http://127.0.0.1:3000/healthz

The image runs as a non-root user, uses a multi-stage build, and ships the committed content. For a staging deployment with Caddy and TLS, see deploy/staging.compose.yml and docs/deployment.md.

Security

TastePro is read-only. It has no write tools, no database, no user accounts, and no server-side LLM calls. The main risks are content-path traversal, resource exhaustion, and exposing an unauthenticated hosted endpoint.

Mitigations in the current build:

  • Content paths are resolved and checked against the content directory.

  • Reference bodies are validated at build time and at read time.

  • HTTP request bodies are capped at 1 MiB.

  • Stateless HTTP keeps no sessions; stateful mode has an idle TTL and a concurrent-session cap.

  • Audit requests are bounded by a concurrency/queue gate.

  • Host allowlists and CORS controls are available.

  • Bearer auth is supported for hosted read-only access.

  • Logs go to stderr, never stdout, so stdio JSON-RPC stays clean.

Report a vulnerability privately; see SECURITY.md. Do not open a public issue for an unfixed vulnerability.

Licensing and attribution

TastePro's original code and content are Apache-2.0. Upstream-derived content remains under its source license:

  • Taste Skill — MIT

  • Awesome DESIGN.md — MIT

  • Vercel Web Interface Guidelines — MIT

  • Microsoft Playwright CLI — Apache-2.0

See ATTRIBUTION.md, NOTICE, and the full license texts in content/sources/licenses/. Brand packs are reference analyses, not templates to clone. Do not impersonate a brand or reuse its logo, copy, or assets.

Roadmap

  • M0 (initial release): read-only catalog, playbooks, references, audit rubric, stdio + HTTP, hardening, content pipeline, tests, Docker/staging scaffolding.

  • M1: six original fully built templates; richer domain playbooks; client recipes; hosted read-only deployment.

  • M2 (current): taste_audit with static checks, SSRF-guarded URL input, opt-in browser rendering, and OAuth resource-server auth for hosted deployments.

  • M3: team features, private content packs, and a hosted control plane.

Contributing

Read CONTRIBUTING.md. In short: keep changes deterministic, add tests, preserve provenance, never add third-party screenshots or logos, and run bun run typecheck && bun run lint && bun run validate && bun run test before opening a pull request.

Available Tools

4 tools
taste_auditAudit submitted HTML against the web-interface rubricA
Read-only

Check submitted HTML (or a fetched URL, when the server allows it) against the pinned web-interface guidelines. Returns findings with guideline id, severity, evidence, and a fix, plus an explicit list of what this audit cannot verify. Nothing is stored. URL fetching and browser rendering are server-side opt-ins.

Inputs: url, html, mode, target, +1 more.

taste_getGet full design packs by idA
Read-onlyIdempotent

Fetch one or more packs by id after taste_search. Use format=brief for decisions, full/markdown for implementation detail, and json for raw data. For references, includeBody=true returns the entire document. Default budget 2400 tokens.

Inputs: ids (required), format, maxTokens, includeBody.

taste_guidelinesQuery the web interface audit rubricB
Read-onlyIdempotent

Query the pinned Vercel Web Interface Guidelines: 104 accessibility, focus, form, animation, typography, content, image, performance, navigation, touch, layout, dark-mode, i18n, hydration, hover, copy, and anti-pattern rules. Use format=markdown for a checklist and severity=error for must-fix issues.

Inputs: limit, query, format, category, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    The search/fetch pair (taste_search → taste_get) is explicitly documented as a sequence, and taste_guidelines clearly covers a fixed rule set while taste_audit evaluates user HTML. The only mild overlap is between taste_search and taste_guidelines, since both can surface guidance for a brief, but descriptions distinguish catalog packs from pinned rules.

    Naming Consistency5/5

    All four tools use the same taste_ prefix plus a single lowercase snake_case suffix, so the pattern is immediately predictable. The suffix is sometimes a verb (search, get, audit) and sometimes a noun (guidelines), but the shared prefix convention holds throughout.

    Tool Count5/5

    Four tools is well within the sensible 3-15 range and each covers a distinct step: discover (search), retrieve (get), reference rules (guidelines), and validate (audit). Nothing appears redundant or padding.

    Completeness4/5

    For a read-only design advisory server the lifecycle is essentially covered: search, fetch detail, consult rules, and audit output. Minor gaps exist—there is no way to enumerate available kinds/domains or compare packs without issuing a search query—but agents can work around this.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that exposes a design system and UX rulebook as tools, enabling AI to generate UI consistent with your design tokens, components, layout rules, accessibility guidelines, and templates. It also provides a review tool to score UI proposals against the design system.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables coding agents building UI to fetch real product screens as inline images, pull typed design references, and find licensed fonts, icons, or animated icons when a visual question is unresolved. It also serves a bundled design workflow, command playbooks, and connection diagnostics.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Connects coding agents to a catalogue of real product screens so they can pull concrete UI references, fonts, icons, and the recorded design systems behind web screens when a visual question is open. It also serves bundled design-workflow documents, help, and connection diagnostics for grounding UI work in real products rather than generic templates.
      -