Filesystem SSE Server in Go
@lealre
About Filesystem SSE Server in Go
A Go MCP server enabling file system interactions.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"fs-mcp": {
"command": "python",
"args": [
"script.py",
"List all the entries for the path in /your/directory/path/somesubpath"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Filesystem SSE Server in Go?
Filesystem SSE Server in Go is an MCP server that provides tools to interact with the local file system—such as listing directory entries, reading/writing files, retrieving file info, renaming, and copying files or directories. It runs an SSE server on a local machine and is intended for developers who need file system operations through the Model Context Protocol.
How to use Filesystem SSE Server in Go?
Install using go install github.com/lealre/fs-mcp@latest (Go 1.24 required), then start the server with fs-mcp -dir /your/directory/path. The server listens on http://localhost:8080 (or a custom port via -port flag) and exposes an SSE endpoint at /sse. You can then connect any MCP client (e.g., a PydanticAI agent) to this endpoint.
Key features of Filesystem SSE Server in Go
- List directory entries with configurable depth.
- Read file contents from a given path.
- Create or overwrite files with specified content.
- Retrieve file info (size, modified time, MIME type, permissions).
- Rename files or directories.
- Copy files or directories to a new location.
Use cases of Filesystem SSE Server in Go
- Have an AI agent browse and list files in a local directory.
- Allow an agent to read configuration or log files.
- Let an agent write output files to a controlled directory.
- Enable an agent to restructure local folders (rename, copy).
FAQ from Filesystem SSE Server in Go
What dependencies are required?
Go version 1.24 must be installed on your system.
What transport does the server use?
It uses SSE (Server-Sent Events) over HTTP. The MCP endpoint is at http://localhost:8080/sse.
Can I restrict which directories are accessible?
Yes, the -dir flag is required and specifies the base directory. All file operations are restricted to paths under that directory. Only one directory path is accepted.
Does the server require authentication?
The README does not mention any authentication mechanism.
Are there any known limits?
The server currently accepts only a single base directory path (via the -dir flag). File operations outside this directory are not permitted.
Frequently asked questions
What dependencies are required?
Go version 1.24 must be installed on your system.
What transport does the server use?
It uses SSE (Server-Sent Events) over HTTP. The MCP endpoint is at `http://localhost:8080/sse`.
Can I restrict which directories are accessible?
Yes, the `-dir` flag is required and specifies the base directory. All file operations are restricted to paths under that directory. Only one directory path is accepted.
Does the server require authentication?
The README does not mention any authentication mechanism.
Are there any known limits?
The server currently accepts only a single base directory path (via the `-dir` flag). File operations outside this directory are not permitted.
Basic information
More Files & Storage MCP servers
Filesystem MCP Server for WSL
webconsultingfilesystem MCP server for accessing WSL distributions from Windows
Filesystem MCP Server
cyanheadsA Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search/replace and directory tree traversal
Mcp Google Sheets
xing5This MCP server integrates with your Google Drive and Google Sheets, to enable creating and modifying spreadsheets.
mcp-rquest
xxxbrianA MCP server providing realistic browser-like HTTP request capabilities with accurate TLS/JA3/JA4 fingerprints for bypassing anti-bot measures. It also supports converting PDF and HTML documents to Markdown for easier processing by LLMs.
mcp-v8: V8 JavaScript MCP Server
r33drichardsMCP server that exposes a V8 JavaScript runtime as a tool for AI agents like Claude and Cursor. Supports persistent heap snapshots via S3 or local filesystem, and is ready for integration with modern AI development environments.
Comments