原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

SERP Title Width

作者:adsandcode版本 0.1.0i★ –i在你的电脑上运行
注册名称io.github.adsandcode/serp-title-width

安装

概览

作者提供的说明(英文原文)

Check if Chinese, Japanese and Korean page titles fit Google results by pixel width, not char count

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "serp-title-width": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-serp-title-width"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add serp-title-width -- npx -y mcp-server-serp-title-width

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "serp-title-width": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-serp-title-width"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "serp-title-width": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-serp-title-width"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 adsandcode 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32410 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32410 个服务器的 72% 更新
  • 基础检查结果等于或优于此分类中其他 32410 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

SERP Title Width 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.0)于14天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, debuff

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

debuff

作者:debuffjp

Let coding agents play, test and tune your 2D web game: live state, explained errors, replays, fuzz.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-server-serp-title-width

Check whether Chinese, Japanese and Korean page titles fit in Google search results, measured by rendered pixel width instead of character count. Ships as an MCP server (for AI agents) and a CLI (for builds and CI).

Documentation and background: adsandcode.com/en/open-source/serp-title-width

The problem

Site auditors and SEO plugins usually judge title length by counting characters, with limits around 60. That rule of thumb comes from Latin text. In the font Google uses for result titles, a CJK ideograph, a kana or a Hangul syllable is 22px wide, roughly twice an average Latin letter. Sixty of them come to 1320px, about twice the 652px desktop result column. A character-count check passes CJK titles that Google will cut in half.

Google says only that the title link is truncated as needed; its documentation gives no length in characters or pixels:

"the title link is truncated in Google Search results as needed"

(Google Search Central, "Influencing your title links in search results")

So the width has to be measured.

The model

Measured on 2026-09-18 on google.com with the zh-TW (Traditional Chinese, Taiwan) interface, Chrome on Windows, by reading the computed style of a result title and measuring glyph advances with a canvas in the same page.

