Labellerr MCP Server
A Model Context Protocol (MCP) server that provides a comprehensive interface to the Labellerr SDK for managing annotation projects, datasets, and monitoring operations through AI assistants like Claude Desktop and Cursor.
README
Labellerr MCP Server
A Model Context Protocol (MCP) server that provides a comprehensive interface to the Labellerr SDK for managing annotation projects, datasets, and monitoring operations through AI assistants like Claude Desktop and Cursor.
Features
- 🚀 Project Management - Create, list, update, and track annotation projects
- 📊 Dataset Management - Create datasets, upload files/folders, and query information
- 🏷️ Annotation Tools - Upload pre-annotations, export data, and download results
- 📈 Monitoring & Insights - Real-time progress tracking and system health monitoring
- 🔍 Query Capabilities - Search projects, get statistics, and analyze operations
22 specialized tools available across 5 categories to streamline your annotation workflow.
Installation
Prerequisites
- Node.js 16 or higher
- npm or yarn
- Labellerr API credentials (API Key, API Secret, Client ID)
Setup
- Clone the repository:
git clone https://github.com/1sarthakbhardwaj/labellerr-mcp-server.git
cd labellerr-mcp-server
- Install dependencies:
npm install
- Configure environment variables:
cp .env.example .env
Edit .env and add your Labellerr credentials:
LABELLERR_API_KEY=your_api_key_here
LABELLERR_API_SECRET=your_api_secret_here
LABELLERR_CLIENT_ID=your_client_id_here
Getting Credentials: Contact Labellerr support or email support@labellerr.com to obtain your API credentials.
Configuration
Option 1: Using with Claude Desktop
Add to your Claude Desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
{
"mcpServers": {
"labellerr": {
"command": "node",
"args": ["/absolute/path/to/labellerr-mcp-server/src/index.js"],
"env": {
"LABELLERR_API_KEY": "your_api_key",
"LABELLERR_API_SECRET": "your_api_secret",
"LABELLERR_CLIENT_ID": "your_client_id"
}
}
}
}
Important: Replace /absolute/path/to/ with the full path to your installation directory.
After configuration:
- Restart Claude Desktop completely
- The Labellerr tools will be available in your conversations
- Ask Claude to list your projects or check system health
Option 2: Using with Cursor
Add to your Cursor MCP configuration file:
Location: ~/.cursor/mcp.json (macOS/Linux) or %APPDATA%\Cursor\mcp.json (Windows)
{
"mcpServers": {
"labellerr": {
"command": "node",
"args": ["/absolute/path/to/labellerr-mcp-server/src/index.js"],
"env": {
"LABELLERR_API_KEY": "your_api_key",
"LABELLERR_API_SECRET": "your_api_secret",
"LABELLERR_CLIENT_ID": "your_client_id"
}
}
}
}
Important: Replace /absolute/path/to/ with the full path to your installation directory.
After configuration:
- Restart Cursor completely (Quit and reopen)
- The Labellerr tools will be available in the AI assistant
- Try asking: "List all my Labellerr projects"
Verifying Installation
Test the server is working:
# Start the server
npm start
# In another terminal, test the protocol
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | node src/index.js
You should see a JSON response listing all 22 available tools.
Usage
Starting the Server Standalone
# Production mode
npm start
# Development mode (with auto-reload)
npm run dev
Using with AI Assistants
Once configured with Claude Desktop or Cursor, you can interact naturally:
Project Management:
- "List all my Labellerr projects"
- "Create a new image classification project for product categorization"
- "What's the progress of project XYZ?"
Dataset Operations:
- "Upload images from /path/to/folder"
- "List all my datasets"
- "Create a new dataset for video annotation"
Monitoring:
- "Show me system health"
- "Check the progress of my active projects"
- "What operations have been performed?"
Exports:
- "Export annotations in COCO format"
- "Check status of export ABC123"
- "Download completed export"
Current Status
✅ Fully Working (21 tools)
- Project Management: List, get details, update rotation
- Dataset Management: Create, upload, list, query
- Annotation Operations: Upload pre-annotations, export, download
- Monitoring: Job status, progress, system health
- Query & Search: Statistics, history, search
⚠️ In Progress (1 tool)
- Project Creation - Implementation complete but encountering API 400 error during dataset creation
- File upload to GCS: ✅ Implemented
- Dataset creation: ⚠️ Getting 400 error
- Template creation: ✅ Implemented
- Project finalization: ✅ Implemented
- See Issue #1 for details
Available Tools
The server provides 22 specialized tools:
📋 Project Management (4 tools)
project_create- Create projects with annotation guidelinesproject_list- List all projectsproject_get- Get detailed project informationproject_update_rotation- Update rotation configuration
📊 Dataset Management (5 tools)
dataset_create- Create new datasetsdataset_upload_files- Upload individual filesdataset_upload_folder- Upload entire foldersdataset_list- List all datasetsdataset_get- Get dataset information
🏷️ Annotation Operations (5 tools)
annotation_upload_preannotations- Upload pre-annotations (sync)annotation_upload_preannotations_async- Upload pre-annotations (async)annotation_export- Create annotation exportannotation_check_export_status- Check export statusannotation_download_export- Get export download URL
📈 Monitoring & Analytics (4 tools)
monitor_job_status- Monitor background job statusmonitor_project_progress- Track project progressmonitor_active_operations- List active operationsmonitor_system_health- Check system health
🔍 Query & Search (4 tools)
query_project_statistics- Get detailed project statsquery_dataset_info- Get dataset informationquery_operation_history- View operation historyquery_search_projects- Search projects by name/type
For detailed parameters and examples, see the Full Tool Documentation below.
Supported Data Types
- image - JPEG, PNG, TIFF
- video - MP4
- audio - MP3, WAV
- document - PDF
- text - TXT
Annotation Types
BoundingBox- Rectangle annotations for object detectionpolygon- Polygon shapes for segmentationdot- Point annotationsradio- Single choice selectiondropdown- Dropdown selectionboolean- Yes/No selectioninput- Text input fieldselect- Multiple choice selection
Export Formats
json- Standard JSON formatcoco_json- COCO dataset formatcsv- Comma-separated valuespng- Image masks
Limits
- Maximum 2,500 files per folder upload
- Maximum 2.5 GB total folder size
- Batch processing: 15 MB per batch, 900 files max
Example Workflows
1. Create an Object Detection Project
{
"project_name": "Vehicle Detection",
"dataset_name": "Traffic Dataset",
"data_type": "image",
"created_by": "user@example.com",
"annotation_guide": [
{
"question": "Detect Vehicles",
"option_type": "BoundingBox",
"required": true,
"options": [{"option_name": "#ff0000"}]
}
],
"folder_to_upload": "/path/to/images"
}
2. Monitor Project Progress
Ask your AI assistant: "Show me the progress of my annotation projects"
The server will return:
- Total files
- Annotated count
- Reviewed count
- Completion percentage
3. Export Annotations
{
"project_id": "proj_abc123",
"export_name": "Training Export",
"export_format": "coco_json",
"statuses": ["accepted", "reviewed"]
}
4. Search Projects
Ask: "Find all projects related to 'vehicle' or 'traffic'"
The server will search project names and return matching results.
Detailed Tool Reference
<details> <summary><strong>Project Management Tools</strong></summary>
project_create
Create a new annotation project.
Parameters:
project_name(string, required) - Name of the projectdataset_name(string, required) - Name of the datasetdata_type(string, required) - Type: image/video/audio/document/textcreated_by(string, required) - Creator's emailannotation_guide(array, required) - Annotation questions/guidelinesdataset_description(string, optional) - Dataset descriptionfolder_to_upload(string, optional) - Path to folder with filesfiles_to_upload(array, optional) - Array of file pathsrotation_config(object, optional) - Rotation configurationautolabel(boolean, optional) - Enable auto-labeling
project_list
List all projects for the client.
Returns: Array of projects with metadata
project_get
Get detailed information about a specific project.
Parameters:
project_id(string, required) - ID of the project
project_update_rotation
Update rotation configuration for a project.
Parameters:
project_id(string, required) - ID of the projectrotation_config(object, required) - New rotation settings
</details>
<details> <summary><strong>Dataset Management Tools</strong></summary>
dataset_create
Create a new dataset.
Parameters:
dataset_name(string, required) - Name of the datasetdata_type(string, required) - Type of datadataset_description(string, optional) - Description
dataset_upload_files
Upload individual files to a dataset.
Parameters:
files(array, required) - Array of file pathsdata_type(string, required) - Type of data
dataset_upload_folder
Upload all files from a folder.
Parameters:
folder_path(string, required) - Path to folderdata_type(string, required) - Type of data
dataset_list
List all datasets (linked and unlinked).
Parameters:
data_type(string, optional) - Filter by data type (default: "image")
dataset_get
Get detailed information about a dataset.
Parameters:
dataset_id(string, required) - ID of the dataset
</details>
<details> <summary><strong>Annotation Tools</strong></summary>
annotation_upload_preannotations
Upload pre-annotations (synchronous).
Parameters:
project_id(string, required) - ID of the projectannotation_format(string, required) - Format: json/coco_json/csv/pngannotation_file(string, required) - Path to annotation file
annotation_upload_preannotations_async
Upload pre-annotations (asynchronous).
Parameters:
- Same as
annotation_upload_preannotations
annotation_export
Create an export of project annotations.
Parameters:
project_id(string, required) - ID of the projectexport_name(string, required) - Name for the exportexport_format(string, required) - Format for exportstatuses(array, required) - Statuses to includeexport_description(string, optional) - Description
annotation_check_export_status
Check the status of export jobs.
Parameters:
project_id(string, required) - ID of the projectexport_ids(array, required) - Array of export IDs
annotation_download_export
Get download URL for a completed export.
Parameters:
project_id(string, required) - ID of the projectexport_id(string, required) - ID of the export
</details>
<details> <summary><strong>Monitoring Tools</strong></summary>
monitor_job_status
Monitor the status of a background job.
Parameters:
job_id(string, required) - ID of the job
monitor_project_progress
Get progress statistics for a project.
Parameters:
project_id(string, required) - ID of the project
monitor_active_operations
List all active operations and their status.
Returns: List of active operations with timestamps
monitor_system_health
Check the health and status of the MCP server.
Returns: System status, connectivity, active projects count
</details>
<details> <summary><strong>Query Tools</strong></summary>
query_project_statistics
Get detailed statistics for a project.
Parameters:
project_id(string, required) - ID of the project
query_dataset_info
Get detailed information about a dataset.
Parameters:
dataset_id(string, required) - ID of the dataset
query_operation_history
Query the history of operations performed.
Parameters:
limit(number, optional) - Max number of operations (default: 10)status(string, optional) - Filter by status: success/failed/in_progress
query_search_projects
Search for projects by name or type.
Parameters:
query(string, required) - Search query string
</details>
Troubleshooting
Server won't start
- Verify Node.js version (requires 16+)
- Check environment variables are set correctly
- Ensure port is not in use
Tools return errors
- Verify Labellerr API credentials are correct
- Check network connectivity
- Review operation history for error details
AI assistant can't find tools
- Verify configuration file path is correct
- Use absolute paths, not relative paths
- Restart the AI assistant completely after configuration
- Check that credentials are set in the config file
Debug Mode
Set LOG_LEVEL=debug in your .env file for detailed logging.
Development
Project Structure
labellerr-mcp-server/
├── src/
│ ├── index.js # Main server entry point
│ ├── labellerr-client.js # Labellerr API client
│ └── tools/
│ └── index.js # Tool definitions
├── package.json # Dependencies and scripts
├── .env.example # Environment template
├── claude_desktop_config.json # Claude configuration example
├── LICENSE # MIT License
└── README.md # This file
Adding New Tools
- Define the tool schema in
src/tools/index.js - Implement the handler in
src/index.js(handleCallTool method) - Add the client method in
src/labellerr-client.jsif needed - Update documentation
Resources
- Labellerr Documentation: docs.labellerr.com
- MCP Protocol: modelcontextprotocol.io
- Support Email: support@labellerr.com
- GitHub Issues: github.com/1sarthakbhardwaj/labellerr-mcp-server/issues
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Made with ❤️ for the Labellerr community
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。