The official MCP Filesystem server provides secure, sandboxed access to the local file system.
npx -y @modelcontextprotocol/server-filesystem /path/to/dir
{
"mcpServers": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/dir"
],
"command": "npx"
}
}
}List files and directories
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
}
}
}// Input
{
"path": "/project"
}// Output
{
"entries": [
{
"name": "src",
"type": "directory"
}
]
}Read the complete contents of a file
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
}
}
}// Input
{
"path": "/home/user/README.md"
}// Output
{
"content": "# My Project"
}Recursively search for files matching a pattern
{
"type": "object",
"required": [
"path",
"pattern"
],
"properties": {
"path": {
"type": "string"
},
"pattern": {
"type": "string"
}
}
}The official MCP Filesystem server provides secure, sandboxed access to the local file system.
Filesystem provides 4 tools including list_directory, read_file, search_files, and 1 more.
Yes, Filesystem is completely free to use with no usage limits on the free tier.
You can install Filesystem using the following command: npx -y @modelcontextprotocol/server-filesystem /path/to/dir. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
// Input
{
"path": "/project",
"pattern": "*.ts"
}// Output
{
"matches": [
"/project/src/index.ts"
]
}Create or overwrite a file
{
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
}
}
}// Input
{
"path": "output.txt",
"content": "Hello"
}// Output
{
"success": true
}Filesystem is listed under the Development Tools category in the AgentForge MCP registry.
Filesystem has a current uptime of 99.99% with an average response time of 12ms.
To connect Filesystem, click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of Filesystem's tools via the Model Context Protocol.