# SERP Title Width MCP server

> Checks if Chinese, Japanese, and Korean page titles fit Google search results by measuring rendered pixel width instead of character count.

- Repository: https://github.com/adsandcode/serp-title-width
- Page: https://hostedmcp.org/servers/adsandcode/serp-title-width
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

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

### Cursor (`~/.cursor/mcp.json`)

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

### VS Code (`.vscode/mcp.json`)

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

### VS Code CLI

```sh
code --add-mcp '{"name":"serp-title-width","type":"stdio","command":"npx","args":["-y","mcp-server-serp-title-width"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

```sh
codex mcp add serp-title-width -- npx -y mcp-server-serp-title-width
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.serp-title-width]
command = "npx"
args = ["-y", "mcp-server-serp-title-width"]
```

### Gemini CLI

```sh
gemini mcp add -s user serp-title-width npx -- -y mcp-server-serp-title-width
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Tools (2)

- `measure_titles`
- `check_title_files`

## FAQ

### How does this server measure title length?

It measures the rendered pixel width of the title using a canvas model based on the font Google uses, rather than relying on character counts.

### Does the server require an API key or internet access?

No, the server does not require any API keys and does not require network access to function.

### Can I check entire websites for title issues?

Yes, you can scan a directory recursively to check the <title> tags of all HTML files within it.
