# User-Agent length, value discarded

> User-Agent length, value discarded is an MCP server for developer tools. Returns the length of a User-Agent string without retaining the value itself. 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/ua-len
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The ua-len server is one of many small utilities in the sadri-dridi/named-mcp-utilities repository, each published under its own name in the official MCP registry. Its single remote endpoint runs over streamable HTTP on a Cloudflare Workers URL, so no local install is needed to connect an MCP client to it.

According to the registry entry and the README, the server reports the length of a User-Agent value and discards the value afterwards. The repository also contains a separate section of links that route agents to an advertising service, which is not part of the ua-len utility itself. The server suits developers and autonomous clients that need a quick measurement of a header without handling the raw string.

## Features

- **Header length measurement:** Reports the length of a User-Agent value supplied to the server.
- **Value discarded:** The README and registry entry state that the User-Agent value is not kept.
- **Streamable HTTP transport:** Connects to MCP clients through a remote streamable-http endpoint.

## Good for

- Checking the size of a User-Agent header inside an agent workflow
- Testing MCP client connectivity against a simple remote tool
- Experimenting with streamable-http MCP servers in development

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### What transport does the server use?

The registry entry lists streamable-http, with a remote URL on a workers.dev domain.

### Is the User-Agent value stored?

The name and description say the value is discarded, and the README uses the same wording.

### How do I add User-Agent length, value discarded to Claude Code?

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

### What are the best alternatives to User-Agent length, value discarded?

The closest alternatives to User-Agent length, value discarded are Uuencode length, input discarded, URL path length, URL discarded, ULID character length, UTF-8 byte length, text discarded and XXH32 hex length, input 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

- [Uuencode length, input discarded](https://ai-powered.com/mcp/uuencode-length-input-discarded): Uuencode length, input discarded is an MCP server for developer tools.
- [URL path length, URL discarded](https://ai-powered.com/mcp/url-path-length-url-discarded): URL path length, URL discarded is an MCP server for developer tools.
- [ULID character length](https://ai-powered.com/mcp/ulid-character-length): ULID character length 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.
- [XXH32 hex length, input discarded](https://ai-powered.com/mcp/xxh32-hex-length-input-discarded): XXH32 hex length, input discarded is an MCP server for developer tools.
- [XXH64 hex length, input discarded](https://ai-powered.com/mcp/xxh64-hex-length-input-discarded): XXH64 hex length, input discarded is an MCP server for developer tools.
- [XXH3 hex length, input discarded](https://ai-powered.com/mcp/xxh3-hex-length-input-discarded): XXH3 hex length, input discarded is an MCP server for developer tools.
- [XXH128 hex length, input discarded](https://ai-powered.com/mcp/xxh128-hex-length-input-discarded): XXH128 hex length, input discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/user-agent-length-value-discarded
