everything-mcp-server

everything-mcp-server

Enables instant file searches on Windows using Everything's native SDK, supporting advanced filters, duplicate detection, and content search through MCP tools.

Category
访问服务器

README

Everything MCP Server

License: MIT Node.js TypeScript

A Model Context Protocol (MCP) server that provides instant file search capabilities using Everything's native SDK. This server integrates Everything's powerful search engine with AI tooling, enabling lightning-fast file system searches through the MCP interface.

Features

  • 🔍 Instant File Search: Leverage Everything's instant indexing for near-instantaneous file searches
  • 🎯 Advanced Filtering: Search by path, extension, size, date modified, and more
  • 🔄 Duplicate Detection: Find duplicate files across your system
  • 📄 Content Search: Search within file contents (requires Everything content indexing)
  • High Performance: Direct API access through native SDK integration
  • 🛡️ Read-Only: Safe, non-destructive file system access

Tools Provided

1. search_files

Basic file search with regex and case sensitivity options.

Parameters:

  • query (string): Search query for file names
  • maxResults (number, optional): Maximum results to return (default: 100)
  • matchCase (boolean, optional): Enable case-sensitive search
  • matchWholeWord (boolean, optional): Match whole words only
  • regex (boolean, optional): Enable regular expression search

2. search_files_advanced

Advanced search with comprehensive filtering options.

Parameters:

  • query (string): Search query for file names
  • path (string, optional): Limit search to specific path
  • extension (string, optional): Filter by file extension (e.g., 'txt', 'pdf')
  • size (string, optional): Filter by file size (e.g., '>1mb', '<100kb', '1gb..2gb')
  • dateModified (string, optional): Filter by date modified (e.g., 'today', 'yesterday', 'thisweek', '2024')
  • maxResults (number, optional): Maximum results to return (default: 100)
  • matchCase (boolean, optional): Enable case-sensitive search
  • matchWholeWord (boolean, optional): Match whole words only
  • regex (boolean, optional): Enable regular expression search
  • sortBy (enum, optional): Sort results by field (name_asc, name_desc, path_asc, path_desc, size_asc, size_desc, date_asc, date_desc)

3. find_duplicates

Find duplicate files by filename.

Parameters:

  • filename (string): Filename to search for duplicates
  • path (string, optional): Limit search to specific path
  • maxResults (number, optional): Maximum results to return (default: 50)

4. search_content

Search for text content within files.

Parameters:

  • content (string): Text content to search for within files
  • fileTypes (string, optional): Limit to specific file types (e.g., 'txt;doc;pdf')
  • path (string, optional): Limit search to specific path
  • maxResults (number, optional): Maximum results to return (default: 50)

Prerequisites

  1. Everything Application: Must be installed and running

  2. Node.js: Version 18+ with ES module support

  3. Windows OS: Required for Everything SDK compatibility

Installation

  1. Clone the repository:
git clone https://github.com/peterparker57/everything-mcp-server.git
cd everything-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your MCP settings file:

{
  "mcpServers": {
    "everything": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": ["path/to/everything-mcp-server/build/index.js"],
      "disabled": false,
      "env": {},
      "alwaysAllow": [
        "search_files",
        "search_files_advanced",
        "find_duplicates",
        "search_content"
      ]
    }
  }
}

Usage Examples

Basic File Search

Search for: "msbuild.exe"
Options: Case sensitive, max 50 results

Advanced Search with Filters

Query: "*.pdf"
Path: "C:\\Documents"
Size: ">1mb"
Date Modified: "thisweek"
Sort: "size_desc"

Find Duplicates

Filename: "config.json"
Path: "C:\\Projects" (optional)

Content Search

Content: "function main"
File Types: "js;ts;py"
Path: "C:\\Code" (optional)

Architecture

Technology Stack

  • Language: TypeScript
  • Framework: MCP SDK (@modelcontextprotocol/sdk)
  • FFI Library: koffi (for native DLL integration)
  • Module System: ES modules
  • Target: Everything SDK (Windows file search utility)

Key Components

  1. Main Server (src/index.ts): Core MCP server implementation
  2. Everything SDK: Native Windows DLLs for file search
  3. Build System: TypeScript compilation to ES modules
  4. Configuration: Package.json with ES module support

Development

Building

npm run build

Testing

Start the server directly to test:

node build/index.js

Project Structure

everything-mcp-server/
├── src/
│   └── index.ts          # Main server implementation
├── EverythingSDK/        # Everything native SDK files
│   └── dll/
│       ├── Everything32.dll
│       └── Everything64.dll
├── build/                # Compiled JavaScript output
├── package.json          # Project configuration
├── tsconfig.json         # TypeScript configuration
└── README.md            # This file

Troubleshooting

"Everything search client is not running"

  • Start Everything application
  • Ensure it's not running in portable mode without service

"Connection closed" MCP error

  • Check that build directory exists and contains index.js
  • Verify Node.js path in MCP configuration
  • Ensure Everything application is running

ES Module errors

  • Verify package.json has "type": "module"
  • Check import statements use .js extensions
  • Ensure koffi is imported as default export

Performance Notes

  • Everything indexes files instantly, searches are near-instantaneous
  • Content search requires Everything to have content indexing enabled
  • Large result sets are automatically limited (configurable per tool)
  • Direct API access provides better performance than command-line interface

Security Considerations

  • Server provides read-only file system access through Everything
  • No file modification capabilities
  • Respects Everything's own security and indexing settings
  • Content search limited to files Everything has indexed

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Related Projects

  • MCP SDK - TypeScript SDK for Model Context Protocol
  • Everything - The file search utility this server integrates with

Note: This is a Windows-specific MCP server that requires the Everything application to be installed and running. For cross-platform file search solutions, consider other MCP servers or file search tools.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选