Skip to main content
Glama
everything-search-mcp

everything-search-mcp

npm version npm downloads License: MIT Node.js Windows macOS Linux MCP SDK

Install in VS Code Install in VS Code Insiders Install in Cursor Add to Kiro Install in LM Studio

everything-search-mcp

Whole-drive file search for your AI agents. A Model Context Protocol (MCP) server that exposes your machine's native search index — Everything on Windows, Spotlight on macOS, ripgrep/locate on Linux — as three simple tools any MCP client can call. No cloud, no API keys, no indexing to wait for.

Demo

Real session against the built server (Windows 11, Everything es.exe 1.1.0.36). A whole-drive query for download-es.js finds both the repo copy and the global npm-install copy; the argument gate rejects a call missing query:

Terminal demo: check_status, two whole-drive searches, get_file_info, and an INVALID_ARGUMENTS rejection

Related MCP server: onedrive

Why

  • Agents can't search your disk. Filesystems are the one context window no LLM can read. This server hands it a search index instead.

  • The OS already indexed everything. Everything, Spotlight and ripgrep-backed locate keep a live index of your drives; this server queries it rather than walking folders.

  • Three tools, zero configuration. No environment variables, no API keys, no allowlists to maintain. Queries never leave your machine — the server only shells out locally.

  • Belt and suspenders on input. Every call passes a zod argument gate, then length/content validation and shell-argument sanitization before a subprocess is touched.

Install

Requires Node.js >= 20. Nothing else — the Windows search CLI ships in the package.

npm install -g everything-search-mcp

Or skip installing entirely: MCP clients that support npx can launch the server on demand (the configs below do exactly that).

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop:

{
  "mcpServers": {
    "everything-search": {
      "command": "npx",
      "args": ["-y", "everything-search-mcp"]
    }
  }
}

Claude Code

claude mcp add --transport stdio --scope user everything-search-mcp -- npx -y everything-search-mcp

Every other client (Cursor, VS Code, Codex, OpenCode, …)

npx add-mcp everything-search-mcp

The add-mcp one-liner writes the right config into whichever supported client it finds — same for the one-click buttons at the top (VS Code, Cursor, Kiro, LM Studio). Platform setup, query syntax and troubleshooting are in QUICKSTART.md.

What happens on Windows

bin/es.exe (the official voidtools Everything CLI) is bundled in the npm package. The install hook downloads it only if the file is missing, so offline and CI installs skip the network entirely. macOS and Linux need no extra setup beyond optional ripgrep.

How it works

  • src/index.ts registers the three tools over a stdio MCP transport; every response is a JSON envelope in a single text content item.

  • Every search_files / get_file_info call passes the zod argument gate (src/tool-args.ts), then length, traversal and metacharacter validation (src/utils/validation.ts).

  • src/search/unified.ts routes the search to exactly one platform adapter: es.exe (Windows), mdfind (macOS), rg with locate fallback (Linux).

  • get_file_info deliberately bypasses all CLIs: it reads live metadata with a shell-free Node fs helper (src/platform/file-info.ts) on every platform.

Tool reference

search_files

Search for files and folders using the platform's native engine.

Parameter

Type

Required

Description

Limits

query

string

Yes

Search query. Wildcards (*, ?), operators (AND, OR, NOT) and regex on Windows; Spotlight syntax on macOS; regex on Linux

1–1000 characters

maxResults

number

No

Maximum results (default 100)

Values above 1000 are clamped to 1000

offset

number

No

Results to skip (default 0)

Applied on macOS/Linux; currently ignored on Windows

sortBy

string

No

name, path, size, extension, date_modified, date_created, attributes, run_count

Windows only

sortOrder

string

No

ascending or descending

Windows only

matchPath

boolean

No

Match against the full path

Windows only

matchCase

boolean

No

Case-sensitive matching

All platforms

matchWholeWord

boolean

No

Whole-word matching

Windows only

regex

boolean

No

Regex mode

Windows and Linux

Results are returned as recorded — real output from a live session:

{
  "success": true,
  "count": 1,
  "results": [
    {
      "name": "D:\\test_mcp\\everything-search-mcp\\src\\platform\\windows-cli.ts",
      "path": "",
      "fullPath": "D:\\test_mcp\\everything-search-mcp\\src\\platform\\windows-cli.ts",
      "extension": "ts",
      "isFolder": false,
      "isFile": false
    }
  ]
}

Note the platform reality: es.exe prints one full path per line, so on Windows name carries the whole path and path/isFile/isFolder are not populated, and search results never include size or dates on any platform. For rich metadata on a specific hit, call get_file_info — that is the intended pairing.

get_file_info

Detailed metadata for one file or folder — live fs reads, no shell involved.

Parameter

Type

Required

Description

Limits

path

string

Yes

Full path to a file or folder

1–4096 characters

{
  "success": true,
  "info": {
    "name": "package.json",
    "path": "D:\\test_mcp\\everything-search-mcp",
    "size": 1833,
    "created": "2026-10-14T06:23:20.119Z",
    "modified": "2026-10-14T09:40:33.345Z",
    "accessed": "2026-10-14T09:45:51.763Z",
    "extension": "json",
    "isFolder": false,
    "isFile": true
  }
}

check_status

Report the detected platform and search engine. No parameters.

{
  "success": true,
  "status": {
    "platform": "windows",
    "searchEngine": "Everything (es.exe CLI)",
    "available": true,
    "version": "1.1.0.36",
    "message": "Everything command-line interface available"
  }
}

Failed calls

Rejections share one envelope, returned with isError: true:

{
  "success": false,
  "error": "Invalid arguments for search_files: query",
  "errorCode": "INVALID_ARGUMENTS",
  "tool": "search_files"
}

Codes: INVALID_ARGUMENTS (missing/mistyped required argument — the zod gate), plus QUERY_TOO_LONG, PATH_TRAVERSAL, HOME_PATH_NOT_ALLOWED, INVALID_CHARACTERS, PATH_TOO_LONG from the validation layer. Loose-but-valid input is accepted deliberately: numeric strings coerce ("50" → 50), null falls back to defaults, unknown keys are stripped, and out-of-enum sortBy/sortOrder reach the adapter's default sort.

Query syntax

Full per-platform operator tables and examples live in QUICKSTART.md. A taste:

Platform

Engine

Example

Windows

Everything (es.exe)

invoice AND (pdf OR docx), *.txt, report NOT draft

macOS

Spotlight (mdfind)

kind:pdf document, name:report

Linux

ripgrep → locate

\.txt$ (regex), plain substring

Security

Search queries and paths are validated and sanitized before reaching a subprocess; get_file_info never reaches one. Searches carry a 30-second timeout and a 50 MB output cap. The full model, including known limitations, is in SECURITY.md.

Quality

Development

npm install
npm run build   # tsc -> dist/
npm test        # vitest run
npm run dev     # tsx src/index.ts

Contributing

Issues and pull requests are welcome. For larger changes, open an issue first so we can agree on scope. Release procedure for maintainers is in PUBLISHING.md.

License

MIT — see LICENSE.

Acknowledgments

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to browse and search folders, find files, list albums, read file contents, and retrieve item metadata or storage quota in a read-only manner.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to search locally indexed text files, PDFs, and images using natural-language descriptions, and to index folders and inspect index statistics.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to browse and read a user's Microsoft cloud drive through read-only tools for folder listing, full-text search, file lookup, album inspection, file reading, metadata, and storage quota.
      MIT