FilePilot AI

FilePilot AI

Local-first MCP server for safely searching, reading, summarizing, tagging, deduplicating, and organizing local files with scoped access, read-only defaults, and dry-run plans.

Category
访问服务器

README

<div align="center">

<img src="filepilot/resources/app.png" width="112" alt="FilePilot AI logo" />

FilePilot AI

Local-first file intelligence for desktop users, scripts, and AI coding agents.

FilePilot AI helps you search, understand, tag, deduplicate, summarize, and safely organize local files. It includes a desktop app, a CLI, and a privacy-first MCP server for Claude Code, Codex, Cursor, Claude Desktop, and other agent clients.

Python Desktop MCP Search License

Version 0.8.1

<img src="docs/assets/filepilot-demo.gif" alt="FilePilot AI desktop demo" width="760" />

</div>


At A Glance

What it is Why it matters
Local-first file manager Search, preview, tag, deduplicate, and organize files without uploading an index to a cloud service.
MCP server for agents Let AI coding agents inspect only the folders you allow, with bounded reads and read-only defaults.
Preview-first organizer Generate dry-run organization plans before any files move.
Optional AI summaries Use local models or explicitly configured cloud providers for document summaries.
Desktop + CLI + MCP Start visually, automate with scripts, or expose scoped tools to agent clients.

Best For

  • Developers who want Claude Code, Codex, Cursor, or Claude Desktop to inspect local files without broad filesystem access.
  • Desktop users with messy Downloads, exports, backups, screenshots, PDFs, and duplicate files.
  • Maintainers who want a local-first file intelligence layer with tests, docs, release checks, and a clear safety model.
  • Builders looking for a practical Python/PySide6 MCP reference project that is more than a toy demo.

Why FilePilot Exists

Modern AI agents can reason about code and documents, but giving them raw access to your whole filesystem is risky. FilePilot sits between your local files and the tools that need them.

It is built around a simple promise:

  • Your files stay local by default.
  • File reads are scoped, bounded, and explicit.
  • Cleanup starts as a preview, not a destructive action.
  • AI features are optional and use only the providers you configure.
  • Agent-facing write operations require opt-in write mode, confirmation, validation, and audit logs.

What Makes It Different

Most file tools focus on either a desktop UI, a command line, or an AI demo. FilePilot deliberately connects all three:

  • The same core services power the desktop app, CLI, and MCP tools.
  • MCP access is directory-scoped instead of "let the agent browse everything."
  • Organization is plan-based, so agents can propose changes before anything moves.
  • Release assets include checksum sidecars and CI verification.
  • The repository includes issue forms, security policy, roadmap, architecture docs, and workflow prompts for contributors.

Three Ways To Use It

Layer Best for Entry point
Desktop app Visual browsing, previews, search, tags, summaries, duplicate review, and organization planning. python -m filepilot.main
CLI Repeatable scripts for scanning, searching, exports, disk usage, duplicates, and dry-run organization. python -m filepilot.cli
MCP server Safe local file tools for Claude Code, Codex, Cursor, Claude Desktop, and other MCP clients. filepilot-mcp

MCP For AI Agents

FilePilot MCP is the most agent-ready part of the project. It exposes useful file operations without handing an agent unrestricted filesystem access.

Safety concern FilePilot MCP behavior
Filesystem scope Only directories passed with --allow are accessible.
Default permissions The server starts read-only. Write-like tools require --write.
Large or sensitive reads File size and returned-character limits are enforced.
Hidden paths Dot-prefixed hidden paths are blocked unless --allow-hidden is set.
Organization changes Plans are dry-run first, saved by ID, discoverable/filterable, then applied only with confirm=True.
Auditability Write-like operations are recorded as JSONL audit events.

Current MCP tools:

server_status, scan_files, search_files, index_folder, search_index,
read_file, extract_file_text, summarize_file, suggest_tags, add_tags,
find_duplicates, propose_organization_plan, list_plans,
cleanup_plans, apply_organization_plan, undo_organization_plan,
list_workflow_templates, get_workflow_template, mcp_client_config

See docs/MCP.md for the full safety model, docs/MCP-CLIENTS.md for Claude Desktop, Claude Code, Cursor, and Codex snippets, docs/MCP-WORKFLOWS.md for built-in agent workflow templates, and docs/ARCHITECTURE.md for the project architecture.

Quick Start

Desktop App

git clone https://github.com/cuiheng511/filepilot-ai.git
cd filepilot-ai

python -m venv .venv

# Windows
.venv\Scripts\activate

# macOS / Linux
source .venv/bin/activate

pip install -r requirements.txt
python -m filepilot.main

Package installs can choose only the needed layer:

pip install "filepilot-ai[desktop]"
pip install "filepilot-ai[mcp]"

MCP Server

Install the MCP extra and allow one local folder:

pip install -e ".[mcp]"
filepilot-mcp --allow ~/Documents --read-only

Allow multiple roots when a task needs both source and target folders:

filepilot-mcp --allow ~/Downloads --allow ~/Sorted --read-only

Enable write-like tools only for trusted sessions:

filepilot-mcp --allow ~/Downloads --allow ~/Sorted --write

Minimal MCP client config:

{
  "mcpServers": {
    "filepilot": {
      "command": "filepilot-mcp",
      "args": ["--allow", "C:\\Users\\you\\Documents", "--read-only"]
    }
  }
}

CLI

# Scan a folder
python -m filepilot.cli scan ~/Documents

# Search indexed files
python -m filepilot.cli search ~/Documents "project notes"

# Find duplicate files
python -m filepilot.cli duplicates ~/Downloads

# Export an inventory report
python -m filepilot.cli export ~/Projects --format csv -o report.csv

