File Search MCP logo

File Search MCP

by Kurogoma4D

File Search MCP is a specialized Model Context Protocol (MCP) server built with Rust for full-text search within a filesystem. It leverages the Tantivy search engine to efficiently index and search text files.

View on GitHub

Last updated: N/A

What is File Search MCP?

File Search MCP is a tool that provides powerful full-text search capabilities for text files in a specified directory. It implements the Model Context Protocol (MCP), making it compatible with AI assistants and other systems that support the protocol.

How to use File Search MCP?

To use File Search MCP, clone the repository, build the executable, and add the executable path to your MCP settings in AI assistants like Cursor or Claude. The server indexes text files in the specified directory and provides search and file content reading tools.

Key features of File Search MCP

  • Full-text search

  • File content reader

  • Smart file detection

  • MCP integration

  • In-memory indexing

  • Score-based results

Use cases of File Search MCP

  • Searching codebases for specific functions or variables

  • Finding relevant documents within a large collection of text files

  • Integrating full-text search into AI assistants and other MCP-compatible systems

  • Quickly locating information within project documentation

  • Analyzing log files for specific events or errors

FAQ from File Search MCP

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a standard that allows different applications and AI models to communicate and share context information.

What is Tantivy?

Tantivy is a full-text search engine library written in Rust, used by File Search MCP for indexing and searching text files.

How does File Search MCP handle binary files?

File Search MCP automatically detects and skips binary files during the indexing process.

What parameters does the Search Tool require?

The Search Tool requires the 'directory' (path to the directory to search) and 'keyword' (keyword to search for) parameters.

What parameters does the File Content Reader Tool require?

The File Content Reader Tool requires the 'file_path' (path to the file to read) parameter.