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
Install Dependencies
Configuration
- Cursor
- Claude Desktop
Add to
~/.cursor/mcp.json:Cursor Configuration
Available Tools
The MCP server provides 23 comprehensive tools organized into 5 functional categories to manage your complete annotation workflow:Project Management (4 tools)
Project Management (4 tools)
Dataset Management (5 tools)
Dataset Management (5 tools)
Create dataset with automatic file upload and status polling
Upload individual files to create a dataset
Upload an entire folder of files
List all datasets with filtering options
Get detailed information about a dataset
Annotation Operations (6 tools)
Annotation Operations (6 tools)
Create annotation template with questions/guidelines
Export project annotations in various formats (JSON, COCO, CSV, PNG)
Check status of export jobs
Get download URL for completed exports
Upload pre-annotations (synchronous)
Upload pre-annotations (asynchronous)
Monitoring Tools (4 tools)
Monitoring Tools (4 tools)
Usage Examples
Interact with the MCP server using natural language commands through your AI assistant. Below are common usage patterns:Create a Complete Project
- Upload images from the specified folder
- Create a dataset with uploaded files
- Generate an annotation template with bounding box questions
- 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:Server response:
- Files are uploaded to cloud storage
- Dataset is created and linked
- Processing status is monitored until completion
Step 2: Create Template
The server creates an annotation template with your specified questions.Process:Server response:
- Annotation questions are defined
- Question types are configured (BoundingBox, polygon, etc.)
- Template is validated and saved
Step 3: Create Project
The server links the dataset and template to create your project.Process:Server response:
- Dataset and template are validated
- Project is created with proper configuration
- Resources are linked and ready for annotation
- 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:| Data Type | Supported Formats |
|---|---|
| Image | JPG, PNG, TIFF |
| Video | MP4 |
| Audio | MP3, WAV |
| Document | |
| Text | TXT |
Export Formats
Annotations can be exported in multiple industry-standard formats:| Format | Description |
|---|---|
| json | Labellerr native format with complete annotation metadata |
| coco_json | COCO dataset format for computer vision tasks |
| csv | Comma-separated values for tabular data analysis |
| png | Segmentation masks for pixel-level annotations |
Error Handling
The MCP server provides descriptive error messages to help diagnose and resolve issues:Troubleshooting
AI Assistant Doesn’t Show Tools
Resolution steps:- Completely restart your AI assistant (quit and reopen the application)
- Verify the path to
server.pyis absolute (starts with/on macOS/Linux orC:\on Windows) - Test the server manually:
python3 /path/to/server.py - Check the MCP configuration file for syntax errors
Authentication Errors
Resolution steps:- Obtain fresh credentials from your Labellerr workspace
- Update the configuration file with the correct API credentials
- Ensure all three credentials (API Key, API Secret, Client ID) are present
- 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:- GitHub Repository - Source code and examples
- MCP Server README - Detailed server documentation
- API Documentation - Complete API reference