# Preview an organization plan before moving anything
python -m filepilot.cli organize ~/Downloads ~/Sorted --dry-run --rules category date

What FilePilot Can Do

Area Capabilities
Search and indexing Local full-text search with Whoosh, SQLite metadata filtering, incremental indexing, and optional semantic re-ranking.
File understanding Text extraction for PDF, DOCX, XLSX, PPTX, Markdown, code, and plain text, with optional summaries.
Organization Preview-first organization by category, date, extension, or size, with multiple source folders, workflow stages, safety precheck, target slots, Review routing, recent history, and undo.
Duplicate cleanup Duplicate grouping with size checks, partial hashing, and full SHA-256 verification.
Tags and memory File tags, saved searches, favorites, tag cloud, and tag automation rules.
Desktop workflows File browser, previews, AI chat panel, notifications, tray support, themes, and accessibility labels.
Product guidance First-run onboarding, dashboard workspace status, organize workflow guidance, and a settings view for security and privacy boundaries.
Extensibility Extractor plugin SDK and plugin registry with safer remote-plugin checks.
Agent workflows Directory-scoped MCP tools with read limits, discoverable saved plans, write opt-in, apply/undo planning, and audit logs.

Screenshots

Dashboard File Browser
Dashboard File browser
Search Tags
Search Tags
Organize Duplicates
Organize Duplicates
AI Summary Index
AI summary Index management

Architecture

flowchart LR
    Desktop["Desktop app"] --> Core["Core services"]
    CLI["CLI"] --> Core
    MCP["MCP server"] --> Guard["Path guard"]
    Guard --> Core
    Core --> Scanner["Scanner"]
    Core --> Indexer["Whoosh + SQLite"]
    Core --> Duplicates["Duplicate finder"]
    Core --> Organizer["Organizer"]
    Core --> Tags["Tags"]
    Scanner --> Extractors["Extractors"]
    Extractors --> Summary["Summaries"]
    Summary --> Providers["Local or configured cloud AI"]
filepilot-ai/
|-- filepilot/
|   |-- ai/                  # AI providers and summarization
|   |-- core/                # Scanner, indexer, organizer, duplicates, tags, operations
|   |-- extractors/          # PDF, Markdown, code, image, Office, OCR extractors
|   |-- mcp/                 # MCP server, tools, audit log, and path safety
|   |-- ui/                  # PySide6 panels and dialogs
|   |-- cli.py               # Command-line interface
|   `-- main.py              # GUI entry point
|-- docs/                    # MCP, build, AI provider, plugin, and release docs
|-- tests/                   # Unit and UI tests
|-- scripts/                 # Build and release helpers
`-- pyproject.toml           # Package metadata and tooling

AI Providers

AI is optional. FilePilot works locally for scanning, indexing, duplicates, tags, and organization planning. When summaries or open-ended chat need a model, FilePilot can use configured local or cloud providers.

Provider Mode Default URL
Ollama Local http://localhost:11434
llama.cpp / vLLM Local http://localhost:8080
LM Studio Local http://localhost:1234
OpenAI Cloud https://api.openai.com/v1
Anthropic Cloud https://api.anthropic.com
Custom endpoint Cloud or local User-defined

See docs/AI-PROVIDERS.md for setup details.

Security And Privacy

Area Design
Local-first workflow Scanning, indexing, duplicate detection, tags, and organization planning run locally.
MCP access Agent access is limited to explicitly allowed directories.
MCP writes Write-like tools are disabled unless the server starts with --write.
MCP audit log Write-like MCP operations are recorded as JSONL audit events.
Organization apply/undo Saved organization plans require --write, confirm=True, and current allowlist validation before any move or restore.
Bounded reads MCP reads enforce file-size and character limits.
Optional AI Summaries can use local models or explicitly configured cloud providers.
API keys Stored with OS keyring when available, with encrypted fallback storage.
Safe deletion Duplicate cleanup uses the system recycle bin through send2trash.
Plugin installs Registry plugin names are constrained, remote entries require SHA-256 pins, and installs require confirmation.
Telemetry No analytics, tracking, or background phone-home behavior.

Development

pip install -e ".[test,dev,desktop,mcp]"
ruff check .
ruff format --check .
mypy
python -m pytest

The current test suite covers core services, UI behavior, CLI flows, MCP security, MCP tools, and release helpers.

Documentation

Document Description
docs/MCP.md MCP server setup, safety model, tools, and troubleshooting.
docs/MCP-CLIENTS.md Client snippets for Claude Desktop, Claude Code, Cursor, and Codex.
docs/MCP-WORKFLOWS.md Built-in agent workflow templates and MCP client config helper notes.
docs/ARCHITECTURE.md System map, data flow, core services, MCP safety boundary, and extension points.
docs/ROADMAP.md Near-term quality track, 0.8.x MCP verification, 0.9 desktop confidence work, larger refactors, and contribution ideas.
docs/USE-CASES.md Practical workflows for Downloads triage, duplicates, summaries, MCP agents, maintenance, and plugins.
docs/AI-PROVIDERS.md Local and cloud AI provider configuration.
docs/FEATURES.md Practical notes for newer desktop workflows.
docs/PLUGIN_SDK.md Extractor plugin SDK and plugin examples.
docs/BUILD.md Cross-platform packaging guide.
docs/AUTO-UPDATE.md Auto-update API and troubleshooting.
docs/PROMOTION.md Project pitches, submission copy, repository topics, and launch checklist.
RELEASING.md Release process and integrity checks.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md, keep changes focused, and include tests for behavior changes. For security-sensitive behavior, use SECURITY.md. For general help and issue context, see SUPPORT.md.

License

FilePilot AI is released under the MIT License.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选