fast-indexer-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fast-indexer-mcp Find every use of armTimeout in index.mjs and show the enclosing function"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fast-indexer-mcp (v3.0)
Zero-dependency Windows MCP server for AI coding agents — combining Voidtools Everything (es.exe) NTFS MFT indexing, Ripgrep (rg.exe) PCRE2 SIMD content search, and an in-process lexical scope extractor (JS/TS, Python, Java, Kotlin, C#, C/C++, Rust, Go, Dart, and Android .smali).
نبذة سريعة (العربية): خادم MCP مجاني ومفتوح المصدر صُمّم في الأصل لإيقاف اعتماد وكلاء البرمجة على أوامر PowerShell البطيئة (
Get-ChildItem -RecurseوSelect-String) وتقليل استهلاك التوكنز التراكمي. يجمع بين فهرس NTFS الفوري في أداةEverythingوسرعةRipgrep، مع مخرجات مجمّعة حسب الملف، واستخراج دقيق لنطاقات الدوال والكلاسات بدون أي مكتبات npm خارجية.
Table of Contents
Related MCP server: DeskTether MCP Server
Why fast-indexer-mcp Exists (The Idea)
AI coding agents on Windows historically burn huge amounts of time and context tokens during codebase exploration for three structural reasons:
Slow, noisy shell fallbacks: Without structured search tools, agents default to
Get-ChildItem -Recurse,dir /s,Select-String, orfindstr /sinside PowerShell—crawlingnode_modules,.git, and build outputs, hitting quoting errors, and dumping thousands of raw path lines into conversation history.Native search tool gaps across agent surfaces: Some modern agent runtimes (for example, Antigravity 2.0 App's core toolset) expose file reading/editing and terminal execution (
read_file,write_file,edit_file,run_command) without built-ingreporglobtools. Removing a dedicated search MCP forces the agent right back to slow terminal loops.Cumulative token inflation across turns: Every verbose tool response stays in conversation history and gets re-sent on subsequent turns. Repeating a full Windows path on 50 matching lines or returning entire 500-line files just to inspect one function compounds token cost exponentially.
fast-indexer-mcp solves this with a single-file Vanilla Node.js (>=18) server speaking MCP 2024-11-05 over JSON-RPC 2.0 stdio, orchestrating native OS-level binaries (es.exe + rg.exe) behind 5 compact, agent-first tools.
What Changed in v3.0 & Verified Benchmarks
All figures below were measured directly via JSON-RPC 2.0 stdio harness tests against v2.2 vs. v3.0:
Metric / Capability | v2.2 Baseline | v3.0 Result | Impact |
Total Schema Footprint (5 tools) |
|
| -28.1% schema size |
Eager Prefix Footprint (Top 3 tools) |
|
| 0 extra lazy round-trips for daily search |
Lazy Structural Tools (2 tools) | Loaded on demand |
| Loaded only when outlining/scoping code |
Grouped Search Output ( |
|
| -34.9% output chars on single-file search; |
Arabic / Unicode File Locate | Corrupted ( | Intact UTF-8 via | Full Unicode fidelity + |
Everything | 24-concurrent | 0 | Size + UTC mtime returned directly from MFT |
Junk Directory Filtering | Leaked |
| Prevents third-party noise in results |
Multi-Language Scope Extraction | Indent-only regex | Balanced brace / Python indent / Smali scanner |
|
Key v3.0 Upgrades
Everything UTF-8
-export-jsonPipeline: Replaced-export-txt+ diskbatchStats()with-export-json(-size-format 1 -date-format 3 -no-digit-grouping). Fixes Windows OEM codepage corruption on Arabic/Unicode filenames, marks directories cleanly (/+[DIR ...]), and excludesnode_modules,.git,dist,build,.next,__pycache__,.venv, andtargetby default (exclude_junk: true).Grouped Search & Outline Payloads:
instant_content_searchandproject_symbol_outlineprintRoot: <dir>once and group matches under## <relative/path>instead of repeating the full drive path on every line.Hidden & Gitignored Escape Hatches: Added
include_hiddenandno_ignoretoinstant_content_searchso agents can inspect.env,.github/, or ignored build logs intentionally instead of silently receiving zero results.Clean Error & Early-Stop Semantics: Added
stderrcapture (isError: trueonrgexit code>= 2instead of silent empty matches) and explicitstoppedEarlytracking so killingrgatmax_matchesnever emits false partial-failure warnings.Accurate Scope Extraction (
full_scope): Replaced the naive indent heuristic inast_context_searchwithfindEnclosingScope()+stripStringsAndComments()supporting brace-delimited languages, Python indentation, and Android.smali(.method...end method), withfull_scope: truereturning the full enclosing block up to 120 lines.
Agent Search Architecture
Agents using fast-indexer-mcp should follow a strict narrowing funnel—moving from disk/folder discovery to file filtering, then symbol outlines, and only reading targeted line ranges last.
flowchart TD
Q["Agent Needs Code or File Context"] --> KnowPath{"Know target file or folder?"}
KnowPath -- "No (file/folder name)" --> Loc["instant_file_locate (Eager: Everything MFT -> Ripgrep)"]
KnowPath -- "Single folder contents" --> Dir["instant_directory_list (Eager: non-recursive + token est.)"]
KnowPath -- "Yes (need text/symbol inside)" --> Broad{"Broad query across repo?"}
Broad -- "Yes" --> FilesOnly["instant_content_search (output_mode='files_only')"]
FilesOnly --> Grouped["instant_content_search (output_mode='matches', grouped by file)"]
Broad -- "No (targeted dir/file)" --> Grouped
Grouped -. "Missing dotfiles or ignored files?" .-> Flags["Retry with include_hidden=true or no_ignore=true"]
Grouped --> SymNeed{"Need full file map or function body?"}
SymNeed -- "Map classes/functions" --> Outline["project_symbol_outline (Lazy: ~150 tok outline)"]
SymNeed -- "Inspect one symbol's block" --> Scope["ast_context_search (Lazy: full_scope=true, <=120 lines)"]
Outline --> Scope
Scope --> Read["read_file (StartLine..EndLine surgical slice)"]
Loc --> Read
Dir --> ReadEager vs. Lazy Tool Split (Antigravity 2.0 Optimization)
Antigravity 2.0 supports Lazy MCP Loading by default and selective "eager": true overrides per tool in mcp_config.json:
Eager (
instant_file_locate,instant_content_search,instant_directory_list): Registered upfront (~766 tokens total) so the agent invokes them in 1 turn without wasting an extraread_fileturn to inspect JSON schemas on disk—and is never tempted to fall back to PowerShell.Lazy (
project_symbol_outline,ast_context_search): Zero per-turn prompt tax until the agent specifically needs structural symbol mapping or enclosing block extraction.
See AGENTS.md for the condensed agent execution rules and engineering invariants.
Tool Reference
Tool | Loading | Purpose | Key Parameters | Typical Latency |
| Eager | Disk-wide or scoped file/folder lookup via Everything MFT + Ripgrep fallback |
|
|
| Eager | Ripgrep PCRE2 regex/literal search with grouped file output |
|
|
| Eager | Non-recursive folder listing with sizes, relative ages, symlinks, and token total |
|
|
| Lazy | PCRE2 symbol index grouped by file (JS/TS, Python, Go, Rust, Java, Kotlin, C/C++, C#, Smali) |
|
|
| Lazy | Lexical brace/indent/Smali enclosing scope extractor around a symbol |
|
|
Installation & Setup (Windows + Antigravity)
Prerequisites
Node.js
>= 18.0.0(node -v).Ripgrep (
rg.exe): Install viawinget install BurntSushi.ripgrep.MSVC(recommended path:C:\tools\ripgrep\rg.exeor onPATH).Voidtools Everything + CLI (
es.exe): Optional but strongly recommended for whole-disk millisecond file lookup. Ensure Everything is running in the background and placees.exeatC:\tools\es.exe(or onPATH).
Clone & Verify
git clone https://github.com/Akramx15/fast-indexer-mcp.git C:\tools\fast-indexer-mcp
cd C:\tools\fast-indexer-mcp
npm run checkConfigure Antigravity / MCP Clients
Copy the ready-made portable templates from templates/:
MCP Server Config (with selective
eager: true):templates/mcp_config.example.json→ merge into~/.gemini/config/mcp_config.json.Auto-Allow Permissions (all 5 tools):
templates/antigravity_permissions.example.json→ merge intouserSettings.globalPermissionGrants.allowin~/.gemini/config/config.json.Always-On Rule (ban PowerShell scans):
templates/zero_powershell_indexing.rule.md→ copy to~/.gemini/config/rules/zero_powershell_indexing.md.Agent Skill:
templates/fast-local-indexing.SKILL.md→ copy to~/.gemini/config/skills/fast-local-indexing/SKILL.md.
Engineering Post-Mortem: What Didn't Work, Rejected Ideas & Limitations
Transparency matters more than hype. Below is everything we tested, hit, rejected, or deliberately left out while building v3.0.
1. Platform Quirks & Bugs Discovered During Testing
es.exe -jsonstdout corrupts Arabic & Unicode: Spawninges.exe -jsonfrom Node.js and readingstdoutpasses text through the Windows OEM console codepage, turningأدواتinto?????. Using-export-json <tempFile>writes clean UTF-8 JSON to disk and preserves Arabic/Unicode paths reliably.es.exe -timeout 5000causes a 5-second hang +Error 8: OnES 1.1.0.38, passing-timeout 5000causedes.exeto block for 5,000 ms and fail withError 8: Everything IPC not foundeven while Everything was running, forcing a slow Ripgrep fallback. Removing-timeoutrestored<110 msexecution, while Node'sarmTimeout()still prevents hangs.Ripgrep
-g !node_modules/**silently fails on absolute paths: Whenrg.exeruns from one working directory against an absolutetarget_pathelsewhere,-g !node_modules/**fails to match nested paths and leaksnode_modulesfiles. Switching all exclusions to!**/node_modules/**fixed this across both locate and symbol outline.Non-NTFS volumes &
.gitignoreblindness in Everything: Everything only indexes NTFS/ReFS volumes and has no.gitignoreawareness.fast-indexermitigates this by warning when an indexed drive check fails (driveIndexed()) and injecting explicit!path:\<junk>\exclusions unlessexclude_junk: falseor the user explicitly targets that directory.
2. Alternatives Considered & Why We Rejected Them
A. Why we did NOT integrate ast-grep (sg.exe) or external Tree-sitter binaries
We evaluated ast-grep (0.51.3 via winget) and rejected integrating it into fast-indexer-mcp for 4 concrete reasons:
Zero
.smalisupport: Reverse-engineering workflows rely heavily on Android.smalifiles, whichast-grep/ standard Tree-sitter grammars do not parse cleanly.Brittle on half-edited code: Agents frequently inspect files containing temporary syntax errors mid-refactor; strict AST parsers either drop error nodes or fail to match partial signatures, whereas a lexical brace/indent scanner stays resilient.
Per-language AST query maintenance: Supporting 10+ languages with Tree-sitter node kinds adds complex grammar mappings or native binary build chains (
node-gyp/WASM loading overhead).Spawn overhead: Launching an external AST binary per query adds process startup latency compared to
0–3 msin-process lexical scanning inside Node.
B. Why we did NOT add Vector Embeddings / Local Semantic RAG
Semantic embedding MCPs require model downloads, background chunking/indexing warm-up, disk/RAM overhead, and risk returning stale or approximate matches.
For local repos under ~50k lines, exact MFT lookup + Ripgrep PCRE2 + targeted symbol scopes are deterministic, zero-warmup, and faster.
C. Should You Use fast-indexer-mcp or Serena MCP (or Both)?
Use the right tool for the job—and if another server solves a task better, switch to it. fast-indexer-mcp and LSP-backed servers like Serena MCP solve different layers of the problem:
Dimension |
|
| Built-in Shell ( |
Warm-up Time | 0 ms (stateless, instant start) | Requires spawning/indexing per-language LSP servers | 0 ms, slow per-call crawl |
Whole-Disk Windows File Search | Yes ( | Workspace-scoped only | Very slow |
Configs, Logs, Compressed ( | Yes ( | Limited to supported LSP languages | Partial / brittle quoting |
Cross-File Type Resolution ( | No (text & single-file scope only) | Yes (compiler-grade semantic AST/types) | No |
Token Footprint | Very low (~766 eager tokens; grouped output) | Moderate-High (large tool surface + LSP state) | Very high (noisy dumps) |
Practical rule: Use fast-indexer-mcp as your lightweight daily search/navigation engine; add Serena MCP alongside it (or instead of it) when working inside massive typed repositories (TypeScript, Java, C++, Rust, Python) where compiler-accurate cross-file reference graphs and safe symbol renaming justify LSP startup overhead.
D. Why we kept exactly 5 tools (No repo_map or multi_grep bloat)
Expanding from 5 to 8–10 overlapping tools increases upfront schema tokens and causes LLM tool-selection hesitation. Grouping outputs and supporting files_only + full_scope inside 5 orthogonal tools delivered better token savings without diluting tool choice.
3. Known Limitations (Honest Negatives)
Windows-centric acceleration:
es.exeis Windows-only. Running on Linux/macOS works viarg.exefallback, but without disk-wide NTFS MFT indexing.Lexical scope scanner ≠ full parser:
ast_context_searchhandles normal brace-delimited code, Python indentation, and Smali methods, but single-line functions (foo(x) { return x; }matched inside the same line) or unusual multi-line preprocessor/macro blocks may fall back tocontext_radiuslines instead of a completefull_scope.Regex-based
project_symbol_outline: PCRE2 line matching is fast (~21 ms) and language-agnostic, but multi-line function headers or non-standard formatting can be missed, and non-brace/non-keyword declarations may not appear.Requires Everything background service for MFT speed: If Everything is closed or indexing a non-NTFS/network drive,
instant_file_locatefalls back to directory-scopedrg --files.Default
cwdtrap when omittingtarget_dir/target_path: If an agent omits the path argument when no workspace is set, search runs in the MCP server's own working directory. v3.0 always printsRoot: <path>/in <path>in headers so the agent immediately catches path mistakes.Eager loading cost: Marking the top 3 tools
"eager": trueadds3,065 chars(~766 tokens) to the static system prompt prefix—still smaller than a single extra lazy schema-read turn, and cached across turns.
License
Available Tools
5 toolsast_context_searchB
Extract enclosing function/method/class scope around a symbol inside one file (supports full_scope).
Inputs: pattern (required), file_path (required), full_scope, context_radius.
instant_content_searchB
Search file contents with ripgrep; groups matches by file. Use output_mode="files_only" first on broad queries.
Inputs: pattern (required), file_glob, no_ignore, is_literal, +9 more.
instant_directory_listA
List immediate files and subfolders with sizes, ages, and token total (non-recursive).
Inputs: dir_path, max_results, show_hidden.
instant_file_locateB
Locate files/folders by name or glob via Everything index + ripgrep fallback.
Inputs: query (required), fuzzy, sort_by, target_dir, +4 more.
project_symbol_outlineA
List functions, classes, and types with exact line numbers grouped by file (~150 tok).
Inputs: target_path (required), file_glob, max_symbols, symbol_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The five tools cover distinct retrieval modes: file-name location, content search, non-recursive directory listing, project-wide symbol outline, and single-file AST scope extraction. The only mild overlap is between project_symbol_outline and ast_context_search, but their different granularity (project outline vs enclosing scope) is clear enough.
All names use snake_case with a subject_action pattern, and the three instant_* tools are internally consistent. The two AST/symbol tools drop the instant_ prefix, which is a minor stylistic deviation rather than a confusing one.
Five tools is well-scoped for a focused code-index/search server, with each tool covering a distinct retrieval capability. There is no obvious filler or missing core operation at this scale.
The surface covers file discovery, content search, directory browsing, symbol outlining, and AST context, which fits the stated indexing purpose well. A file-content retrieval tool is arguably missing, but content search plus AST extraction covers most practical workflows.
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to work on Windows through persistent PowerShell sessions, surgical file editing, code search, background job execution, and web research while avoiding context-heavy GUI automation.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely perform file operations, run terminal sessions, manage processes, search content, and inspect Git repositories on a local Windows machine under configurable permission and audit controls.Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents on Windows to perform millisecond-level file searches across entire drives via voidtools Everything, with path scoping, noise filtering, and token-efficient output.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely work on Windows developer workstations through governed, project-scoped filesystem access, durable command execution, bounded search, Windows operations, and resource-aware runtime controls. It also supports optional developer-context backends for code navigation, repository graph exploration, and memory retrieval.1Apache 2.0