# newline count, text discarded

> newline count, text discarded is an open-source MCP server for developer tools. MCP server that counts newlines in input text and discards the text itself. 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/nl-ok
- **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 independently listed MCP servers for autonomous clients, each published under its own official registry name. This entry, nl-ok, reports how many newline characters appear in a supplied string while discarding the text it was given.

The registry entry exposes a single streamable-http remote endpoint and lists no packages, so it is used by connecting an MCP client to that hosted URL rather than installing code locally. The README notes that the utility returns a count and does not retain the input text.

It is aimed at developers and agent builders who need a small, deterministic text utility available over MCP without writing their own server.

## Features

- **Newline counting:** Returns the number of newline characters found in the text submitted to it.
- **Text discarded:** The README states that the submitted text is discarded and only the count is returned.
- **Streamable HTTP transport:** Served as a remote MCP endpoint over streamable HTTP with no local install.

## Good for

- Counting lines in a string inside an agent workflow without running local code
- Adding a small deterministic text utility to an MCP client configuration
- Testing MCP client integration with a minimal remote tool

## Install

### Claude Code (Terminal)

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

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/nl-ok/mcp
```

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to this server?

The registry entry lists a streamable-http remote URL; no packages are listed for local installation.

### Is the submitted text stored?

The README describes the text as discarded, and the server returns only the newline count.

### Is newline count, text discarded free?

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

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

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

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

The closest alternatives to newline count, text discarded are LF count, text discarded, Line count, text discarded, newline run length band, text discarded, Unicode word count, text discarded and paragraph 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

- [LF count, text discarded](https://ai-powered.com/mcp/lf-count-text-discarded): LF count, text discarded is an open-source MCP server for developer tools.
- [Line count, text discarded](https://ai-powered.com/mcp/line-count-text-discarded): Line count, text discarded is an MCP server for developer tools.
- [newline run length band, text discarded](https://ai-powered.com/mcp/newline-run-length-band-text-discarded): newline run length band, 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.
- [paragraph count, text discarded](https://ai-powered.com/mcp/paragraph-count-text-discarded-2): paragraph 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.
- [sentence count, text discarded](https://ai-powered.com/mcp/sentence-count-text-discarded): sentence count, text discarded is an MCP server for developer tools.
- [Sentence count, text discarded](https://ai-powered.com/mcp/sentence-count-text-discarded-2): Sentence count, text discarded is an open-source MCP server for developer tools.

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