
MCP-Filesystem
MCP -Server (Modellkontextprotokoll) mit einer Ressource für jede Datei in einem Arbeitsbereich
1
Github Watches
0
Github Forks
0
Github Stars
MCP Filesystem
A Model Context Protocol (MCP) server that exposes resources for each file in a working directory and sends change notifications.
Status
⚠️ Pre-beta Quality ⚠️
"It works on my machine". Issues are welcome ❤️
Features
- Resources: Creates one MCP resource for each file in your workspace
-
Gitignore Support: Respects
.gitignore
rules - Change Notification: Detects file changes, additions, and deletions
- MIME Type Detection and Encoding Handling: Identifies file types and handles various text encodings
Setup
Install Go: Follow instructions at https://golang.org/doc/install
Fetch or update this server:
go install github.com/isaacphi/mcp-filesystem@latest
Add the following to your client configuration (located at ~/Library/Application Support/Claude/claude_desktop_config.json
for Claude Desktop):
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem",
"args": ["--workspace", "/path/to/your/repository"]
}
}
}
Replace /path/to/your/repository
with the absolute path to your project directory.
Usage
Your client will be able to access and reference all non-ignored files in your repository as MCP resources. Each file is registered as a separate resource with appropriate MIME type detection.
Client Requirements
Your client needs to support the following MCP features:
- Resource Listing: The ability to list and access resources exposed by the server
- Change Notifications: Support for receiving
notifications/resources/list_changed
events - Resource Content Access: Ability to request and render resource content with appropriate MIME types
About
This project uses:
- mark3labs/mcp-go for MCP communication
- fsnotify for file system event monitoring
-
go-gitignore for parsing
.gitignore
files
Development
Clone the repository:
git clone https://github.com/isaacphi/mcp-filesystem.git
cd mcp-filesystem
Install dependencies:
go mod download
Build:
go build
Configure you client to use your local build:
{
"mcpServers": {
"filesystem": {
"command": "/full/path/to/your/mcp-filesystem/mcp-filesystem",
"args": ["--workspace", "/path/to/repository"],
"env": {
"DEBUG": "1"
}
}
}
}
Feedback
Please submit issues with as many details as you can.
Set the DEBUG
environment variable to enable verbose logging:
"env": {
"DEBUG": "1"
}
Features on my radar
- Resources for each file in workspace
- .gitignore support
- Change notifications
- Standardize MCP protocol use to work with more clients (Claude Desktop)
- Configurable support for line numbers
- Resource update subscriptions
- Additional ignore patterns (beyond
.gitignore
) - Debounced notifications for high-volume file changes
-
info
,create
,edit
, anddelete
tools
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Advanced software engineer GPT that excels through nailing the basics.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
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.
Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.
Fair-Code-Workflow-Automatisierungsplattform mit nativen KI-Funktionen. Kombinieren Sie visuelles Gebäude mit benutzerdefiniertem Code, SelbstHost oder Cloud, 400+ Integrationen.
🧑🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.
Reviews

user_hsVBaPsO
I've been using the mcp-filesystem by isaacphi, and it's been a game-changer for managing my file systems. The seamless integration and user-friendly interface make it an essential tool. Highly recommend checking it out! You can find more details at the official GitHub link: https://github.com/isaacphi/mcp-filesystem.