Sponsored by Deepsite.site

groundlight-mcp-server

Created By
groundlight8 months ago
MCP Server for Groundlight
Content

groundlight-mcp-server

Overview

A Model Context Protocol (MCP) server for interacting with Groundlight. This server provides tools to create and list both Detectors and ImageQueries.

This MCP server is still in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

Tools

The following tools are available in the Groundlight MCP server:

  1. create_detector

    • Description: Create a detector based on the specified configuration. Supports three modes:

      1. Binary: Answers 'yes' or 'no' to a natural-language query about images.
      2. Multiclass: Classifies images into predefined categories based on natural-language queries.
      3. Counting: Counts occurrences of specified objects in images using natural-language descriptions.

      All detectors analyze images to answer natural-language queries and return confidence scores indicating result reliability. If confidence falls below the specified threshold, the query is escalated to human review. Detectors improve over time through continuous learning from feedback and additional examples.

    • Input: config (DetectorConfig object with name, query, confidence_threshold, mode, and mode-specific configuration)

    • Returns: Detector object

  2. get_detector

    • Description: Get a detector by its ID.
    • Input: detector_id (string)
    • Returns: Detector object
  3. list_detectors

    • Description: List all detectors associated with the current user.
    • Input: None
    • Returns: List of Detector objects
  4. submit_image_query

    • Description: Submit an image to be answered by the specified detector. The image can be provided as a file path, URL, or raw bytes. The detector will return a response with a label and confidence score.
    • Input: detector_id (string), image (string or bytes)
    • Returns: ImageQuery object
  5. get_image_query

    • Description: Get an existing image query by its ID.
    • Input: image_query_id (string)
    • Returns: ImageQuery object
  6. list_image_queries

    • Description: List all image queries associated with the specified detector. Note that this may return a large number of results.
    • Input: detector_id (string)
    • Returns: List of ImageQuery objects
  7. get_image

    • Description: Get the image associated with an image query by its ID. Optionally annotate with bounding boxes on the image if available.
    • Input: image_query_id (string), annotate (boolean, default: false)
    • Returns: Image object
  8. create_alert

    • Description: Create an alert for a detector that triggers actions when specific conditions are met.
    • Input: config (AlertConfig object with name, detector_id, condition, and optional webhook_action, email_action, text_action, enabled, and human_review_required fields)
    • Returns: Rule object
  9. list_alerts

    • Description: List all alerts (rules) in the system. (Note: Not filtered by detector in the current implementation.)
    • Input: page (integer, default: 1), page_size (integer, default: 100)
    • Returns: List of Rule objects
  10. delete_alert

    • Description: Delete an alert (rule) by its alert ID.
    • Input: alert_id (string)
    • Returns: None
  11. add_label

    • Description: Provide a label (annotation) for an image query. This is used for training detectors or correcting results. For counting detectors, you can optionally provide regions of interest.
    • Input: image_query_id (string), label (integer or string), rois (optional list)
    • Returns: None
  12. get_detector_evaluation_metrics

    • Description: Get detailed evaluation metrics for a detector, including confusion matrix and examples.
    • Input: detector_id (string)
    • Returns: Dictionary of evaluation metrics
  13. update_detector_confidence_threshold

    • Description: Update the confidence threshold for a detector.
    • Input: detector_id (string), confidence_threshold (float)
    • Returns: None
  14. update_detector_escalation_type

    • Description: Update the escalation type for a detector. This determines when queries are sent for human review. Options: 'STANDARD' (escalate based on confidence threshold) or 'NO_HUMAN_LABELING' (never escalate).
    • Input: detector_id (string), escalation_type (string, either "STANDARD" or "NO_HUMAN_LABELING")
    • Returns: None

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

Docker```json

"mcpServers": { "groundlight": { "command": "docker", "args": ["run", "--rm", "-i", "-e", "GROUNDLIGHT_API_TOKEN", "groundlight/groundlight-mcp-server"], "env": { "GROUNDLIGHT_API_TOKEN": "YOUR_API_TOKEN_HERE" } } }


## Development

Build the Docker image locally:
```bash
make build-docker

Run the Docker image locally:

make run-docker

[Groundlight Internal] Push the Docker image to Docker Hub (requires DockerHub credentials):

make push-docker

s

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code