Back to Home
krajasek icon

auto-mcp-framework

Verified Safe

by krajasek

Overview

Automatically generate MCP (Model Context Protocol) servers from Python modules or installed packages, with LLM-powered documentation.

Installation

Run Command
auto-mcp serve examples/simple_math/math_utils.py

Environment Variables

  • AUTO_MCP_LLM_PROVIDER
  • AUTO_MCP_LLM_MODEL
  • AUTO_MCP_LLM_BASE_URL
  • AUTO_MCP_OPENAI_API_KEY
  • AUTO_MCP_ANTHROPIC_API_KEY
  • AUTO_MCP_CACHE_ENABLED
  • AUTO_MCP_CACHE_DIR
  • AUTO_MCP_SERVER_NAME
  • AUTO_MCP_TRANSPORT
  • AUTO_MCP_HOST
  • AUTO_MCP_PORT
  • AUTO_MCP_WATCH
  • AUTO_MCP_INCLUDE_PRIVATE
  • AUTO_MCP_GENERATE_RESOURCES
  • AUTO_MCP_GENERATE_PROMPTS
  • AUTO_MCP_ENABLE_SESSIONS
  • AUTO_MCP_SESSION_TTL
  • AUTO_MCP_MAX_SESSIONS

Security Notes

The project uses `subprocess.run`, `subprocess.Popen`, and `os.execvp` for its core `uvx`-based package isolation feature. This is a security-conscious design choice to run external package analysis in a sandboxed environment, rather than a vulnerability. The LLM is used for generating descriptions, not code, limiting direct LLM-related risks. API keys are handled via environment variables. The tool's primary function is to expose existing Python code; therefore, if a user exposes malicious local code or a compromised installed package, the generated server will inherit that risk. However, the tool itself does not introduce arbitrary `eval` or command injection vulnerabilities from external user input.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

MCPServer GenerationLLMPythonType Serialization