AutoMCP
Automatically converts CLI tools, APIs, and programs into MCP servers for LLM and agentic use, enabling rapid integration without manual server implementation.
README
AutoMCP: Convert any CLI tool, API or program for Agentic Use
What is AutoMCP?
Integrating traditional CLI tools and APIs with modern Large Language Models (LLMs) and agentic platforms is often a complex and time-consuming process. Developers typically need to write custom servers, wrappers, or interfaces to make their tools accessible to LLMs, slowing down innovation and interoperability.
AutoMCP solves this problem by providing an automated framework that bridges the gap between existing CLI tools, APIs, and the latest interoperability standards for LLMs, such as the Model Context Protocol (MCP). With AutoMCP, developers can rapidly extend their tools for LLM and agentic use—without having to manually implement new servers or utilities—enabling faster integration, experimentation, and adoption in AI-driven workflows.
🌟 Key Features
- CLI
- MCP Server
- Supported Protocols:
- Model Context Protocol (MCP)
- Universal Tool Calling Protocol (UTCP) [Future Scope]
- Agent2Agent (A2A) [Future Scope]
- MCP Gateway [Future Scope]
- API Support (OpenAPI and Swagger) [Future Scope]
- Sourcing man pages [Future Scope]
🚦 Getting Started
Pre-requisites
- OpenAI-compliant LLM Service (Mistral Small, Llama 3.3, Granite 3, 8b+ model)
- Python 3
Environment Setup
# Setup virtual environment
pip install uv
uv venv --python 3.9
source .venv/bin/activate
# Install Dependencies
uv sync
# Install automcp
uv pip install -e .
LLM Setup
Create .env file: cp .default_env .env
Update the following properties in the .env file:
- MODEL_BASE_URL: OpenAI base url for LLM (/v1 endpoint)
- MODEL_KEY: API token for LLM.
- MODEL_NAME: Name of the LLM model.
Usage
AutoMCP can be run in two modes: as a standalone CLI tool, or as an MCP server that you can connect to using your preferred MCP clients or hosts.
💻 Mode 1: Standalone
In the standalone mode, the automcp can take CLI programs as input and output the MCP server.
source .env
# Run automcp
$ uv run automcp create --help
Usage: automcp create [OPTIONS]
Create an MCP server for a given program
Options:
-p, --program TEXT Path to script, CLI, or executable. Can be
specified multiple times. [required]
-hc, --help_command TEXT Name of the help command
-o, --output TEXT Save path for the MCP server
--help Show this message and exit.
# Generate mcp server for a single command
$ uv run automcp create -p "podman images" -o ./server.py
# Generate mcp server for multiple commands
$ uv run automcp create -p "podman container list" -p "podman logs" -p "podman images" -o ./podman.py
# Generate mcp server for complex command (with sub-commands)
$ uv run automcp create -p "helm repo" -o ./helm.py
🖥️ Mode 2: MCP Server
AutoMCP also provides MCP server that lets you create MCP servers from a MCP client.
You can start the MCP server with automcp cli by running the command:
uv run automcp run
If you want to register the AutoMCP MCP server in cursor or claude, then you can add the following json configuration to your mcp.json:
"automcp-server":{
"command": "uv",
"args": [
"run",
"automcp",
"run"
],
"env": {
"MODEL_BASE_URL": "...",
"MODEL_KEY": "...",
"MODEL_NAME": "..."
}
}
Currently users need to manually register the ouput server with their tools.
⚙️ How it works?

automcp uses an LLM workflow to process CLI help documentation and generate MCP server.
At the core of project, is the llm modules that defines multiple LLM agents each used in different parts of the CLI help text processing.
-
Detect Sub-Command: This agent is responsible for evaluating whether the given help text contains sub-commands or not.
-
Extract Command List: Agent to extract list of sub-commands.
-
Extract Command: Agent to extract command details (description, arguments, flags, etc).
The interaction with the actual LLM server is done through the standard OpenAI client. LLM outputs are structured by using OpenAI client support for PyDantic Data Modeling library.
The generation of MCP server is done through Jinja2 templating library and you can find the details about the generator and template under templates directory.
⚠️ Limitations
- The MCP server registration with tools like Cursor or Claude must currently be done manually.
- Only supports CLI tools with standard help output; highly custom or interactive CLIs may not be parsed correctly.
- LLM-based extraction may occasionally misinterpret complex or ambiguous help texts.
- Generated MCP servers may require manual review or adjustment for edge cases.
- Performance and accuracy depend on the quality of the underlying LLM and help documentation.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。