goldenratio.app

app.goldenratio由 goldenratio.app 發布官方發布者v0.1.1更新於 Nov 7, 2026

Golden-ratio design math: spacer calculator, spacing scale, grid widths, CSS vars, Tailwind setup.

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

遠端 MCP 伺服器,提供 goldenratio.app 的黃金比例設計運算:間距計算器、間距刻度、格線寬度、CSS 變數與 Tailwind 外掛設定。

可以做什麼
  • 在左右兩側堆疊間距塊,判斷是否平衡並列出能讓較短一側對齊的組合
  • 取得黃金間距刻度,含精確值、px、CSS 變數名稱與 Tailwind 鍵名
  • 取得黃金格線寬度類別、起始 container/row CSS、範例列,並檢查自訂列
  • 取得 :root 中的黃金比例 CSS 變數區塊,可輸出 CSS、壓縮 CSS 或 JSON
  • 取得 tailwindcss-golden-ratio 的安裝步驟、設定與產生的主題值
  • 將任意數值依黃金比例放大或縮小
適用情境
適合在依黃金比例建立或調整版面、字級階層、間距系統時使用,也適合需要 goldenratio.app 所用的精確數值與 Tailwind 設定、又不想逐項查網站的情況。
執行需求
需要一個遠端 Streamable HTTP 端點,不需帳號、API 金鑰或標頭。僅支援 stdio 的用戶端需透過 mcp-remote 之類的橋接,或在本地以 Node.js 建置後執行。託管端點依 IP 限制每分鐘 120 次請求。
安裝前請注意
唯讀且不需任何密鑰,但託管端點免費且依現況提供,不保證可用性或正確性,可能隨時變更、限流或關閉;為執行限流會在記憶體中短暫保留用戶端 IP,流量經由其託管服務商轉送。輸出針對 Tailwind CSS 1.x,部分數值刻意保留網站的特殊行為(例如帶 px 後綴的比例變數)與手動取整的速查表數字。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 goldenratio.app,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/app.goldenratio%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "goldenratio-app": {
      "type": "http",
      "url": "https://mcp.goldenratio.app/mcp"
    }
  }
}

README

goldenratio-mcp

An MCP server for goldenratio.app. Agents can use the site's golden-ratio design tools: the Golden Calculator, the golden spacing scale, the golden grid, the CSS variables and the Tailwind plugin setup.

The math is the site's own code, unedited:

  • src/site/calc.js is a byte-for-byte copy of the site's src/utils/calc.js (the Golden Calculator).
  • src/site/tailwindcss-golden-ratio.cjs is a byte-for-byte copy of index.js from tailwindcss-golden-ratio 0.3.5, the plugin the site's tailwind.config.js loads for every spacing value, grid width and CSS variable. The server runs that file as-is and calls its theme functions the way Tailwind does.
  • src/site/grid-examples.json and src/site/spacing-cheatsheet.json are pulled out of the site's Grid.vue and Spacing.vue by the scripts in scripts/.

Every output was checked against the live site (see Verification).

The server is read-only. It needs no account and no secrets, stores nothing, and never calls goldenratio.app.

Remote endpoint: https://mcp.goldenratio.app/mcp (Streamable HTTP, stateless, no auth, 120 requests a minute per IP). The original address, https://goldenratio-mcp.fly.dev/mcp, still works and serves the same server. Use of the hosted endpoint is covered by Hosted service.

Install

Claude Code

sh
# remote (nothing to install)claude mcp add --transport http goldenratio-app https://mcp.goldenratio.app/mcp
# or local stdiogit clone https://github.com/truefrontier/goldenratio-mcp && cd goldenratio-mcp && npm install && npm run buildclaude mcp add goldenratio-app -- node "$PWD/dist/stdio.js"

Cursor / Grok Bot

