centurion6x
MCP Servercenturion6xpublic

mcp filesystem

一个基于 Python 的简单 MCP 服务器,通过 MCP 协议向 AI 模型提供文件系统操作功能。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

一个基于 Python 的简单 MCP 服务器,通过 MCP 协议向 AI 模型提供文件系统操作功能。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

mcp-filesystem

The mcp-filesystem is a simple Python-based MCP server that exposes filesystem operations to AI models via the MCP protocol. It currently provides two core functions:

  • Listing files in a directory
  • Reading the contents of a file

Usage

The handler runs as an MCP service that communicates via standard input/output. It can be integrated into any system that implements the MCP protocol.

Available Tools

list_files(path: str) -> list

Lists all files in the specified directory.

Parameters:

  • path: Relative path from the home directory

Returns:

A list of filenames in the directory

Errors:

Raises an error if the path is not a valid directory

read_file(path: str) -> str

Reads the contents of the specified file.

Parameters:

path: Relative path from the home directory

Returns:

The contents of the file as a string

Errors:

Security

Raises an error if the path is not a valid file.

All paths are resolved relative to the user's home directory The component performs validation to ensure only directories are listed and only files are read.

Setting Up

Dependencies

Install the FastMCP server

pip install mcp

Using a python environment is recommended.

Configure agent: using Claude Desktop

  • Open the Settings menu from the tool bar or use the shortcut Ctrl+,.

  • Navigate to Developer tab and click Edit Config. This will open the parent directory of the claude_desktop_config.json file in the file explorer.

  • Add the following to the claude_desktop_config.json file. If it does not exist create it.

{
  "mcpServers": {
    "filesystemHandler": {
      "command": "<absolute path to python executable>",
      "args": ["<absoulet path to>/mcp-filesystem/filesystem-handler.py"]
    }
  }
}

Then exit and reopen the Claude Desktop app.

Note

The tool is in development and more file system tools are incoming with the goal of enabling the agent to fully handle coding and other tasks similiar to copilot.

Quick Start

1

Clone the repository

git clone https://github.com/centurion6x/mcp-filesystem
2

Install dependencies

cd mcp-filesystem
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownercenturion6x
Repomcp-filesystem
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation