list_directory — Filesystem MCP Tool Read-only
list_directory
(list directory) is one of 11 tools on the
Filesystem
MCP server. Connect the server and your client discovers it on the handshake.
by client
How to call list_directory from your client
- Claude Code Filesystem list_directory run in your project directory
- Claude Desktop Filesystem list_directory ~/Library/Application Support/Claude/claude_desktop_config.json
- Cursor Filesystem list_directory ~/.cursor/mcp.json
- VS Code Filesystem list_directory .vscode/mcp.json
- Zed Filesystem list_directory ~/.config/zed/settings.json
- Windsurf Filesystem list_directory ~/.codeium/windsurf/mcp_config.json
Fastest route
claude mcp add server-filesystem -- npx -y @modelcontextprotocol/server-filesystem
Other tools on this server
Mutating and Read-only are read off each tool's name, not its schema — a hint, not a guarantee. The registry stores tool names only; connect the server for its live schemas.