# path/case segment count, text discarded

> path/case segment count, text discarded is an MCP server for developer tools. Counts path and case segments in a string for MCP clients, discarding the input text. 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/path-n
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

Path-n is a small remote utility that takes a string written in path or case style and reports how many segments it contains. The text itself is not kept, according to the name and description in its registry entry.

It runs as a hosted streamable-http endpoint, so an MCP client can connect to it by URL without installing anything locally. The registry entry lists no separate packages.

The repository is a collection of similar single-purpose MCP servers, each with its own registry name and endpoint. The README also lists a set of advertising-related doors that point to a separate paid service, which is outside this utility's scope.

## Features

- **Segment counting:** Returns the number of segments in a path- or case-formatted string.
- **Text discarded:** The registry entry says the submitted text is not retained.
- **Remote endpoint:** Served over streamable HTTP at a hosted URL, with no packages to install.
- **Single-purpose tool:** Does one narrow string-parsing job rather than a broad toolset.

## Good for

- Checking how many segments a path or identifier contains inside an agent workflow
- Adding a simple string-structure check to an MCP-based pipeline
- Testing an MCP client's connection to a remote streamable-http server

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### Does the server keep the text I send?

The name and description say the text is discarded, so the server does not keep the input.

### Do I need to install anything to use it?

The registry entry lists a remote streamable-http endpoint and no packages, so it is used by connecting to the URL.

### Is it part of a larger set of tools?

The linked repository describes itself as a collection of independently listed MCP servers, and this one is one of them.

### How do I add path/case segment count, text discarded to Claude Code?

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

### What are the best alternatives to path/case segment count, text discarded?

The closest alternatives to path/case segment count, text discarded are URL path segment count, query discarded, Line count, text discarded, punctuation count, text discarded, Paragraph count, text discarded and paragraph-break 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

- [URL path segment count, query discarded](https://ai-powered.com/mcp/url-path-segment-count-query-discarded): URL path segment count, query 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.
- [punctuation count, text discarded](https://ai-powered.com/mcp/punctuation-count-text-discarded): punctuation count, text discarded is an MCP server for developer tools.
- [Paragraph count, text discarded](https://ai-powered.com/mcp/paragraph-count-text-discarded): Paragraph count, text discarded is an MCP server for developer tools.
- [paragraph-break count, text discarded](https://ai-powered.com/mcp/paragraph-break-count-text-discarded): paragraph-break count, text discarded is an MCP server for developer tools.
- [URL path length, URL discarded](https://ai-powered.com/mcp/url-path-length-url-discarded): URL path length, URL 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.
- [Title Case token count, text discarded](https://ai-powered.com/mcp/title-case-token-count-text-discarded-2): Title Case token count, text discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/path-case-segment-count-text-discarded
