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 分