Local File Management MCP Server
Enables file system operations such as listing, reading, and creating files within a scoped local project directory. It provides a secure way to manage local files through standardized MCP tools built with FastMCP.
README
Local File Management MCP Server
A Model Context Protocol (MCP) server that provides file system operations (list, read, write) within a local project directory. Built with FastMCP.
Prerequisites
- Python 3.10+
fastmcppackage
Installation
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies: You can install the core package directly:
pip install fastmcp
Or install all project dependencies from the requirements file:
pip install -r requirements.txt
Configuration
The server operates within the directory containing server.py. To change the base path, modify PROJECT_BASE_PATH in server.py:
PROJECT_BASE_PATH = os.path.dirname(os.path.abspath(__file__))
Integration with Claude
Method 1: Claude Desktop App
Add this server to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"mcp-file-server": {
"command": "/path/to/your/venv/bin/python",
"args": ["/path/to/server.py"]
}
}
}
Replace /path/to/your/venv/bin/python with the absolute path to your Python interpreter, and /path/to/server.py with the absolute path to server.py.
Configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
After editing the config file, restart Claude Desktop completely for changes to take effect.
Method 2: Claude Code Extension in VS Code
If you're using the Claude Code extension in VS Code, you need to configure the MCP server through the Claude Code CLI first:
Prerequisites:
- Install the Claude Code extension in VS Code
- Install Claude Code CLI (follow the installation guide at code.claude.com)
Configuration Steps:
- Open your terminal and configure the MCP server using the Claude Code CLI:
claude mcp add mcp-file-server
When prompted, provide:
- Command:
/path/to/your/venv/bin/python - Arguments:
/path/to/server.py
Alternatively, you can manually edit the Claude Code settings file:
-
Open the Claude Code settings file:
- macOS/Linux:
~/.claude/settings.json - Windows:
%USERPROFILE%\.claude\settings.json
- macOS/Linux:
-
Add your MCP server configuration under the
mcpServerssection:
{
"mcpServers": {
"mcp-file-server": {
"command": "/path/to/your/venv/bin/python",
"args": ["/path/to/server.py"]
}
}
}
-
Restart VS Code completely (
Cmd/Ctrl+Shift+P→ "Developer: Reload Window") -
Open the Claude Code extension panel in VS Code and verify the MCP server is connected:
- Type
/mcpin the Claude Code chat to see the server status - The server should show as "connected" with available tools
- Type
Note: The Claude Code extension shares settings with the CLI through ~/.claude/settings.json, so MCP servers configured via CLI will automatically be available in the VS Code extension.
Finding your Python path:
which python # On macOS/Linux
where python # On Windows
Available Tools
| Tool | Description |
|---|---|
list_project_files |
List files in the project directory (optional sub_folder parameter) |
read_file_content |
Read contents of a file (filename parameter) |
create_new_file |
Create a new file (filename and content parameters) |
All operations are scoped to the project directory. File operations include standard path validation and error handling.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
E2B
Using MCP to run code via e2b.