AutoMCP

AutoMCP

Automatically converts CLI tools, APIs, and programs into MCP servers for LLM and agentic use, enabling rapid integration without manual server implementation.

Category
Visit Server

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

🚦 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?

Flow Diagram

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.

  1. Detect Sub-Command: This agent is responsible for evaluating whether the given help text contains sub-commands or not.

  2. Extract Command List: Agent to extract list of sub-commands.

  3. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured