Filesystem MCP 🌐

Filesystem MCP 🌐

Node.js Model Context Protocol (MCP) server providing secure, relative filesystem access for AI agents like Cline/Claude.

Tabeeh

File Systems
Visit Server

README

Filesystem MCP 🌐

GitHub Release Node.js

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:

  1. Clone the Repository:

    git clone https://github.com/Tabeeh/filesystem-mcp.git
    cd filesystem-mcp
    
  2. Install Dependencies: Make sure you have Node.js installed. Then run:

    npm install
    
  3. 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:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/YourFeature
    
  3. Make your changes.
  4. Commit your changes:
    git commit -m "Add some feature"
    
  5. Push to the branch:
    git push origin feature/YourFeature
    
  6. 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

Claude Code MCP

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.

Featured
Local
JavaScript
Excel MCP Server

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.

Featured
Local
Go
Crawlab MCP Server

Crawlab MCP Server

Official
Python
WASM MCP Server

WASM MCP Server

This server enables running a Model Context Protocol in a web browser with functionalities including arithmetic operations and session-based key-value storage.

Local
TypeScript
Markdownify MCP Server

Markdownify MCP Server

Converts various file types and web content to Markdown format. It provides a set of tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.

Local
TypeScript
Project Content Server

Project Content Server

An MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.

Local
TypeScript
Markdown Downloader

Markdown Downloader

An MCP server that enables users to download webpages as markdown files using r.jina.ai service, with features for configurable download directories and automatic date-stamped filenames.

Local
JavaScript
EverArt Forge MCP Server

EverArt Forge MCP Server

An advanced MCP server for Cline that leverages EverArt's AI models to generate vector and raster images, supporting flexible storage, multiple formats, and robust image generation capabilities.

Local
JavaScript
File Operations MCP Server

File Operations MCP Server

A Model Context Protocol server that enables enhanced file system operations including reading, writing, copying, moving files with streaming capabilities, directory management, file watching, and change tracking.

Local
TypeScript
Google Drive MCP Server

Google Drive MCP Server

Integrates with Google Drive to enable listing, searching, and reading files, plus reading and writing to Google Sheets.

Local
TypeScript