auto-mcp-framework
Verified Safeby krajasek
Overview
Automatically generate MCP (Model Context Protocol) servers from Python modules or installed packages, with LLM-powered documentation.
Installation
auto-mcp serve examples/simple_math/math_utils.pyEnvironment 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
fastmcp
FastMCP is an ergonomic interface for the Model Context Protocol (MCP), providing a comprehensive framework for building and interacting with AI agents, tools, resources, and prompts across various transports and authentication methods.
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
Create-MCP
Generates Model Context Protocol (MCP) server projects through a command-line interface.