Get the FREE Ultimate OpenClaw Setup Guide →

Connect-Any-LLM-to-Any -Using -use-No-Traditional -Clients-Required

Connect Any LLM to Any MCP Server Using mcp-use — No Traditional MCP Clients Required (Claude Desktop or Cursor etc).

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio ahmad-act-connect-any-llm-to-any-mcp-server-using-mcp-use-no-traditional-mcp-clients-required uv run mcp-server/server.py \
  --env MCP_USE="enabled" \
  --env MCP_SERVER_PORT="8080"

How to use

This MCP server enables direct integration of any LLM with an MCP server using mcp-use, removing the need for GUI-based MCP clients like Claude Desktop or Cursor. It is a pure Python solution designed to simplify how you connect and orchestrate tasks across models and MCP servers. With this setup, you can point an LLM at the MCP interface and have it interact with server-side capabilities such as code execution, automation, and deployment tasks, all through text prompts and structured MCP commands.

To use it, install Python and the uv package manager, then run the server using uv run mcp-server/server.py. Once running, you can initiate sessions with mcp-use to connect your chosen LLM (OpenAI, Anthropic, Open-source models, etc.) and begin sending MCP commands. The server is designed to be lightweight and extensible, so you can tailor prompts, handlers, and workflows to your automation needs without relying on traditional MCP clients.

How to install

Prerequisites

  • Windows 10 or later (recommended for this project)
  • Python 3.13 or higher
  • PowerShell (recommended for setup steps)
  1. Install Python
  • Download Python from https://www.python.org/downloads/
  • Run the installer and ensure Python is added to your PATH
  • Verify installation:
    • python --version
    • pip --version
  1. Install uv (Python Package Manager used by this project)
  • Open PowerShell and run:
    • pip install uv
  • Verify installation:
    • uv --version
  1. Install and run the MCP server
  • In PowerShell, navigate to the project folder
  • Run the MCP server with:
    • uv run mcp-server/server.py
  1. Optional: Create and activate a virtual environment
  • Create:
    • python -m venv .venv
  • Activate (PowerShell):
    • ..venv\Scripts\activate
  • Install dependencies (if required by your project):
    • uv install dependencies or pip install -r requirements.txt (if provided)
  1. Validate operation
  • Ensure the server starts without errors and note the port (default 8080 as configured in mcp_config)
  • Use mcp-use from your LLM to connect to the MCP server endpoint.

Additional notes

Tips and common considerations:

  • The configuration is designed to work with mcp-use, so ensure your LLM driver is compatible with MCP protocol endpoints.
  • If you change ports, update MCP_SERVER_PORT in the environment or the server configuration accordingly.
  • Running on Windows 10+ is supported; ensure PowerShell is available for install steps.
  • This setup emphasizes a minimal dependency footprint; if you add custom handlers, keep them isolated in the mcp-server module to avoid breaking changes.
  • If you encounter issues starting the server, verify that Python and uv are correctly installed and that the working directory contains the mcp-server/server.py file.

Related MCP Servers

Sponsor this space

Reach thousands of developers