# UTF-16 unit count, text discarded

> UTF-16 unit count, text discarded is an MCP server for developer tools. Counts UTF-16 code units in a string without retaining the text, for AI clients. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/utf16-len
- **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 single-purpose MCP servers, each published under its own registry name. This one returns the number of UTF-16 code units for text a client sends, and the registry entry says the submitted text is discarded rather than stored.

The server is reached over streamable HTTP at a hosted Cloudflare Workers endpoint listed in the registry remotes; no local package is published. Because the count is a deterministic calculation, it suits agents that need to check string lengths against APIs or limits that measure in UTF-16 units, such as JavaScript-based systems.

The README does not list pricing, authentication requirements or additional tools for this specific server.

## Features

- **UTF-16 unit counting:** Returns the count of UTF-16 code units for submitted text.
- **Text discarded after use:** The registry entry states the input text is not retained.
- **Streamable HTTP transport:** Served over streamable HTTP at a hosted remote endpoint.

## Good for

- Checking string length against UTF-16 based API limits
- Validating text length for JavaScript or Java-based systems before sending
- Letting an autonomous agent measure code units without storing the input

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### Is the submitted text stored?

The registry entry describes the server as discarding the text, and the README repeats that the text is discarded.

### How is the server connected?

The registry lists one remote endpoint using the streamable-http transport; no packages are listed for local installation.

### How do I add UTF-16 unit count, text discarded to Claude Code?

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

### What are the best alternatives to UTF-16 unit count, text discarded?

The closest alternatives to UTF-16 unit count, text discarded are UTF-16 code-unit count, text discarded, UTF-8 byte length, 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-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.
- [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.
- [URL-ish token count, text discarded](https://ai-powered.com/mcp/url-ish-token-count-text-discarded): URL-ish token count, text discarded is an MCP server for developer tools.
- [UPPERCASE run count, text discarded](https://ai-powered.com/mcp/uppercase-run-count-text-discarded): UPPERCASE 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.

---
Source: https://ai-powered.com/mcp/utf-16-unit-count-text-discarded
