Skip to main content
Glama

glyph-mcp

English · Русский

An MCP server that gives Claude two web tools — web_search and web_fetch — that return plain text instead of HTML. Pages are rendered through the glyph terminal browser. The point is to spend fewer tokens on web lookups.

Claude already has web tools, so why this one? Two reasons. glyph reduces a page to just its readable text — no markup, scripts, navigation, or ads — and the result is plain enough that you can grep or trim it before it reaches the model. For a search that works out to roughly 8x fewer tokens.

tokens per search

The trade-off is JavaScript: there isn't any. Single-page apps and dynamic dashboards come back mostly empty, so the tool descriptions tell Claude to fall back to its built-in fetch for those. Static pages, docs, articles, and plain searches are where this earns its keep.

Requirements

  • glyph on your PATH (or its path in GLYPH_BIN). Install it from the glyph repo with cargo install --locked --path crates/app — it lands in ~/.cargo/bin.

  • Node 18 or newer.

Related MCP server: @greatnxy/web-search-mcp

Add it to Claude Code

Published on npm as @k1y0mi/glyph-mcp, so no build step is needed — npx runs it:

claude mcp add glyph -e GLYPH_BIN=$HOME/.cargo/bin/glyph -- npx -y @k1y0mi/glyph-mcp

Restart Claude Code and the two tools appear. To wire it up by hand instead, add this to .mcp.json (project) or ~/.claude.json:

{
  "mcpServers": {
    "glyph": {
      "command": "npx",
      "args": ["-y", "@k1y0mi/glyph-mcp"],
      "env": { "GLYPH_BIN": "/Users/you/.cargo/bin/glyph" }
    }
  }
}

Build from source

If you'd rather run it from a checkout instead of npm:

npm install
npm run build
claude mcp add glyph -e GLYPH_BIN=$HOME/.cargo/bin/glyph -- node /absolute/path/to/glyph-mcp/build/index.js

Tools

  • web_search(query, max_chars?) — run a search, get the results as text.

  • web_fetch(url, max_chars?) — pull a single page as text.

max_chars caps the reply (default 8000). GLYPH_BIN points at the binary if it isn't on your PATH.

Notes

Arguments are passed to glyph via execFile, not a shell, so there's nothing to inject. Each call times out at 30 seconds. test/smoke.mjs starts the server over stdio and calls both tools — run it with node test/smoke.mjs after a build.

License

MIT.

Available Tools

2 tools
web_fetchВеб-фетч (glyph)A

Загрузить URL как чистый ПЛОСКИЙ ТЕКСТ через браузер glyph (срезает HTML/JS/навигацию/рекламу). Токеноэкономно для статей, документации, блогов и прочих статических/текстовых страниц. НЕ подходит для JS-тяжёлых SPA и динамических дашбордов (вернёт мало) — там используй встроенный веб-фетч.

Inputs: url (required), max_chars.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one fetches a specific URL as plain text, the other performs a web search. No overlap in functionality.

    Naming Consistency5/5

    Both tools follow the 'web_' prefix naming convention, making it easy to identify them as web-related. Consistent pattern.

    Tool Count4/5

    With only 2 tools, the set is minimal but appropriate for a focused utility that provides web fetching and search. Slightly small but not insufficient.

    Completeness5/5

    The set covers the two primary web interaction needs: fetching a specific URL and searching the web. No obvious gaps for the stated purpose of plain-text web content.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A self-hosted MCP server providing web search and URL fetching tools, running locally without external API keys or accounts.
      2
      388 npm
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A focused MCP server that provides a single web_search tool for web searches, integrating Tavily and Brave with automatic fallback and key rotation.
      1
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      A read-only MCP server that fetches hard-to-scrape web pages via an anti-detection browser and returns clean, token-efficient markdown. It exposes a single fetch tool that converts pages to markdown without requiring approval prompts.
      -