MCP Server for CVDLT(Computer Vision & Deep Learning Tools)

by MRonaldo-gif

3 stars
313 downloads
Not rated
GitHub

About

The repo is based on Model Context procotol of Python SDK, including DL models in CV, and provide the abilities to the LLM or vLLM model

Details

Author
MRonaldo-gif
GitHub stars
3
Downloads
313
Categories
Productivity

- Detect objects in images using YOLOv10
- Segment objects in images using YOLOv8
- Segment entire images using Ultralytics SAM
- Estimate human poses in images using YOLOv8
- Support for local file paths and network image URLs
- MCP tool integration with stdio and SSE transport protocols

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server for CVDLT(Computer Vision & Deep Learning Tools)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with uv sync and download required model weights (yolov10b.pt, yolov8n-seg.pt, yolov8n-pose.pt, sam_b.pt) into the ./checkpoints directory. Start the server in stdio mode with python server.py or in SSE mode with python server.py sse [port]. For Claude Desktop, add an SSE entry in claude_desktop_config.json.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server for cvdlt(computer vision & deep learning tools)": {
            "mcp-server-cvdlt": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-cvdlt": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

MCP Server for CVDLT(Computer Vision & Deep Learning Tools)

The repo is based on Ultralytics and Model Context procotol of Python SDK
Related Links:

MCP Playground(client) - https://github.com/MRonaldo-gif/mcp-playground-local

Ultralytics - https://github.com/ultralytics/ultralytics

MCP of Python - https://github.com/modelcontextprotocol/python-sdk

Python server implementing Model Context Protocol (MCP) for image object detection, segmentation, and pose estimation operations.

样式图

detect样式图

Features

- Detect objects in images using YOLOv10
- Segment objects in images using YOLOv8
- Segment entire images using Ultralytics SAM
- Estimate human poses in images using YOLOv8
- Support for local and network image inputs
- MCP tool integration for client interactions
- Stdio and SSE transport protocols

Note: The server requires valid image paths or URLs and access to the following model files: yolov10b.pt (YOLOv10 detection), yolov8n-seg.pt (YOLOv8 segmentation), yolov8n-pose.pt (YOLOv8 pose estimation), and sam_b.pt (Ultralytics SAM).

TODO

- 3D Detection
- AIGC(GAN, Diffusion)
- Denso Estimation
- Deploy DL(Deep Learning) Models

QucikStart

Install Dependencies

uv sync
//如需要清华源
uv sync --index https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://pypi.org/simple

uv pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

Start Server

1. stdio 模式

   python server.py
   

输出:

   使用 stdio 传输启动 MCP 服务器(YOLO)
   

2. SSE 模式

   python server.py sse [端口号]
   

示例:

   python server.py sse 8080
   

输出:

   在端口 8080 上启动 MCP 服务器(YOLO),使用 SSE 传输
   

Moreover, users need to download the weights into the ./checkpoints directory.
Downloads Links🔗:https://docs.ultralytics.com/models/yolov10/,https://docs.ultralytics.com/models/yolov8/,https://docs.ultralytics.com/models/sam-2/

├── checkpoints
│ ├── sam_b.pt
│ ├── yolov10b.pt
│ ├── yolov8n-pose.pt
│ └── yolov8n-seg.pt

API

Resources

- image://system: Image processing operations interface

Tools

- detect_objects
- Detect objects in an image using YOLOv10
- Input: image_url (string)
- Supports local paths (file:// or relative) and network URLs (http:// or https://)
- Returns JSON array of detected objects with bounding boxes, confidence scores, and class labels
- Example output: [{"box": [x, y, w, h], "confidence": 0.9, "class": "person"}, ...]
- segment_objects
- Segment objects in an image using YOLOv8
- Input: image_url (string)
- Supports local paths (file:// or relative) and network URLs (http:// or https://)
- Returns JSON array of segmented objects with bounding boxes, confidence scores, and class labels
- Example output: [{"box": [x, y, w, h], "confidence": 0.85, "class": "car"}, ...]
- segment_image
- Segment entire image using Ultralytics SAM
- Input: image_url (string)
- Supports local paths (file:// or relative) and network URLs (http:// or https://)
- Returns JSON array of segmented regions with bounding boxes, areas, and confidence scores
- Example output: [{"bbox": [x, y, w, h], "area": 2500, "confidence": 0.95}, ...]
- estimate_pose
- Estimate human poses in an image using YOLOv8
- Input: image_url (string)
- Supports local paths (file:// or relative) and network URLs (http:// or https://)
- Returns JSON array of detected poses with keypoint coordinates and confidence scores
- Example output: [{"keypoints": [[x1, y1], [x2, y2], ...], "confidence": [0.9, 0.8, ...]}, ...]

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

Note: You can provide sandboxed directories to the server by mounting them to /projects. Adding the ro flag will make the directory readonly by the server.

SSE

{
  "mcpServers": {
    "server-with-yolo": {
      "url": "http://localhost:8080/sse"
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.