AI File Assistant MCP
MCP server providing AI-powered file operations including read, write, edit, search, and file management via Model Context Protocol. Also includes a Flask web app with file manager and user admin.
README
AI File Assistant MCP Server
An MCP (Model Context Protocol) server that provides AI-powered file operations: read, write, search, edit, and manage files.
Also includes a Flask web app with a full file manager, user management, and admin panel.
Features
MCP Server (server.py)
- Read files with line numbers
- Write files with automatic directory creation
- Edit files via exact string replacement
- Search file contents using regex
- Glob file patterns for discovery
- List directories
- Move files
- Copy files
- Delete files
- Get file metadata
Web App (app.py)
- File Manager - Browse, upload, download, preview, search, and delete files via browser
- File Preview - View text, images, audio, and video files inline
- Search - Search file names and content directly from the web UI
- User Authentication - Register, login, profile management
- Admin Panel - Manage users (activate/deactivate, promote, delete)
- Activity Dashboard - Charts showing daily activity and action breakdown
- File Stats - Track file count and storage usage per user
- Rate Limiting - Login brute force protection
- Drag & Drop Upload - Upload multiple files with drag and drop
Installation
pip install -r requirements.txt
Configuration
Copy .env (already provided) and customize:
| Variable | Default | Description |
|---|---|---|
SECRET_KEY |
(auto-generated) | Flask session secret key |
ADMIN_PASSWORD |
admin123 |
Default admin password |
ADMIN_EMAIL |
admin@fileassistant.local |
Default admin email |
FLASK_PORT |
5000 |
Web server port |
UPLOAD_FOLDER |
./uploads |
File storage directory |
MAX_UPLOAD_SIZE |
50 |
Max upload size in MB |
Usage
MCP Server (stdio)
python server.py
For development mode with MCP Inspector:
python server.py dev
Web App
python app.py
Open http://localhost:5000 in your browser.
MCP Client Example
python client.py
Testing
python tests.py
Default Admin Credentials
- Username: admin
- Password: admin123
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.