mcp-server
by acorn025
Overview
An MCP server providing tools for basic text/math operations, resource fetching, and AI-assisted nickname generation by orchestrating a Python module.
Installation
npm startSecurity Notes
The server uses `child_process.exec` to run a dynamically generated Python script. User-provided tool arguments are embedded into this Python script's source code, written to a temporary file, and then executed. While `JSON.stringify` is used to escape the arguments for Python's `json.loads`, and the script path is controlled, this pattern is inherently risky. Any subtle flaw in the escaping or shell command interpolation could lead to arbitrary code execution, making it a critical vulnerability.
Similar Servers
mcp-typescript-template
This project provides a foundational TypeScript template for developing remote Model Context Protocol (MCP) servers with robust tooling and best practices.
mcp
An MCP server providing a set of mathematical tools (calculator functions) for remote execution via the Model Context Protocol.
mcp-servers
Provides current weather conditions and forecasts from the Open-Meteo API for a given geographical location.
mcp_server
This server implements the Model Context Protocol (MCP) to expose developer-defined tools as a HTTP API, specifically demonstrating a task creation tool.