Filesystem MCP π
Node.js Model Context Protocol (MCP) server providing secure, relative filesystem access for AI agents like Cline/Claude.
Tabeeh
README
Filesystem MCP π
Welcome to the Filesystem MCP repository! This project provides a Node.js Model Context Protocol (MCP) server designed to offer secure, relative filesystem access for AI agents such as Cline and Claude.
Table of Contents
Features β¨
- Secure Access: Ensures that AI agents interact with the filesystem in a safe manner.
- Relative Paths: Simplifies the process of accessing files without needing absolute paths.
- Support for AI Agents: Specifically designed to work with Cline and Claude.
- Built with Node.js: Utilizes the power of Node.js for efficient server-side operations.
- TypeScript Support: Offers type safety and improved developer experience.
Installation βοΈ
To get started with the Filesystem MCP server, follow these simple steps:
-
Clone the Repository:
git clone https://github.com/Tabeeh/filesystem-mcp.git cd filesystem-mcp -
Install Dependencies: Make sure you have Node.js installed. Then run:
npm install -
Download the Latest Release: You can find the latest release here. Download the appropriate file and execute it.
Usage π
To start the server, run the following command:
npm start
Example Configuration
You can configure the server by modifying the config.json file. Hereβs an example configuration:
{
"port": 3000,
"secure": true,
"allowedAgents": ["Cline", "Claude"]
}
Making Requests
Once the server is running, you can make requests to access the filesystem. Hereβs an example using curl:
curl -X GET http://localhost:3000/files/path/to/your/file
Error Handling
The server returns appropriate HTTP status codes and messages for various error scenarios. For example:
- 404 Not Found: The requested file does not exist.
- 403 Forbidden: Access to the file is denied.
API Documentation π
The Filesystem MCP server exposes a simple API for interacting with the filesystem. Here are the main endpoints:
GET /files/{path}
Retrieves the contents of a file at the specified relative path.
-
Parameters:
path: The relative path to the file.
-
Response:
200 OK: Returns the file contents.404 Not Found: File does not exist.403 Forbidden: Access denied.
POST /files/{path}
Creates or updates a file at the specified relative path.
-
Parameters:
path: The relative path to the file.
-
Body:
content: The content to write to the file.
-
Response:
201 Created: File created successfully.400 Bad Request: Invalid request.
Contributing π€
We welcome contributions! If youβd like to help improve the Filesystem MCP, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature - Make your changes.
- Commit your changes:
git commit -m "Add some feature" - Push to the branch:
git push origin feature/YourFeature - Open a pull request.
License π
This project is licensed under the MIT License. See the LICENSE file for details.
Contact π«
For any questions or feedback, feel free to reach out:
- Author: Your Name
- Email: your.email@example.com
For the latest updates, releases, and documentation, visit our Releases section.
Happy coding! π
Recommended Servers
Excel MCP Server
A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
Crawlab MCP Server
Image Generator MCP Server
A TypeScript-based MCP server that generates images using OpenAI's dall-e-3 model based on text prompts and saves them to a specified directory.
mcp-everything-search
This server provides: * Fast file search capabilities using Everything SDK * Windows-specific implementation * Complements existing filesystem servers with specialized search functionality
MCP Source Tree Server
Generates a JSON file tree from a specified directory's 'src' folder, adhering to '.gitignore' rules, allowing for quick project structure review in Claude.
Code MCP
An MCP server that provides tools for reading, writing, and editing files on the local filesystem.
Binary Reader MCP
A Model Context Protocol server for reading and analyzing binary files, with initial support for Unreal Engine asset files (.uasset).
Everything Search MCP Server
Provides integration with Everything Search Engine allowing powerful file search capabilities through the Model Context Protocol with advanced search options like regex, case sensitivity, and sorting.
Model Control Plane (MCP) Server
A server implementation that provides a unified interface for OpenAI services, Git repository analysis, and local filesystem operations through REST API endpoints.