mcp_server_python
by sharonsky94
Overview
An MCP server for LM Studio to extend LLM capabilities with web search, page fetching, arbitrary Python code execution, and package installation.
Installation
/path/to/mcp_server_python/.venv/bin/python /path/to/mcp_server_python/pymcp.pySecurity Notes
CRITICAL: The 'console' tool executes arbitrary shell commands using `subprocess.run(command, shell=True)`, leading to immediate Remote Code Execution (RCE) on the host system. The 'python' tool executes arbitrary Python code using `exec()`, which, despite attempts at isolation, allows importing sensitive modules (e.g., `os`, `subprocess`) to achieve RCE. The 'install' tool allows installing arbitrary Python packages, which could introduce malicious code. The 'fetch' tool also presents a Server-Side Request Forgery (SSRF) risk by fetching arbitrary URLs provided by an LLM.
Similar Servers
lex
Provides a UK legal research API for AI agents, offering capabilities to search legislation, caselaw, amendments, and explanatory notes using semantic and keyword search, and includes a Micro-Copilot (MCP) server for integration with AI assistants.
nancy-brain
Builds a searchable knowledge base from GitHub repositories and PDF articles for AI agents and assistants.
Test_Remote_MCP-Server
A Python-based server application designed for remote access, likely implementing a Message Control Protocol (MCP) or similar custom service.
server-model-mcp
A Python-based server application that likely implements a model or protocol, potentially related to game server logic (e.g., Minecraft Coder Pack, if 'MCP' is interpreted in that context) or a generic micro-controller platform.