# LF vs CRLF vs CR, text discarded

> LF vs CRLF vs CR, text discarded is an MCP server for developer tools. Detects LF, CRLF or CR line endings in text and discards the text 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/newline-kind
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

Mixed line endings cause quiet trouble when text moves between Windows, Unix and classic Mac tools. This MCP server reports which convention a string uses, choosing between LF, CRLF and CR, and does not keep the text it was given. The registry entry and repository both describe it as discarding the input.

It is served as a remote streamable HTTP endpoint, and the registry lists no local packages, so there is nothing to install on the client side. The repository is a collection of small single-purpose MCP utilities from the same author, and each one has its own endpoint.

It suits agents and pipelines that need to check or branch on line endings before parsing, diffing or rewriting a file.

## Features

- **Three-way line ending detection:** Classifies input as LF, CRLF or CR based on the line terminators it contains.
- **Input text not retained:** The registry and repository state that the submitted text is discarded after the check.
- **Remote streamable HTTP endpoint:** Connects to an MCP client over streamable HTTP without a local install.
- **Single-purpose utility:** Does one narrow job, so it is simple to wire into an agent's tool list.

## Good for

- Checking a file's line endings before an agent parses or edits it
- Routing text to the right normaliser in a cross-platform pipeline
- Diagnosing unexpected diffs caused by mixed line endings

## Install

### Claude Code (Terminal)

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

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/newline-kind/mcp
```

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

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

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

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

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

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

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

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

## FAQ

### What transport does it use?

The registry entry lists streamable-http as the transport, with a remote endpoint URL and no packages.

### Does it keep the text I send?

The product name and registry description say the text is discarded, so the server reports the line ending type only.

### Do I need to install a package?

The registry entry lists no packages, only a remote endpoint, so no local package install is described.

### How do I add LF vs CRLF vs CR, text discarded to Claude Code?

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

### What are the best alternatives to LF vs CRLF vs CR, text discarded?

The closest alternatives to LF vs CRLF vs CR, text discarded are LF count, text discarded, Line count, text discarded, Windows-1252 C1 band, input discarded, newline count, text discarded and newline run length band, 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.
- [Windows-1252 C1 band, input discarded](https://ai-powered.com/mcp/windows-1252-c1-band-input-discarded): Windows-1252 C1 band, input discarded is an MCP server for developer tools.
- [newline count, text discarded](https://ai-powered.com/mcp/newline-count-text-discarded): newline count, text discarded is an open-source 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.
- [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.
- [RTF header check, body discarded](https://ai-powered.com/mcp/rtf-header-check-body-discarded): RTF header check, body 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.

---
Source: https://ai-powered.com/mcp/lf-vs-crlf-vs-cr-text-discarded
