# Grapheme length, text discarded

> Grapheme length, text discarded is an open-source MCP server for developer tools. Remote MCP server that counts grapheme clusters in a string without retaining the text. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/grapheme-len
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The server exposes a single streamable HTTP endpoint that returns how many user-perceived characters (grapheme clusters) a submitted string contains. The README describes the input text as discarded after the count is computed, so the service is pitched as a way to measure text length without storing it.

The README lists it as one entry in a collection of small, independently registered MCP utilities that each answer one narrow question. Its registry name is io.github.sadri-dridi/grapheme-len, and the repository holds the wider set of sibling servers.

It suits developers and agent builders who need accurate character counts for emoji, combining marks or other multi-codepoint text, where naive string length gives wrong answers.

## Features

- **Grapheme cluster counting:** Returns the number of user-perceived characters in a supplied string rather than raw code units.
- **Text discarded after use:** The README states the submitted text is not kept once the count is returned.
- **Streamable HTTP transport:** Reachable as a remote MCP server over the streamable-http transport with no local install.

## Good for

- Validating field lengths for emoji-containing user input
- Counting visible characters in multilingual text for display limits
- Giving an AI agent an accurate length check before truncating strings

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http grapheme-len https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp
```

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

```json
{
  "mcpServers": {
    "grapheme-len": {
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "grapheme-len": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "grapheme-len": {
      "serverUrl": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "grapheme-len": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp"
    }
  }
}
```

## FAQ

### Does the server store the text I send it?

The README says the text is discarded and the server returns only the grapheme count.

### How is the server installed?

It is not packaged for local installation; the registry entry lists a remote streamable-http endpoint only.

### Is Grapheme length, text discarded free?

Yes. Grapheme length, text discarded is open source, so you can use and self-host it for free.

### How do I add Grapheme length, text discarded to Claude Code?

Run this command in your terminal: claude mcp add --transport http grapheme-len https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/grapheme-len/mcp

### What are the best alternatives to Grapheme length, text discarded?

The closest alternatives to Grapheme length, text discarded are grapheme-cluster count, text discarded, grapheme-cluster run, text discarded, UTF-8 byte length, text discarded, Line count, text discarded and digit run count, text discarded.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [grapheme-cluster count, text discarded](https://ai-powered.com/mcp/grapheme-cluster-count-text-discarded): grapheme-cluster count, text discarded is an MCP server for developer tools.
- [grapheme-cluster run, text discarded](https://ai-powered.com/mcp/grapheme-cluster-run-text-discarded): grapheme-cluster run, text discarded is an MCP server for developer tools.
- [UTF-8 byte length, text discarded](https://ai-powered.com/mcp/utf-8-byte-length-text-discarded): UTF-8 byte length, text discarded is an open-source MCP server for developer tools.
- [Line count, text discarded](https://ai-powered.com/mcp/line-count-text-discarded): Line count, text discarded is an MCP server for developer tools.
- [digit run count, text discarded](https://ai-powered.com/mcp/digit-run-count-text-discarded): digit run count, text discarded is an MCP server for developer tools.
- [Word count, text discarded](https://ai-powered.com/mcp/word-count-text-discarded): Word count, text discarded is an MCP server for developer tools.
- [Paragraph count, text discarded](https://ai-powered.com/mcp/paragraph-count-text-discarded): Paragraph count, text discarded is an MCP server for developer tools.
- [paragraph count, text discarded](https://ai-powered.com/mcp/paragraph-count-text-discarded-2): paragraph count, text discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/grapheme-length-text-discarded
