Skip to main content
Glama

Filesystem MCP Server

create_file

Create a new file with specified content at a given path. Automatically generates parent directories if missing. Ensures file does not already exist and operates within allowed directory roots.

Instructions

Create a new file with specified content.

Args: path (str): File path to create (absolute or relative to allowed directories) content (str): UTF-8 text content to write to the file

Returns: str: Success message with created file path, or error message if failed

Note: - Fails if the file already exists - Creates parent directories if they don't exist - Path must be within allowed directory roots

Input Schema

NameRequiredDescriptionDefault
contentYes
pathYes

Input Schema (JSON Schema)

{ "properties": { "content": { "title": "Content", "type": "string" }, "path": { "title": "Path", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }
Install Server

Other Tools from Filesystem MCP Server

Related Tools

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/Preston-Harrison/fs-mcp-py'

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