# NDJSON line count, bodies discarded

> NDJSON line count, bodies discarded is an MCP server for developer tools. Remote MCP utility that counts NDJSON lines and discards the payload, for agents. 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/ndjson-lines
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This is one of a family of small, single-purpose MCP servers published under the sadri-dridi namespace in the official registry. This one is named for NDJSON line counting, and its registry description says the bodies are discarded, meaning the data sent in is not kept after the count.

It runs as a remote server over streamable HTTP, hosted on a Cloudflare Workers endpoint. There is no installable package, so clients connect directly to the URL given in the registry entry.

The parent repository describes these servers as independently listed public MCP servers for autonomous clients, each with its own intake. The README does not document the specific tool names, inputs or outputs for this server, so integrators should inspect the server's tool list after connecting.

## Features

- **NDJSON line counting:** Reports the number of lines in newline-delimited JSON input.
- **Bodies discarded:** The registry description states the submitted content is thrown away after the count.
- **Remote streamable HTTP:** Connects over a hosted streamable-http endpoint with no local install.
- **Registry-listed name:** Published as io.github.sadri-dridi/ndjson-lines in the official MCP registry.

## Good for

- Let an agent quickly check how many records an NDJSON payload contains
- Validate batch size before processing a log or export file
- Count lines without retaining the underlying data
- Try a minimal remote MCP server when testing client connectivity

## Install

### Claude Code (Terminal)

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

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/ndjson-lines/mcp
```

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to this server?

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

### Does it keep the data I send?

The description says bodies are discarded, so only the line count is intended to be returned.

### Is it part of a larger project?

Yes, it is one of several small utility servers in the named-mcp-utilities repository by sadri-dridi.

### Which tools does it expose?

The available material does not list tool names, so check the server's tool list after connecting.

### How do I add NDJSON line count, bodies discarded to Claude Code?

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

### What are the best alternatives to NDJSON line count, bodies discarded?

The closest alternatives to NDJSON line count, bodies discarded are NDJSON shape check, body discarded, NEL JSON key count, body discarded, Line count, text discarded, LF count, text discarded and Markdown heading count, body 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

- [NDJSON shape check, body discarded](https://ai-powered.com/mcp/ndjson-shape-check-body-discarded): NDJSON shape check, body discarded is an MCP server for developer tools.
- [NEL JSON key count, body discarded](https://ai-powered.com/mcp/nel-json-key-count-body-discarded): NEL JSON key count, body discarded is an 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.
- [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.
- [Markdown heading count, body discarded](https://ai-powered.com/mcp/markdown-heading-count-body-discarded): Markdown heading count, body discarded is an MCP server for files and documents.
- [TopoJSON object count, body discarded](https://ai-powered.com/mcp/topojson-object-count-body-discarded): TopoJSON object count, body discarded is an MCP server for developer tools.
- [Less variable count, body discarded](https://ai-powered.com/mcp/less-variable-count-body-discarded): Less variable count, body discarded is an open-source MCP server for developer tools.
- [Report-To group count, body discarded](https://ai-powered.com/mcp/report-to-group-count-body-discarded): Report-To group count, body discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ndjson-line-count-bodies-discarded
