Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
The reference Filesystem MCP server provides file operations within configured access directories. It can help an assistant inspect a project, locate relevant files and make requested edits using the documented filesystem tools.
The startup arguments specify the directories the server may access; compatible clients can also provide MCP Roots. Start with the project folder needed for the task. Ask for paths and excerpts when investigating a setting, and inspect the resulting diff when requesting an edit.
The npm package is @modelcontextprotocol/server-filesystem. Several community projects have similar names but different packages and controls. This reference server includes write operations; do not assume that a file-access connection is read-only because the first request is a search. Consult its tool reference before choosing the allowed directories.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| read_text_file | Read a file as text. |
| list_directory | List directory contents. |
| search_files | Search for paths within the allowed directories. |
| edit_file | Apply documented text edits to a file. |
| list_allowed_directories | Inspect the directories currently allowed. |
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/project"
]
}
}
}Replace /path/to/project. This reference implementation exposes write tools as well as read tools.
Node.js with npx. Replace the example directory with the specific folder you want the server to access.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
A hosted service that proves AI-generated Python does what you asked. State the intent — assertions or doctest lines — and the code is run against it inside a container with no network and a…
MCP server for Gotify push notifications - send messages and manage apps/clients.
HDFS MCP Server is a controller based on MCP (Model Context Protocol) that provides access to HDFS clusters through the MCP protocol. The server
This repository provides an implementation of a Model Context Protocol (MCP) server for AWS S3, enabling AI models, particularly Large Language