ItemValue
Result title fontArial 22px, line-height 28px
Desktop result column652px, the same at 1366px and 1920px viewport widths
Desktop truncationdone by Google's server (text cut, ... appended), not by CSS
Mobiletwo lines, 343px per line
Full-width character22.0px (1em). Full width means East Asian Width W or F (UAX #11): ideographs, kana, Hangul, full-width punctuation, most emoji
Printable ASCII (U+0020-U+007E)Arial's own advance widths, all 95 characters: for example W 20.76px, O 17.11px, A 14.67px, digits 12.24px, i 4.89px, space 6.11px
Other half-width characters12.2px (estimate, not measured)
Zero-width characters0px: U+200B-U+200D, U+2060, U+FEFF, variation selectors, emoji skin-tone modifiers
Emoji sequenceseach grapheme cluster counts once: a family emoji, a flag or a letter with combining accents is one character

Thresholds:

TierWidthResultWhy
safeup to 572px (26 full-width characters)passConservative line. Leaves room for narrow screens and for differences between your and the title Google displays
longover 572pxwarningOver the conservative line, below the edge zone
edgeover 630pxfailNear the measured single-line limit on desktop
cutover 648pxfailWider than the desktop column: desktop results truncate it

A digit costs about 0.56 of a full-width character, so "2026" takes the space of 2.2 ideographs. Capital letters are much wider than digits: an all-caps product name can push a title over the line that a character count, or a model that treats every Latin letter alike, says it fits.

The ASCII widths come from the font file (Arial Version 7.01 on Windows), in font units, measured with scripts/measure-arial.py and cross-checked three ways: Pillow at 2048px, the font's advance-width table read with fontTools, and measureText() on a Chrome canvas set to 22px arial. All 95 agree to within 0.0001px.

Re-measuring

If Google changes the title font size, every number above is wrong. Open a google.com results page in the interface language you care about and run this in the browser console:

(() => { const h = document.querySelector('a h3'), s = getComputedStyle(h);

const c = document.createElement('canvas').getContext('2d'); c.font = s.fontSize + ' ' + s.fontFamily; return { font: s.fontSize + ' ' + s.fontFamily, col: h.closest('div[data-hveid],div').getBoundingClientRect().width, cjk: c.measureText('貓').width, digit: c.measureText('0').width }; })()

If cjk is no longer 22, update EM and the thresholds in src/width.ts. If the font changes, regenerate the ASCII table with python scripts/measure-arial.py path/to/font.ttf. Do not measure with Pillow at 22px directly: hinting rounds each advance to a whole pixel (W becomes 21), while browsers use the unhinted widths.

Install

Requires Node.js 18 or later. No API keys, no network access.

MCP server
{

"mcpServers": { "serp-title-width": { "command": "npx", "args": ["-y", "mcp-server-serp-title-width"] } } }

CLI
npx -y -p mcp-server-serp-title-width serp-title-width ./public

or install it once with npm install -g mcp-server-serp-title-width and run serp-title-width.

CLI usage

serp-title-width <file|dir> ...           check <title> in .html/.htm files (directories are recursive)

serp-title-width --titles "t1" "t2" ... check title strings serp-title-width ... --json machine-readable output serp-title-width --selftest run the ruler's positive and negative controls (use alone)

Example:

$ serp-title-width --titles "家常料理食譜站|滷肉飯做法・便當菜色・120道快速晚餐" \

"旗艦手機開箱|SAMSUNG GALAXY S26 ULTRA VS GOOGLE PIXEL" "京都三天兩夜行程" Checked 3 title(s). Safe <= 572px / edge > 630px / cut > 648px (Arial 22px, measured 2026-09-18).


[FAIL] (input 2) 旗艦手機開箱|SAMSUNG GALAXY S26 ULTRA VS GOOGLE PIXEL 688.3px / 31.3 full-width characters / cut [FAIL] Cut: 688px (31.3 full-width characters), 40px over the 648px line. Desktop results will truncate it. [warn] Keyword zone (text before the first ?:、,) is 688px, wider than the 343px first line on mobile, so the line breaks inside it.

[warn] (input 1) 家常料理食譜站|滷肉飯做法・便當菜色・120道快速晚餐 564.7px / 25.7 full-width characters / safe [warn] Keyword zone (text before the first ?:、,) is 565px, wider than the 343px first line on mobile, so the line breaks inside it.

[ok] (input 3) 京都三天兩夜行程 176.0px / 8.0 full-width characters / safe


Passed 2 / must fix 1

The second title is 47 characters, under a typical 60-character limit, and 688px wide. When scanning files, only titles with a finding are listed, each with its path under the folder you gave. Check a whole site at once so boilerplate tails across pages are detected.

What is read from disk:

  • A directory is searched recursively for .html and .htm files. node_modules and anything starting with . (such as .git) are skipped, and symbolic links to folders are not followed.
  • A file named explicitly is read whatever its extension, so serp-title-width page.php.txt works.
  • A scan stops with exit code 2 after 20,000 HTML files, which usually means the path is not a site's build output.
  • Only the in the document head counts. Titles inside comments, , , , , and , or after the head has ended, are ignored.
Exit codes
CodeMeaning
0Every title passes (warnings allowed)
1At least one title must be fixed
2The ruler failed its own controls, or bad input: unknown option, path not found, path or subfolder not readable, more than 20,000 HTML files, no found, --selftest combined with anything else

The selftest runs before every verdict. If the ruler cannot show that it still flags known-bad titles and passes known-good ones, it gives no verdict.

MCP tools

ToolInputWhat it does
measure_titlestitles: string[]Measures each title and checks the whole set together
check_title_filespaths: string[]Reads the head from local files or directories (recursive, same rules as the CLI), then runs the same checks. Read-only

Each result has px, full_width_units (px / 22), tier, fails and warns (each finding is {rule, message}), plus boilerplate_tails for the set and a verdict of pass or fix. The server runs the selftest at startup and refuses to start if it fails.

Rules

RuleLevelConditionReason
length_cutfailwider than 648pxWider than the desktop column
length_edgefailwider than 630pxNear the measured desktop single-line limit
length_longwarnwider than 572pxOver the conservative safe line
separatorswarn within 572px, fail over 572pxmore than 2 of 、 , combinedIn the sample behind this model, where Google cut a long zh-TW title, the cut fell on one of these marks. Small sample: treat as a heuristic. A title within the safe line is rarely shortened, so there it only warns
question_marksfailmore than 1 full-width ?Editorial rule: one title, one question. Not from Google's documentation
boilerplate_tailfailthe phrase after the last 、 or , (4+ characters) ends more than 2 titles in the setGoogle's title link documentation names boilerplate titles as a problem. Text after a colon is not counted: the same documentation suggests putting the site name at the start or end of each title, separated by a hyphen, colon or pipe, so …:Site Name on every page is the recommended pattern
keyword_zonewarntext before the first ? : 、 , is wider than 343pxOn mobile the first line breaks inside the main keyword
emptyfailtitle is empty or whitespace
stuffingfailthe same run of 2-4 CJK ideographs appears 3 or more timesGoogle's title link documentation advises against keyword stuffing. Runs are split greedily, so this catches literal repeats such as A|A|A, not variations

Limitations

  • Measured for one setting. google.com, zh-TW interface, Chrome on Windows, 2026-09-18. Other interface languages, browsers or operating systems can use different fonts and widths.
  • Japanese and Korean were not measured separately. Kana and Hangul use the same full-width assumption (East Asian Width W), which matches how they are normally set, but nobody measured google.co.jp or google.co.kr for this model. Treat results for those languages as estimates.
  • Kerning is not modelled. Widths are added one character at a time. Chrome also adjusts the space between some letter pairs, which makes text slightly narrower: the all-caps example above is 688.3px here and 686.7px in Chrome's canvas with its default kerning. Results err on the long side.
  • Half-width characters outside ASCII are estimated at 12.2px. Their real Arial widths vary: é and – are 12.24px, “ 7.33px, ‘ 4.89px, Æ and ™ 22px.
  • Ambiguous-width characters (East Asian Width A, for example ① ※ …) are counted as half width. Depending on the fallback font they can render wider.
  • Google may display something else. It builds title links from several sources besides , including headings, og:title, anchor text and WebSite structured data (which carries the site name), may replace a title it considers boilerplate or inaccurate, and may omit a site name that repeats the one already shown. Text that is not in your can therefore appear in the result. A passing title is not a guarantee of what is shown.
  • Emoji are not measured. Each emoji grapheme cluster counts as one full-width character when its first code point is full width or it carries the emoji presentation selector U+FE0F. Other emoji (such as flags, which Windows shows as two letters) count by their first code point.
  • HTML reading is simple. The head is found with patterns, not a full HTML parser. & < > " ' and numeric references are decoded; other named refer

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx