Back to Home
sharonsky94 icon

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

Run Command
/path/to/mcp_server_python/.venv/bin/python /path/to/mcp_server_python/pymcp.py

Security 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

Stats

Interest Score0
Security Score1
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-12-16

Tags

MCP ServerLM StudioPythonAgent ToolsCode Execution