# MCP リファレンス ファイルシステム サーバー — ワークスペース スコープのファイル操作 (`filesystem-sandbox-mcp`)

> リアルパス検証済みのファイル読み取り、アトミック行編集、ディレクトリ ツリー、およびグロブ検索を提供する公式モデル コンテキスト プロトコル リファレンス サーバー。

- **Canonical URL:** https://syndipath.com/ja/mcp/filesystem-sandbox-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@modelcontextprotocol/server-filesystem`
- **Upvotes:** 946 | **GitHub Stars:** 9840 | **Weekly Installs:** 94300
- **Security Note:** HTTP-200 は NPM レジストリ (@modelcontextprotocol/server-filesystem) で検証されました。ワークスペーススコープの STDIO セッション内で npx 経由で実行します。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/workspace

# Add to Claude Code CLI
claude mcp add filesystem-sandbox-mcp -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/workspace
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "filesystem-sandbox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/workspace"
      ]
    }
  }
}
```

## Exposed MCP Tools
- `filesystem_sandbox_mcp_execute(query: string, options?: object)`: Official Model Context Protocol reference server providing realpath-validated file reads, atomic line edits, directory trees, and glob .
- `filesystem_sandbox_mcp_list_items(filter?: string, limit?: number)`: Lists structured workspace artifacts and capability metadata over JSON-RPC 2.0.
