# edge-space count, text discarded

> edge-space count, text discarded is an MCP server for developer tools. Remote MCP utility that counts leading and trailing whitespace in text, then discards. 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/trim-n
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

trim-n is a small remote MCP server in a collection of single-purpose utilities published under the sadri-dridi registry namespace. Its registry description says it reports an edge-space count and discards the submitted text, so it appears to return only how much whitespace sits at the edges of a string.

It is reachable only as a hosted streamable-http endpoint on a Cloudflare Workers domain; there is no installable package. The README presents the wider repository as independently listed public MCP servers aimed at autonomous clients, each with its own registry name and intake. The same repository also lists related servers for ID layouts, calendar checks and Agent Ads placement doors.

No tool names, parameters, pricing or licence are documented for this server, so developers should connect and inspect its tool list before relying on it.

## Features

- **Edge whitespace count:** Returns a count of spaces at the edges of the supplied text, according to its registry description.
- **Text discarded:** The submitted text is described as discarded rather than kept.
- **Remote streamable HTTP:** Runs as a hosted endpoint over streamable-http, so no local install is needed.
- **Part of a utility family:** Sits alongside many other narrowly scoped MCP utilities under the same registry namespace.

## Good for

- Checking whether a string has stray leading or trailing spaces before processing
- Giving an AI agent a quick whitespace check without exposing the text afterward
- Testing a remote MCP connection with a minimal single-purpose server
- Validating input hygiene in an automated agent workflow

## Install

### Claude Code (Terminal)

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

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/trim-n/mcp
```

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

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

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

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

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

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

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

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

## FAQ

### What does trim-n do?

Its registry description says it returns an edge-space count and discards the text.

### How do I connect to it?

Use the streamable-http remote URL listed in the registry entry; no package is provided.

### Is it part of a larger project?

Yes, it belongs to the Named MCP utilities repository, which lists many single-purpose MCP servers.

### Are the tools documented?

No tool names or parameters are listed in the available material.

### How do I add edge-space count, text discarded to Claude Code?

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

### What are the best alternatives to edge-space count, text discarded?

The closest alternatives to edge-space count, text discarded are Whitespace word count, text discarded, whitespace run count, text discarded, Unicode word count, text discarded, Word count, text discarded and whitespace token 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

- [Whitespace word count, text discarded](https://ai-powered.com/mcp/whitespace-word-count-text-discarded): Whitespace word count, text discarded is an MCP server for developer tools.
- [whitespace run count, text discarded](https://ai-powered.com/mcp/whitespace-run-count-text-discarded): whitespace run count, 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.
- [Word count, text discarded](https://ai-powered.com/mcp/word-count-text-discarded): Word count, text discarded is an MCP server for developer tools.
- [whitespace token count, text discarded](https://ai-powered.com/mcp/whitespace-token-count-text-discarded): whitespace token count, text discarded is an open-source MCP server for developer tools.
- [whitespace run count, text discarded](https://ai-powered.com/mcp/whitespace-run-count-text-discarded-2): whitespace run count, text discarded is an MCP server for developer tools.
- [TeX control-word count, body discarded](https://ai-powered.com/mcp/tex-control-word-count-body-discarded): TeX control-word count, body discarded is an MCP server for developer tools.
- [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.

---
Source: https://ai-powered.com/mcp/edge-space-count-text-discarded
