Skip to main content

Polish Studio MCP

Polish Studio — visual systems workshop

A local design-token workshop for web developers using coding agents.

Audit the system → propose a direction → adapt the CSS → verify the rendered interface.


Studio notes / Case 001

Dashboard redesign, illustrative example

A token-based dashboard mockup showing a before and proposed visual direction

The illustration is an original conceptual mockup, not a screenshot or an automatically rendered transformation. The following measurements are reproduced by the included demo using the actual scoring algorithm.

Design decision Before Proposed
Body type 13px 16px
Primary heading 18px 32px
Spacing examples 5, 10, 15px 4, 8, 12, 16, 24…64px
Routine motion 600ms 180ms
Reduced-motion support no yes
Limited token rubric 56.67 / 100 100 / 100

The proposal prioritizes the text contrast and reduced-motion failures, followed by typography and spacing. A coding agent can adapt these values to an existing project without changing business logic. The rubric is a limited token checklist, not a universal design quality or accessibility score.

v0.1.1 / Python 3.10+ / MCP over stdio / MIT

GitHub stars MCP stdio 8 tests passed locally CI MIT Runtime offline

The toolkit

A polished interface comes from consistent visual decisions, not arbitrary decoration. Polish Studio is a local Model Context Protocol server that evaluates explicitly provided design tokens and produces actionable design improvements for existing web applications.

  • Contrast: deterministic text and focus contrast ratios with prioritized fixes.
  • Typography: role hierarchy, reading size, line height and headline scale.
  • Rhythm: spacing, radius consistency, motion duration and content density.
  • Responsive foundations: bounded containers and mobile grid reflow.
  • Design proposals: 54 distinct combinations of dashboard, landing and e-commerce systems across three densities, three moods and light/dark themes.
  • CSS: namespaced design variables, optional components and accessible-motion foundations.

No API key, browser, remote site inspection or runtime network access is required. The server only handles explicitly passed structured information. It does not edit projects, execute commands, read arbitrary files or access websites.

Install the workshop

Clone this repository and install from its directory into a virtual environment:

python -m venv .venv
# macOS/Linux: source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install .

After installation, polish-studio-mcp, polish-studio, or python -m polish_studio starts the stdio server. It waits for an MCP client; it does not expose an HTTP port. Use the absolute path to the environment's Python interpreter in your MCP client, so the client does not depend on shell activation.

Codex

codex mcp add polish-studio -- /absolute/path/to/.venv/bin/python -m polish_studio
codex mcp list

Or configure ~/.codex/config.toml:

[mcp_servers.polish-studio]
command = "/absolute/path/to/.venv/bin/python"
args = ["-m", "polish_studio"]

On Windows substitute e.g. C:/dev/polish-studio-mcp/.venv/Scripts/python.exe.

Claude Code

claude mcp add --transport stdio polish-studio -- /absolute/path/to/.venv/bin/python -m polish_studio
claude mcp list

Use the same Windows interpreter substitution. Reopen the agent session if necessary, then check MCP tool discovery. See Codex MCP docs and Claude Code MCP docs. Configuration examples follow the documented syntax; actual Codex/Claude host sessions have not been independently tested. An official SDK client integration test verifies the stdio protocol.

Working with a coding agent

Tell your coding agent:

Review my existing design tokens. Call audit_design using the supplied colors, type sizes, spacing, radius, layout and motion settings. Show high-priority issues first. Use propose_design for a calm, balanced dashboard. Compare both systems and adapt the returned CSS to my current components, preserving behavior. Verify the rendered site at desktop and mobile sizes and with keyboard navigation.

The server provides the analysis and proposal only. Your coding agent reviews and applies changes to the actual project within its permissions.

Tool catalog

Tool Input Output
audit_design Design tokens and brief Weighted rubric, measured contrast ratios, prioritized actions
propose_design Brief Complete tokens, rubric, CSS, integration checklist
generate_css Design tokens Namespaced CSS; optional grid, focus, shadow and motion classes

Brief structure:

{"brief":{"kind":"dashboard","density":"balanced","mood":"calm","theme":"light"}}

Accepted kinds: dashboard, landing, ecommerce. Densities: compact, balanced, airy. Moods: calm, bold, warm. Themes: light, dark.

Example audit input:

{
  "brief": {"kind":"dashboard","density":"balanced","mood":"calm","theme":"light"},
  "tokens": {
    "background":"#f6f8fb", "surface":"#ffffff", "text":"#17212f",
    "muted":"#475569", "accent":"#2649b5", "on_accent":"#ffffff", "focus":"#2649b5",
    "fonts":{"caption":12,"body":16,"h3":20,"h2":25,"h1":32},
    "spacing":[4,8,12,16,24,32,48,64], "radius":[4,8,12],
    "motion_ms":180,"reduced_motion":true,"line_height":1.6,
    "columns":4,"mobile_columns":1,"content_width":1440,
    "body_font":"system","heading_font":"system"
  }
}

Colors must be six-digit hex values. Sizes, columns and scales are bounded numbers; fonts are predefined family roles. Raw CSS is not accepted.

Reading the measurements

Category Maximum points
Text and focus contrast 35
Typography 20
Spacing 15
Shape 10
Motion 10
Layout 10

Category points equal its weight multiplied by the fraction of checks passed. Actions are sorted by explicit priority, then category and stable identifier. The normal text target is 4.5:1; the focus token target against background and surface is 3:1. Other thresholds are documented project heuristics.

100 rubric points means the supplied values satisfy this limited checklist. It does not mean a site is fully professional, accessible or certified. Rendered contrast over imagery, target sizes, keyboard order, semantic markup, actual font rendering, actual component state colors, browser zoom, responsive wrapping and actual reduced-motion behavior require separate review.

Reproduce and test

python -m unittest discover -s tests -v
python examples/demo.py

Tests include reference contrast ratios, every preset combination, priority ordering, input rejection, responsive CSS and a live stdio round-trip for all three tools. CI is configured for Linux and Windows with Python 3.10/3.12. No platform-specific claims are made until CI runs.

License

MIT. See LICENSE and third-party acknowledgments.

Metadata

Release files for polish-studio-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polish-studio-mcp 0.1.1
File Size Uploaded Provenance Actions
polish_studio_mcp-0.1.1.tar.gz 18.4 kB With provenance Details for polish_studio_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polish-studio-mcp 0.1.1
File Interpreter ABI Platform Actions
polish_studio_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for polish_studio_mcp-0.1.1-py3-none-any.whl

Total release size: 30.4 kB

Release files / polish_studio_mcp-0.1.1.tar.gz

Download URL polish_studio_mcp-0.1.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d1a789c53e0f40e9b71db58e8f9ccb42c6eddd9cd6e26612bcd77b4d01692afd
BLAKE2b-256 checksum
How to use checksums
184f76e8e291b5d4940b1452b8be55d9bc88faf96a239f3125e8bc21a8b12776
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / polish_studio_mcp-0.1.1-py3-none-any.whl

Download URL polish_studio_mcp-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
224248178a896f389e5aebbbbb9eda0ef45f80d0f7a61eca346617dc4578d690
BLAKE2b-256 checksum
How to use checksums
fa2ddbff509a41fdf85e3421843f9092eac811d0ecbe6b387632025c6892a473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for polish-studio-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polish_studio_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page