LocalFilesMcpServer 0.2.0-beta
See the version list below for details.
dotnet tool install --global LocalFilesMcpServer --version 0.2.0-beta
dotnet new tool-manifest
dotnet tool install --local LocalFilesMcpServer --version 0.2.0-beta
#tool dotnet:?package=LocalFilesMcpServer&version=0.2.0-beta&prerelease
nuke :add-package LocalFilesMcpServer --version 0.2.0-beta
LocalFilesMCP
LocalFilesMCP is an MCP server for file system operations, built with C# and the ModelContextProtocol SDK. It allows you to interact with the file system in a secure, sandboxed manner via the MCP protocol.
Command-Line Arguments
--stdioRuns the server using standard input/output (stdio) transport. This is required for integration with tools like LM Studio or VS Code.--root-path <path>Sets the root directory for all file operations. All file and directory access will be confined to this path. Example:dotnet run -- --stdio --root-path "C:\My\Sandbox"
--portListener port for the server (only used if--stdiois NOT specified).
dotnet run -- --port 5000 --root-path "/home/user/sandbox"
If --root-path is not specified, the current working directory is used as the root.
If --port is not specified, the server will listen on port 5000.
If --stdio is not specified, the server will use HTTP/SSE transport.
Adding LocalFilesMCP to LM Studio
- Build the project
Run
dotnet publish -c Release -r win-x64to produce a standalone executable. - Locate the executable
The output will be in
bin/Release/net10.0/<your-platform>/publish/. - Configure LM Studio
Create or edit the
mcp.jsonfile in your LM Studio workspace directory. - Add the server configuration
Use the following example, updating the
commandpath to your published executable and the--root-pathas needed.
Example mcp.json for LM Studio
{
"mcpServers": {
"LocalFilesMCP": {
"command": "C:\\Path\\To\\LocalFilesMCP.exe",
"args": [
"--stdio",
"--root-path=C:\\Path\\To\\Your\\Sandbox"
]
}
}
}
Example mcp.json for CoPilot inVisual Studio
{
"inputs": [],
"servers": {
"LocalFilesMCP": {
"command": "C:\\Path\\To\\LocalFilesMCP.exe",
"args": [
"--stdio",
"--root-path=C:\\Path\\To\\Your\\Sandbox"
],
"env": {}
},
"OtherLocalFilesMCP": {
"command": "C:\\Path\\To\\LocalFilesMCP.exe",
"args": [
"--stdio",
"--root-path=C:\\Path\\To\\Your\\Other\\Sandbox"
],
"env": {}
}
}
}
More Information
License
This project is licensed under the Apache License 2.0 with the Commons Clause.
What this means:
- Free for Personal Use: You can download, modify, and use this freely.
- Free for Internal Business Use: You can use this inside your company (e.g., game studios, enterprise workflows).
- No Commercial Resale: You cannot sell this software, offer it as a paid service, or wrap it in a commercial product for third parties.
See LICENSE.txt for the full legal text.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.2-beta | 114 | 2/14/2026 |
| 0.3.0-beta | 90 | 2/14/2026 |
| 0.2.0-beta | 98 | 12/27/2025 |