mcp_sample

mcp_sample

0

TextSaver MCP is a Claude MCP server designed to manage text file saving operations on a local filesystem with security features like filename validation and directory protection. It supports natural language commands to streamline the process of saving text.

TextSaver MCP

A Claude MCP server that allows Claude to save text to files on your local filesystem.

Features

  • Save text input to files with a simple command
  • Automatically generates timestamped filenames if none provided
  • Built-in security with filename validation and sanitization
  • Protection against directory traversal attacks
  • Comprehensive error handling and logging
  • Size limit protections to prevent filesystem abuse

Installation

Prerequisites

  • Python 3.8 or higher
  • Claude Desktop application

Setup

  1. Clone the repository
  2. Install dependencies
  3. Configure Claude Desktop to use the MCP server
  4. Restart Claude Desktop

Usage

Once set up, ask Claude to save text to files using natural language such as "Save this text to a file" or "Save this information to a file called notes.txt."

Security Features

  • File size limits (default: 10MB)
  • Filename validation and sanitization
  • Path control

Troubleshooting

Common Issues

  • "spawn python ENOENT" Error: Claude can't find the Python executable.
  • "Read-only file system" Error: Lack of write permission for the specified directory.
  • Permission Issues: Ensure write permissions for the directory.

Debugging

Check logs in the Claude Desktop developer console.