Paths Le logo

Paths Le

Extracts file, relative, absolute, and URL paths from supplied source or configuration text with 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.

Automated check passed— started and listed 1 tools correctly (Today).

Overview

The paths-le MCP server exposes the `extract_paths` tool for finding paths in source code and configuration content. It accepts text plus optional format, filename, deduplication, and result-limit parameters, then returns path classifications with 1-based line and column positions. Use it when an agent needs to inspect imports, assets, configuration values, or path-like text without reading files or making network requests. The server runs over stdio through the `paths-le-mcp` npm package and requires no environment variables or API key.

Use cases

  • Extract local imports from JavaScript or TypeScript content
  • Audit asset references in HTML and CSS
  • Inspect path-like values in configuration files
  • Locate file references in arbitrary text
  • Limit or deduplicate extracted path results

Key features

  • Extracts paths from supplied document content
  • Classifies file, relative, absolute, and URL paths
  • Reports 1-based line and column positions
  • Supports code, markup, and configuration formats
  • Offers deduplication and maximum-result controls
  • Runs over MCP stdio through npm

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 1d ago

Recent health check succeeded.

9/9 checks healthy over the last 47d

What it can do

From the 1 tool this server returned when we ran it.

Makes network requests · 1Read-only tools · 1
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age85 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

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 downloads1.6kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed1Callable tools this server registers over MCP.

How Paths Le works

What paths-le MCP server does

The paths-le MCP server gives MCP-compatible agents a focused path-extraction operation. Its main tool, extract_paths, examines content supplied in the request and identifies paths written in that content. Results classify each match as a file, relative path, absolute path, or URL, and include its 1-based line and column.

The parser handles common structured and code-oriented formats, including JavaScript, TypeScript, JSON, JSONC, YAML, TOML, CSV, HTML, CSS, and environment files. JavaScript and TypeScript import analysis excludes npm package names and supports imports spanning multiple lines. HTML and CSS handling covers values such as src, href, srcset, url(), and @import. For other text, the engine uses a scan that looks for quoted filenames and text containing path separators.

How it works

The paths-le MCP server receives document content rather than a file location. Optional request fields identify the format and filename, control duplicate handling, and set a maximum number of results. Paths are returned exactly as they appear in the input; the server does not resolve them against a workspace, follow symlinks, access local files, or contact external services.

This makes the MCP interface suitable for agents that already have file contents available through their host environment. It is distinct from the editor and workspace scanning features described for the broader Paths-LE project: the MCP server itself performs content extraction and does not scan a folder tree.

Setup and configuration

Install or run the Node package with npx:

Terminal
npx -y paths-le-mcp

A standard MCP configuration can start it over stdio:

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

You can also install the package globally and configure the paths-le-mcp executable directly. Pinning a package version is supported when a host should avoid automatically following later releases. No environment variables, API key, or server-specific configuration is required.

Tools and capabilities

The server exposes one documented operation:

  • extract_paths(content, format?, filename?, dedupe?, maxResults?) — extracts matching paths and reports their type and source position.

The optional format and filename inputs can help the engine apply format-specific handling. Deduplication and a maximum-result value let callers constrain the returned data. The same extraction engine is also available through the VS Code extension, but using the MCP package does not require that extension.

Limitations and notes

The paths-le MCP server only processes content provided by the caller. It does not read unsaved or saved files, inspect a workspace, resolve relative paths, or verify that a referenced path exists. It also makes no network requests of its own. Returned values therefore describe the spelling and location of matches in the supplied document, not their resolved destination.

For formats without a dedicated parser, results come from text scanning and may reflect path-like text rather than a semantically validated reference. Agents needing a project-wide report must use the separate editor or CLI workflows documented by the project, rather than relying on the MCP operation alone.

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 connects MCP-compatible AI agents to a path-extraction engine through stdio.

Run `npx -y paths-le-mcp` and add that command to your host's MCP configuration. The server can also be installed globally with `npm install -g paths-le-mcp`, after which the `paths-le-mcp` executable can be used directly.

It provides `extract_paths(content, format?, filename?, dedupe?, maxResults?)`.

Yes, paths-le works with Cursor through its standard MCP stdio command, `npx paths-le-mcp`.

No, the MCP server processes only content passed in the tool request. It does not read files, resolve paths against a workspace, touch disk, or make network requests of its own.

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>