Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

create_directory

Create a new directory or verify its existence on the MCP Filesystem Server. Supports creating parent directories and avoids errors for existing directories.

Instructions

Create a new directory or ensure a directory exists.

Args: path: Path to the directory parents: Create parent directories if they don't exist exist_ok: Don't raise an error if directory already exists ctx: MCP context Returns: Success or error message

Input Schema

NameRequiredDescriptionDefault
exist_okNo
parentsNo
pathYes

Input Schema (JSON Schema)

{ "properties": { "exist_ok": { "default": true, "title": "Exist Ok", "type": "boolean" }, "parents": { "default": true, "title": "Parents", "type": "boolean" }, "path": { "title": "Path", "type": "string" } }, "required": [ "path" ], "title": "create_directoryArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/safurrier/mcp-filesystem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server