mcp-server-write-log
Verified Safeby RyutaSuzuki77
Overview
An MCP server designed to store conversation logs as text files in a specified local directory.
Installation
npx ts-node src/server.tsEnvironment Variables
- LOG_BASE_DIR
Security Notes
The server writes user-provided 'text' directly to a file within a directory specified by the 'LOG_BASE_DIR' environment variable. While the filename is internally generated with a timestamp, preventing direct path traversal via filename, an insecurely configured 'LOG_BASE_DIR' (e.g., pointing to a sensitive system directory or one with limited space) could allow arbitrary content to be written to files in that location, potentially filling up disk space or overwriting non-critical data if the server process has broad write permissions. There are no obvious signs of 'eval', obfuscation, hardcoded secrets, or direct network vulnerabilities in the provided code, beyond its intended function of writing user-supplied data to the file system.
Similar Servers
fastmcp
A TypeScript framework for building Model Context Protocol (MCP) servers, providing high-level abstractions and boilerplate handling for features like tools, prompts, resources, sessions, authentication, and HTTP streaming.
mcp-server-typescript
Provides a Model Context Protocol (MCP) server to enable AI assistants to access DataForSEO's SEO data APIs through a standardized interface.
mcp-typescript-starter
A feature-complete Model Context Protocol (MCP) server template in TypeScript demonstrating all major MCP features for AI assistant interaction.
MCP-Test
Tests other Model Context Protocol (MCP) servers for connection, capabilities, and tool functionality.