# UTF-8 byte length, text discarded

> UTF-8 byte length, text discarded is an open-source MCP server for developer tools. MCP server that returns the UTF-8 byte length of text without storing 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/utf8-bytes
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README describes this as one of a set of small, independently listed MCP servers in a shared repository, each published under its own registry name. This one measures how many bytes a string occupies when encoded as UTF-8, and the README says the submitted text is discarded rather than retained.

The server is exposed over streamable HTTP through a remote endpoint hosted on a Cloudflare Workers domain, and the registry entry lists no packages to install locally. Clients connect to that URL as a remote MCP server.

It suits developers and autonomous agents that need a quick byte-count check for payload limits, storage sizing or validation of encoded strings, without running their own code for it.

## Features

- **UTF-8 byte counting:** Returns the length in bytes of a string once it is encoded as UTF-8.
- **Text discarded after use:** The README states the submitted text is discarded, so the input is not kept.
- **Streamable HTTP transport:** Connects to MCP clients through a remote streamable HTTP endpoint.
- **No local install:** The registry entry lists no packages, so clients use the hosted endpoint directly.

## Good for

- Check whether a string fits within a byte-limited database column or API field
- Compare character count against encoded byte size for multilingual text
- Let an agent verify payload sizes before sending a request

## Install

### Claude Code (Terminal)

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

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/utf8-bytes/mcp
```

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

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

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

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

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

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

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

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

## FAQ

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

The README says the text is discarded, and the server only reports the byte length.

### How is it connected?

It runs as a remote MCP server over streamable HTTP at a hosted endpoint listed in the registry entry.

### Is UTF-8 byte length, text discarded free?

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

### How do I add UTF-8 byte length, text discarded to Claude Code?

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

### What are the best alternatives to UTF-8 byte length, text discarded?

The closest alternatives to UTF-8 byte length, text discarded are UTF-16 code-unit count, text discarded, UTF-16 unit count, text discarded, UTF-16 code-unit run, text discarded, Unicode word count, text discarded and UTF-16 BOM/length band, value 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

- [UTF-16 code-unit count, text discarded](https://ai-powered.com/mcp/utf-16-code-unit-count-text-discarded): UTF-16 code-unit count, text discarded is an MCP server for developer tools.
- [UTF-16 unit count, text discarded](https://ai-powered.com/mcp/utf-16-unit-count-text-discarded): UTF-16 unit count, text discarded is an MCP server for developer tools.
- [UTF-16 code-unit run, text discarded](https://ai-powered.com/mcp/utf-16-code-unit-run-text-discarded): UTF-16 code-unit run, text discarded is an MCP server for developer tools.
- [Unicode word count, text discarded](https://ai-powered.com/mcp/unicode-word-count-text-discarded): Unicode word count, text discarded is an MCP server for developer tools.
- [UTF-16 BOM/length band, value discarded](https://ai-powered.com/mcp/utf-16-bom-length-band-value-discarded): UTF-16 BOM/length band, value discarded is an MCP server for developer tools.
- [Uuencode length, input discarded](https://ai-powered.com/mcp/uuencode-length-input-discarded): Uuencode length, input discarded is an MCP server for developer tools.
- [UTF-32BE BOM presence, bytes discarded](https://ai-powered.com/mcp/utf-32be-bom-presence-bytes-discarded): UTF-32BE BOM presence, bytes discarded is an MCP server for developer tools.
- [UTF-8 BOM presence, bytes discarded](https://ai-powered.com/mcp/utf-8-bom-presence-bytes-discarded): UTF-8 BOM presence, bytes discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/utf-8-byte-length-text-discarded
