# whitespace token count, text discarded

> whitespace token count, text discarded is an open-source MCP server for developer tools. Remote MCP endpoint that counts whitespace-separated tokens in text and discards the input. 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/token-n
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

token-n is a small remote MCP server that takes a piece of text, counts its whitespace-separated tokens, and throws the text away rather than keeping it. It is one of many single-purpose utility endpoints published under the same GitHub account.

The server is reached over streamable HTTP at a hosted Cloudflare Workers URL, so there is nothing to install locally. The registry entry lists no packages, only the remote endpoint.

The repository describes these endpoints as public MCP servers aimed at autonomous clients, each registered under its own official registry name. It does not document the individual tool names or parameters for token-n, so check the endpoint itself for its tool schema.

## Features

- **Whitespace token counting:** Returns a count of tokens separated by whitespace in the submitted text.
- **Text discarded:** The registry description says the submitted text is discarded after the count is produced.
- **Remote streamable HTTP:** Runs as a hosted endpoint over streamable HTTP, with no local package to install.
- **Own registry name:** Registered as io.github.sadri-dridi/token-n, with its own endpoint in a larger collection of utilities.

## Good for

- Letting an agent get a quick word-like token count of a string
- Checking rough text length before passing it to another tool
- Testing a streamable HTTP MCP client against a minimal remote server

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### What does token-n do?

It counts whitespace-separated tokens in text and discards the text afterwards.

### How do I connect to it?

Use the streamable HTTP remote URL listed in the registry entry, hosted on a workers.dev domain.

### Do I need to install anything?

No package is listed; it is a remote endpoint only.

### Is it part of a larger project?

Yes, it belongs to the Named MCP utilities repository, which lists many small endpoints under the same GitHub account.

### Is whitespace token count, text discarded free?

Yes. whitespace token count, text discarded is open source, so you can use and self-host it for free.

### How do I add whitespace token count, text discarded to Claude Code?

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

### What are the best alternatives to whitespace token count, text discarded?

The closest alternatives to whitespace token count, text discarded are whitespace run count, text discarded, Whitespace word count, text discarded, Title-case token count, text discarded, edge-space count, text discarded and URL-ish 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 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.
- [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.
- [Title-case token count, text discarded](https://ai-powered.com/mcp/title-case-token-count-text-discarded): Title-case token count, text discarded is an MCP server for developer tools.
- [edge-space count, text discarded](https://ai-powered.com/mcp/edge-space-count-text-discarded): edge-space count, text 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.
- [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 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.
- [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.

---
Source: https://ai-powered.com/mcp/whitespace-token-count-text-discarded