Add this to ~/.cursor/mcp.json (or a project's .cursor/mcp.json):

json
{  "mcpServers": {    "goldenratio-app": { "url": "https://mcp.goldenratio.app/mcp" }  }}

For local stdio, use { "command": "node", "args": ["/absolute/path/to/goldenratio-mcp/dist/stdio.js"] }.

Grok Bot uses the same thing. Add a custom MCP connector with the URL https://mcp.goldenratio.app/mcp and no auth.

Any other MCP client

Add a remote (Streamable HTTP) server with the URL above. If the client only runs stdio servers, bridge it with npx -y mcp-remote https://mcp.goldenratio.app/mcp, or run node dist/stdio.js from a local build.

Tools

ToolSite featureWhat it returns
golden_calculatorGolden CalculatorStack spacers 1-11 on a left and right side. Returns whether they're equal and every combination that makes the shorter side match ("Try"), plus what the site shows under each column. The site starts at left [6, 5, 6].
golden_spacingSpacing cheatsheetSpacers 1-11, half-1..11 and double-1..11 with exact values, px, CSS variable names and Tailwind keys, for any spacer_base / spacer_unit / prefix. With the defaults it also returns the site's rounded cheatsheet table.
golden_gridGolden Gridw-grp-*, w-grp-half-*, w-grp-double-* widths (optionally in px for a container), the starter .container / .row CSS, all 38 example rows from the page with their totals, and a check of your own row.
golden_css_variablesSite stylesheetThe :root block of --golden-ratio-* variables exactly as the site ships it (css, minified or json).
tailwind_plugin_setup"Get Started" on the home pageInstall command and tailwind.config.js for tailwindcss-golden-ratio, its options, and the exact theme values it generates (spacing, scale, fontSize extras, borderWidth, lineHeight).
golden_ratio_stepsHome page explainer / Alfred workflowStep any number up or down by 1.61803398875.

All tools are annotated readOnlyHint: true.

Not covered

  • The calculator's confetti, colors and button UI. The tool returns the same state the page shows.
  • The Alfred workflow download itself. golden_ratio_steps does the same math.
  • Anything outside the three tools pages (home page copy, header, footer).

Site quirks kept on purpose

  • --golden-ratio ships as 1.61803398875px. The plugin passes the ratio as a bare number and Tailwind 1 adds px to bare numbers. --gr is the unitless ratio. golden_css_variables reproduces this so its output matches the site byte for byte.
  • The Spacing page's table is rounded by hand (for example spacer 5 shows 14.828px, the exact value is 14.8328px). golden_spacing returns both: values are the exact numbers the site's CSS uses, and site_cheatsheet is the table as printed.
  • Column heights in golden_calculator are exact math rounded to 0.1px. The site measures rendered heights, which Chrome rounds to 1/64px, so the two can differ by 0.1px. The matches and the equal/not-equal result are identical.
  • The plugin targets Tailwind CSS 1.x, like the site (tailwindcss ^1.4).

Hosted service

The endpoint at https://mcp.goldenratio.app/mcp (also reachable at https://goldenratio-mcp.fly.dev/mcp) is provided free and as-is, with no guarantee of uptime or accuracy. It may change, be rate-limited, or shut down at any time without notice.

Acceptable use. Don't abuse or overload the service, don't try to get around the rate limit, and don't use it for anything illegal. We may block traffic that does.

Data. The server doesn't need an account, stores nothing you send, and doesn't write request or IP logs. To enforce the rate limit it keeps each client IP address in memory for about a minute, then drops it. The service is hosted on Fly.io, which routes the traffic and handles it under its own privacy policy. We don't sell any data.

License

MIT, Copyright (c) 2026 Brandname Maker LLC d/b/a True Frontier. Third-party notices are in THIRD_PARTY.md.

The goldenratio.app and True Frontier names and logos aren't covered by this license.

Develop

sh
npm installnpm run build        # tsc, then copies src/site into dist/site unchangednpm test             # calls every tool through a real MCP client over stdionode scripts/smoke.mjs https://mcp.goldenratio.app/mcp   # same, against the remotenpm run start:http   # local Streamable HTTP on :8080/mcpnpm run extract      # regenerate the JSON data from a ../goldenratio-app checkout

Deploy: fly deploy (app goldenratio-mcp, see fly.toml).

Verification

Checked with headless Chrome against the live site on Oct 26, 2026. All 152 checks were exact matches:

  • The :root block from golden_css_variables (min) is identical to the one in the site's live stylesheet.
  • All 33 w-grp-* widths match the live CSS. All 33 --golden-ratio-* values match, and each .h-N utility points at the matching variable.
  • Both Spacing page tables match site_cheatsheet cell for cell.
  • The 38 example rows on the Grid page match site_examples (row and column classes).
  • 49 calculator states were checked: the site's starting state, 8 hand-picked cases and 40 random ones, each set by clicking the site's buttons. Equal/not-equal, the "Try"/"Using" heading and every listed combination matched on both sides. Heights were within 0.1px.

來源:README.md,提交 519d7c3

工具

6

golden_calculator

Golden Calculator

The goldenratio.app Golden Calculator. Stack spacers numbered 1-11 (each is the previous x 1.618) on a left and a right side; returns whether both sides are equal and, if not, every combination of spacers that would make the shorter side match ("Try" on the site). The site starts with left = [6, 5, 6], right = [].

輸入參數leftright

golden_spacing

Golden spacing scale

The golden spacing scale (spacers 1-11 plus half-N and double-N) with exact values, px and CSS variable names, as used by goldenratio.app and the tailwindcss-golden-ratio plugin. With default options it also returns the rounded cheatsheet table from goldenratio.app/#/spacing.

輸入參數prefixspacer_basespacer_unitroot_font_px

golden_grid

Golden grid

The golden grid from goldenratio.app/#/grid: w-grp-1..11, w-grp-half-*, w-grp-double-* percentage widths, the starter .container/.row CSS, every example row from the site with its total width, and an optional check of your own row (does it add up to exactly 100%?).

輸入參數rowcontainer_pxinclude_examples

golden_css_variables

Golden CSS variables

The :root block of golden-ratio CSS variables (--golden-ratio-1..11, half-*, double-*, --gr) exactly as goldenratio.app ships it. Use without Tailwind.

輸入參數formatspacer_basespacer_unit

tailwind_plugin_setup

tailwindcss-golden-ratio setup

How to add the tailwindcss-golden-ratio plugin (the one goldenratio.app uses): install command, tailwind.config.js, options, and the exact theme values it generates (spacing, grp widths, scale, fontSize extras, borderWidth/lineHeight) for the given options.

輸入參數prefixspacer_basespacer_unituse_css_vars

golden_ratio_steps

Golden ratio steps

Step any number up or down the golden ratio (x or / 1.61803398875), e.g. to pick a type scale or the next size. What the goldenratio.app Alfred workflow does.

輸入參數unitvalue必填steps_upsteps_down

版本歷史

1
  1. v0.1.1最新Nov 7, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分