Paths Le logo

Paths Le

Extracts path-like values from source code and configuration, returning classifications plus precise line and column positions.

Install Paths Le

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "paths-le": {
      "command": "npx",
      "args": [
        "-y",
        "paths-le-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

paths-le MCP server analyzes document content supplied by an MCP client and exposes the `extract_paths` tool. It uses format-aware parsers for JSON, YAML, TOML, CSV, dotenv, JavaScript, TypeScript, HTML, and CSS, while scanning other text formats for path-like strings. Results preserve each path's original spelling and include its kind and 1-based location. Reach for paths-le when an agent needs to inspect imports, assets, configuration references, or other path usage without reading files or resolving paths on disk.

Use cases

  • Inspect local imports in JavaScript and TypeScript
  • Audit asset references in HTML and CSS
  • Review path-like values in configuration files
  • Locate file references in unstructured source text

Key features

  • Extracts paths with line and column positions
  • Classifies file, relative, absolute, and URL paths
  • Parses JSON, YAML, TOML, CSV, dotenv, JS, TS, HTML, and CSS
  • Scans unsupported text formats for path-like strings
  • Supports deduplication and result limits
  • Preserves paths as written without filesystem resolution

Tools1

What Paths Le lets your agent do. Expand a tool for its parameters.

Verified live~334 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · paths-le-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads591Package downloads in the last 30 days.
Last commit16d agoMost recent push to the default branch.
Tools exposed1Callable tools this server registers over MCP.

How Paths Le works

What paths-le does

paths-le extracts file and directory paths from source code and configuration text. Its MCP interface provides one tool, extract_paths, which returns each discovered path together with its classification and position in the input. Classifications include file, relative, absolute, and URL.

The server is useful for automated import inspection, asset reference checks, configuration review, and general source analysis. It reports paths exactly as they appear in the document, so a relative path remains relative and an unresolved workspace reference is not converted into an absolute filesystem path.

How it works

An MCP client starts the server as a Node.js process over standard input and output. The client sends document content to extract_paths; optional arguments can identify the format and filename, remove duplicate results, or limit the number of returned paths.

Format-specific parsing is used for JSON, JSONC, YAML, TOML, CSV, dotenv, JavaScript, TypeScript, HTML, and CSS. This supports cases such as local JavaScript or TypeScript imports, HTML attributes, CSS url() values, CSS imports, and path-like configuration values. For formats without a dedicated parser, including Python, Go, Markdown, XML, and Dockerfiles, the server scans text for quoted filenames and strings containing a path separator.

The process only handles content passed to it. It does not read files, resolve paths against a workspace, access the filesystem, or make network requests.

Setup and configuration

Run the published MCP package with npx:

config.json
{
  "mcpServers": {
    "paths-le": {
      "command": "npx",
      "args": ["-y", "paths-le-mcp"]
    }
  }
}

The -y option avoids an installation prompt when the package is first launched. You can also install paths-le-mcp globally with npm and configure the paths-le-mcp executable directly. The server uses stdio and requires no environment variables, API key, or server-specific settings.

Claude Code can register it with claude mcp add paths-le -- npx -y paths-le-mcp. Cursor, Windsurf, and other MCP hosts can launch the same npx paths-le-mcp command.

Tools and capabilities

  • extract_paths: Find paths in supplied document content.
  • Return 1-based line and column positions for each result.
  • Classify results as file, relative, absolute, or URL.
  • Parse supported structured and code formats with format-aware readers.
  • Scan other text formats for quoted filenames and separator-containing paths.
  • Accept options for format, filename, deduplication, and maximum results.

Limitations and notes

Results are based on the text supplied by the client. The server does not verify whether a path exists, resolve symlinks, interpret workspace-relative paths, or modify the returned spelling. Text scanning can be less format-specific than parser-based extraction, so unsupported formats are handled through path-like patterns rather than a language-aware parser. The MCP package covers document-level extraction; the related editor and command-line workflows provide separate ways to scan files or workspaces.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Paths Le

paths-le is an MCP server that accepts document content and exposes the `extract_paths` tool to find file and directory paths. It parses common configuration, code, markup, and stylesheet formats, classifies each result, and returns its original text with 1-based line and column positions.

Install it by configuring an MCP host to run `npx -y paths-le-mcp`. Hosts can launch it over stdio, and a global npm installation also lets you point directly to the `paths-le-mcp` executable. No API key or environment variables are required.

Yes, paths-le works with Cursor by configuring Cursor to launch `npx paths-le-mcp`. The same extension is also available for Cursor through Open VSX, while the MCP server exposes `extract_paths` over stdio.

No, paths-le does not resolve paths against a workspace or filesystem.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPaths Le AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/paths-le?style=directory)](https://allmcps.com/mcp/paths-le)
HTML Embed
<a href="https://allmcps.com/mcp/paths-le"><img src="https://allmcps.com/api/badge/paths-le?style=directory" alt="Paths Le on AllMCPs" /></a>