Skip to main content
Glama

MCP Filesystem Server

MIT License
35
7
  • Linux
  • Apple

write_file

Create or overwrite files with specified content using proper encoding. Operates within predefined directories for secure file management on the MCP Filesystem Server.

Instructions

Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file
encodingNoFile encodingutf-8
pathYesPath where to write the file

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "content": { "description": "Content to write to the file", "type": "string" }, "encoding": { "default": "utf-8", "description": "File encoding", "enum": [ "utf-8", "utf8", "base64" ], "type": "string" }, "path": { "description": "Path where to write the file", "type": "string" } }, "required": [ "path", "content" ], "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/gabrielmaialva33/mcp-filesystem'

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