Everything Search MCP server

Integrates with the Everything Search Engine to enable file search and management across large file systems using advanced query options and customizable result formatting.
Back to servers
Provider
Ali Khawaher
Release date
Dec 20, 2024
Language
TypeScript
Stats
6 stars

This MCP server provides integration with the Everything Search Engine, allowing you to perform powerful file searches directly through the Model Context Protocol. By connecting your model to this server, you can search your file system with advanced filtering and sorting options.

Prerequisites

  • Node.js 16 or higher
  • Everything Search Engine with HTTP Server enabled

Setting Up Everything Search Engine

Before using the MCP server, you need to configure the Everything Search Engine:

  1. Open Everything Search
  2. Go to Tools > Options > HTTP Server
  3. Enable HTTP Server
  4. Set the HTTP Server port to 8011 (default port used by this MCP server)
  5. Click OK to save changes

Note: If you need to use a different port, you'll need to modify the port in the server configuration.

Installation

Install and build the server with the following commands:

npm install
npm run build

Usage

The server provides a single tool through MCP called search. Here's how to use it:

use_mcp_tool:
- server_name: everything-search
- tool_name: search
- arguments:
  {
    "query": "search string",          // Required: Text to search for
    "scope": "C:",                     // Optional: Search scope (default: C:)
    "caseSensitive": false,            // Optional: Match case
    "wholeWord": false,                // Optional: Match whole words only
    "regex": false,                    // Optional: Use regular expressions
    "path": false,                     // Optional: Search in paths
    "maxResults": 100,                 // Optional: Max results (1-1000, default: 100)
    "sortBy": "name",                  // Optional: Sort by name/path/size/date_modified
    "ascending": true                  // Optional: Sort direction
  }

Example Searches

Basic File Search

Search for all text files and return the first 5 results:

{
  "query": "*.txt",
  "maxResults": 5
}

Advanced Search with Filters

Search for the whole word "test" in the C:\Users directory, case-sensitive, with results sorted by date modified in descending order:

{
  "query": "test",
  "scope": "C:\\Users",
  "caseSensitive": true,
  "wholeWord": true,
  "maxResults": 10,
  "sortBy": "date_modified",
  "ascending": false
}

Regex Search in Paths

Search for JavaScript files using regular expressions in file paths:

{
  "query": ".*\\.js$",
  "regex": true,
  "path": true,
  "maxResults": 5
}

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later