Skip to main content

Introduction

The Labellerr MCP Server enables seamless interaction with the Labellerr platform using natural language through AI assistants such as Claude Desktop and Cursor. Built on the Model Context Protocol (MCP), it provides 23 comprehensive tools for managing datasets, projects, annotations, and exports through conversational interfaces.

Quick Start

Prerequisites

  • Python 3.8 or higher
  • Git installed on your system
  • Labellerr API credentials (API Key, API Secret, Client ID) - Get your credentials
  • Claude Desktop or Cursor installed

Installation

First, clone the SDKPython repository:
Clone Repository
Then install the required dependencies:
Install Dependencies

Configuration

Add to ~/.cursor/mcp.json:
Cursor Configuration
Important: Use the absolute path to server.py. Restart your AI assistant completely after configuration.

Available Tools

The MCP server provides 23 comprehensive tools organized into 5 functional categories to manage your complete annotation workflow:
tool
Create a new annotation project (requires dataset_id and template_id)
tool
List all projects in your workspace
tool
Get detailed information about a specific project
tool
Update annotation rotation configuration
tool
Create dataset with automatic file upload and status polling
tool
Upload individual files to create a dataset
tool
Upload an entire folder of files
tool
List all datasets with filtering options
tool
Get detailed information about a dataset
tool
Create annotation template with questions/guidelines
tool
Export project annotations in various formats (JSON, COCO, CSV, PNG)
tool
Check status of export jobs
tool
Get download URL for completed exports
tool
Upload pre-annotations (synchronous)
tool
Upload pre-annotations (asynchronous)
tool
Check MCP server health and connection status
tool
List all active operations and their status
tool
Get progress statistics for a project
tool
Monitor background job status
tool
Get detailed statistics for a project
tool
Get detailed information about a dataset
tool
Query history of operations performed
tool
Search for projects by name or type

Usage Examples

Interact with the MCP server using natural language commands through your AI assistant. Below are common usage patterns:

Create a Complete Project

Automated workflow:
  1. Upload images from the specified folder
  2. Create a dataset with uploaded files
  3. Generate an annotation template with bounding box questions
  4. Create and link the project with all resources

Monitor Project Progress

Export Annotations

Upload Additional Data

Project Creation Workflow

The MCP server implements a structured three-step workflow for creating annotation projects. When you request a complete project, the server automatically executes all steps in sequence.
Automated Workflow: Describe your requirements in natural language, and the MCP server handles the complete workflow automatically.

Step 1: Create Dataset

The server uploads your files and creates a dataset.Process:
  • Files are uploaded to cloud storage
  • Dataset is created and linked
  • Processing status is monitored until completion
Example request:
Server response:

Step 2: Create Template

The server creates an annotation template with your specified questions.Process:
  • Annotation questions are defined
  • Question types are configured (BoundingBox, polygon, etc.)
  • Template is validated and saved
Example request:
Server response:

Step 3: Create Project

The server links the dataset and template to create your project.Process:
  • Dataset and template are validated
  • Project is created with proper configuration
  • Resources are linked and ready for annotation
Example request:
Server response:
Unified Command: You can create everything in one natural language request:
The MCP server will automatically execute all three steps and provide you with the final project ID.
Workflow Benefits:
  • Proper resource management
  • Clear project structure
  • Validation at each step
  • Automatic error handling

Supported Data Types

The MCP server supports the following data types across all tools:

Export Formats

Annotations can be exported in multiple industry-standard formats:

Error Handling

The MCP server provides descriptive error messages to help diagnose and resolve issues:
All operations are logged in the operation history and can be queried using natural language:

Troubleshooting

AI Assistant Doesn’t Show Tools

Resolution steps:
  1. Completely restart your AI assistant (quit and reopen the application)
  2. Verify the path to server.py is absolute (starts with / on macOS/Linux or C:\ on Windows)
  3. Test the server manually: python3 /path/to/server.py
  4. Check the MCP configuration file for syntax errors

Authentication Errors

Resolution steps:
  1. Obtain fresh credentials from your Labellerr workspace
  2. Update the configuration file with the correct API credentials
  3. Ensure all three credentials (API Key, API Secret, Client ID) are present
  4. Restart your AI assistant after updating credentials

File Upload Issues

Common causes and solutions:
  • Verify file paths are absolute, not relative
  • Check file system permissions for read access
  • Confirm file formats match the specified data type
  • Ensure sufficient disk space for upload operations

Advanced Features

Operation History

The server maintains a comprehensive log of all operations with timestamps, durations, and status information. Query the operation history using natural language:

Resource Caching

Active projects and datasets are cached in memory for improved performance and faster access. View currently cached resources:

Status Polling

Dataset creation includes automatic status polling to monitor processing completion. Configure timeout settings as needed:

Additional Resources

For comprehensive documentation and technical references:

Next Steps

SDK Documentation

Learn about the Python SDK for programmatic access

Create Projects

Detailed guide on creating annotation projects

Export Data

Learn how to export your annotated data

Cookbooks

Practical examples and tutorials