Cover image
Try Now
2025-03-25

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Filesystem MCP Server

An MCP server that provides resources for accessing file metadata and content.

Overview

The Filesystem MCP Server is a Model Context Protocol (MCP) server that provides resources for accessing file metadata and content. It allows clients to retrieve information about files and directories, as well as read the content of files.

Features

  • Get metadata for files and directories (name, path, size, timestamps, permissions, etc.)
  • Read the content of text and binary files
  • Automatic MIME type detection based on file extension
  • Comprehensive logging
  • Dependency injection using Spring Framework for better maintainability and testability

Resources

The server provides the following resources:

  • file://metadata/{path} - Get metadata for a file or directory
  • file://content/{path} - Get content of a file

For more information, see the resources documentation.

Tools

The server provides the following tools:

  • list_files - List files in a directory

For more information, see the tools documentation.

Building and Running

Prerequisites

  • Java 17 or higher
  • Maven
  • Spring Framework (automatically managed by Maven)

Building

mvn clean package

This will create an executable JAR file in the target directory.

Running

java -jar target/filesystem-mcp-1.0-SNAPSHOT-jar-with-dependencies.jar

Documentation

Architecture

The server uses a layered architecture:

  1. Configuration Layer: Spring configuration classes for dependency injection
  2. Service Layer: Core services for file system operations
  3. Resource Layer: MCP resources for exposing file system functionality
  4. Utility Layer: Utility classes for common operations

Dependency Injection

The server uses Spring Framework for dependency injection, which provides:

  • Constructor injection for better testability
  • Lifecycle management with @PostConstruct and @PreDestroy
  • Configuration classes for explicit bean definitions
  • Component scanning for automatic bean discovery

License

This project is licensed under the MIT License - see the LICENSE file for details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Message Connector Protocol )服务 , 提供了与钉钉企业应用交互的 api 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

    Reviews

    5 (1)
    Avatar
    user_yW7oxi3Z
    2025-04-16

    I've been using the mcp-server-prototype by jayessdeesea and it has significantly improved my server management processes. The clear documentation and seamless integration options make it a standout choice for developers. Highly recommend checking it out on GitHub!