FieldCure Filesystem Server
FreeNot checkedA secure MCP server that exposes local filesystem operations to AI clients with sandboxed access and runtime directory changes.
About
A secure MCP server that exposes local filesystem operations to AI clients with sandboxed access and runtime directory changes.
README
A secure Model Context Protocol (MCP) server that exposes local filesystem operations to AI clients. Built with C# and the official MCP C# SDK.
Features
- 17 filesystem tools: read, write, append, delete, search, copy, move, convert-to-markdown, and more
- Sandboxed access: all operations restricted to explicitly allowed directories
- MCP roots protocol: clients can change allowed directories at runtime without restarting the server
- Security hardened: path traversal prevention, symlink resolution, NTFS ADS blocking, Windows reserved name rejection
- Atomic writes: temp-file-then-rename pattern prevents data corruption
- Binary detection: automatically returns base64 for binary files, UTF-8 for text
- Built-in document parsing: supported document formats can be read directly and converted to markdown on disk
- Stdio transport: standard MCP subprocess model via JSON-RPC over stdin/stdout
Installation
dotnet tool
dotnet tool install -g FieldCure.Mcp.Filesystem
From source
git clone https://github.com/fieldcure/fieldcure-mcp-filesystem.git
cd fieldcure-mcp-filesystem
dotnet build
Requirements
- .NET 8.0 Runtime or later
Configuration
Claude Desktop
{
"mcpServers": {
"filesystem": {
"command": "fieldcure-mcp-filesystem",
"args": [
"C:\\Users\\me\\Documents",
"C:\\Projects"
]
}
}
}
VS Code
{
"servers": {
"filesystem": {
"command": "fieldcure-mcp-filesystem",
"args": [
"${workspaceFolder}"
]
}
}
}
Tools
File Operations
| Tool | Description |
|---|---|
read_file |
Read file contents (text as UTF-8, binary as base64) |
read_multiple_files |
Read multiple files at once with per-file error handling |
read_file_lines |
Read a specific range of lines |
convert_to_markdown |
Convert one supported document file into a markdown file on disk |
convert_directory_to_markdown |
Batch-convert supported document files in a directory to markdown files |
write_file |
Create or overwrite a file with atomic write |
append_file |
Append content to end of file with auto-newline |
modify_file |
Find and replace text (plain text or regex) |
copy_file |
Copy a file or directory recursively |
move_file |
Move or rename a file or directory |
delete_file |
Delete a file or directory |
Directory Operations
| Tool | Description |
|---|---|
list_directory |
List contents with type markers, sizes, and dates |
create_directory |
Create a directory recursively |
directory_tree |
Hierarchical tree view with configurable depth |
Search & Info
| Tool | Description |
|---|---|
search_files |
Find files by glob pattern |
search_within_files |
Search text content across files with line numbers |
get_file_info |
File or directory metadata |
MCP Roots Protocol
The server supports the MCP roots protocol for runtime directory changes. When the client changes roots:
- The server requests the updated roots list.
- Allowed directories are replaced entirely.
- CLI args provide the initial sandbox.
- An empty roots list means all file access is denied.
Security Model
All paths are validated through IPathValidator before any filesystem operation:
- Allowed directories define the sandbox boundary.
.and..are normalized viaPath.GetFullPath().- Symlinks must resolve within allowed directories.
- Prefix matching is directory-separator-aware.
- NTFS alternate data streams are blocked.
- Windows reserved names are rejected.
- Allowed directory updates are thread-safe.
The markdown conversion tools validate both source and output paths through the same sandbox rules. They write converted markdown directly to disk instead of returning full document text through MCP, which is usually more token-efficient than read_file plus write_file.
Project Structure
src/FieldCure.Mcp.Filesystem/
|- Program.cs
|- Security/
| |- IPathValidator.cs
| \- PathValidator.cs
|- Tools/
| |- FileOperationTools.cs
| |- DirectoryTools.cs
| \- SearchTools.cs
\- Utilities/
|- EncodingDetector.cs
\- FileSize.cs
Development
dotnet build
dotnet test
dotnet pack src/FieldCure.Mcp.Filesystem -c Release
Limitations
| Supported | Not Yet Supported |
|---|---|
| Text file read/write (UTF-8) | Non-UTF-8 encoding auto-detection |
| Binary file detection + base64 | Streaming for very large files (>100 MB) |
| Atomic writes | File watching / change notifications |
| Glob pattern search | Full-text indexing |
| Regex find-and-replace | Multi-file transactional writes |
| Symlink resolution | Cross-platform symlink creation |
| MCP roots protocol | HTTP transport |
| Document text extraction / markdown conversion for formats supported by DocumentParsers | OCR for scanned documents |
See Also
Part of the AssistStudio ecosystem.
License
Installing FieldCure Filesystem Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/fieldcure/fieldcure-mcp-filesystemFAQ
Is FieldCure Filesystem Server MCP free?
Yes, FieldCure Filesystem Server MCP is free — one-click install via Unyly at no cost.
Does FieldCure Filesystem Server need an API key?
No, FieldCure Filesystem Server runs without API keys or environment variables.
Is FieldCure Filesystem Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install FieldCure Filesystem Server in Claude Desktop, Claude Code or Cursor?
Open FieldCure Filesystem Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare FieldCure Filesystem Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
