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.
Before using the MCP server, you need to configure the Everything Search Engine:
Note: If you need to use a different port, you'll need to modify the port in the server configuration.
Install and build the server with the following commands:
npm install
npm run build
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
}
Search for all text files and return the first 5 results:
{
"query": "*.txt",
"maxResults": 5
}
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
}
Search for JavaScript files using regular expressions in file paths:
{
"query": ".*\\.js$",
"regex": true,
"path": true,
"maxResults": 5
}
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.
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"
]
}
}
}
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.
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.