Get the FREE Ultimate OpenClaw Setup Guide →

YOLO

MCP server from GongRzhe/YOLO-MCP-Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio gongrzhe-yolo-mcp-server python server.py \
  --env PYTHONPATH="."

How to use

This YOLO MCP Service exposes a Claude-friendly computer vision interface built around YOLO models. It supports object detection, segmentation, classification, and pose estimation, with real-time camera analysis and options to train, validate, and export models. The service can operate on images from file paths or base64-encoded data, and it integrates with Claude via MCP to allow conversational prompts to trigger specific vision tasks. To get started, run the MCP server locally and connect Claude (or other MCP clients) using the generated configuration. Once running, you can list available models, perform single-image detections, run comprehensive analyses that combine multiple capabilities, segment objects, classify entire images, or stream live detections from your camera. The included tools are designed to be invoked via structured function calls embedded in Claude prompts, enabling a smooth, hands-free workflow for vision tasks.

How to install

Prerequisites:

  • Python 3.10 or higher
  • Git (optional, for cloning the repository)

Installation steps:

  1. Create a project directory and navigate to it mkdir yolo-mcp-service cd yolo-mcp-service

  2. Obtain the project files

    If you have the files locally, place them in this directory

    If using Git:

    git clone https://github.com/GongRzhe/YOLO-MCP-Server.git .

  3. Create a Python virtual environment

    On Windows

    python -m venv .venv

    On macOS/Linux

    python3 -m venv .venv

  4. Activate the virtual environment

    On Windows

    .venv\Scripts\activate

    On macOS/Linux

    source .venv/bin/activate

  5. Install dependencies and set up MCP configuration python setup.py

    The setup script will:

    • Check your Python version
    • Create a virtual environment (if not already created)
    • Install required dependencies
    • Generate an MCP configuration file (mcp-config.json)
    • Output configuration information for different MCP clients including Claude
  6. Note the MCP configuration output generated by the setup script and the path to the server script, which you will use to connect via MCP (e.g., in Claude Desktop or Windsurf).

  7. Prepare YOLO models

  8. Run or deploy the MCP server as configured (the exact command is provided in the setup output). For local development, you typically run the server script (server.py) under the configured Python environment and ensure the mcp-config.json is accessible to Claude or your MCP client.

Additional notes

Tips and common considerations:

  • Ensure your Python environment (virtualenv) is activated whenever running the server.
  • The MCP configuration may be different depending on your environment (local vs. Claude Desktop). Keep the generated mcp-config.json in a location accessible to Claude.
  • Models should be placed in the expected directories (current working directory, a models/ subdirectory, or other directories defined by CONFIG["model_dirs"] in server.py).
  • If you update models or paths, re-run the setup script to regenerate configuration for MCP clients.
  • When using real-time camera analysis, ensure your system has a webcam available and the necessary permissions configured for camera access.
  • For image inputs, the service supports both file paths and base64-encoded images; adjust your function calls accordingly in Claude prompts.
  • If you encounter issues, verify that the environment variables (such as PYTHONPATH) are correctly set in the MCP configuration.

Related MCP Servers

Sponsor this space

Reach thousands of developers