Label Studio MCP Server
Label Studio MCP Server connects AI agents to powerful data labeling workflows. Automate project setup, task management, and prediction integration for streamlined annotation and quality assurance.

What does “Label Studio” MCP Server do?
The Label Studio MCP Server is a Model Context Protocol (MCP) server that enables seamless integration of AI assistants with a Label Studio instance. Leveraging the label-studio-sdk
, it allows programmatic management of labeling projects, tasks, and predictions via natural language or structured calls from MCP clients. This server empowers developers and AI agents to efficiently create and manage projects, import and query tasks, and automate predictions, all through standardized MCP tools. By exposing Label Studio’s core functionalities, it streamlines labeling workflows and enhances productivity for data annotation, quality review, and machine learning operations.
List of Prompts
No prompt templates are mentioned in the repository.
List of Resources
No explicit MCP resources are listed in the repository documentation.
List of Tools
- get_label_studio_projects_tool()
Lists available projects, returning ID, title, and task count for each project. - get_label_studio_project_details_tool(project_id: int)
Retrieves detailed information for a specified project. - get_label_studio_project_config_tool(project_id: int)
Fetches the XML labeling configuration for a given project. - create_label_studio_project_tool(title: str, label_config: str, …)
Creates a new project with a title, XML config, and optional settings; returns project details and URL. - update_label_studio_project_config_tool(project_id: int, new_label_config: str)
Updates the XML labeling configuration for an existing project. - list_label_studio_project_tasks_tool(project_id: int)
Lists up to 100 task IDs within a project. - get_label_studio_task_data_tool(project_id: int, task_id: int)
Retrieves the data payload for a specific task. - get_label_studio_task_annotations_tool(project_id: int, task_id: int)
Fetches existing annotations for a specific task. - import_label_studio_project_tasks_tool(project_id: int, tasks_file_path: str)
Imports tasks from a JSON file into a project; returns import summary and project URL. - create_label_studio_prediction_tool(task_id: int, result: List[Dict[str, Any]], …)
Creates a prediction for a specific task, with options for model version and score.
Use Cases of this MCP Server
- Automated Project Management
Create, update, and configure labeling projects programmatically, streamlining setup and maintenance for large annotation operations. - Bulk Task Import and Management
Import tasks from files and manage them in bulk, enabling efficient data ingestion into Label Studio and easy retrieval of task data or annotations. - Prediction Integration
Add model predictions directly to tasks, facilitating ML-assisted annotation workflows and human-in-the-loop model evaluation. - Quality Assurance and Metrics
Query project details and task counts to monitor progress and quality across multiple labeling projects. - Customized Annotation Templates
Automate updates to annotation templates (label configs) for evolving project requirements, ensuring consistency and flexibility.
How to set it up
Windsurf
- Ensure you have a running Label Studio instance and obtain your API key.
- Open the Windsurf MCP server configuration file.
- Add the Label Studio MCP server definition using the following JSON snippet:
{ "mcpServers": { "label-studio": { "command": "uvx", "args": [ "--from", "git+https://github.com/HumanSignal/label-studio-mcp-server", "mcp-label-studio" ], "env": { "LABEL_STUDIO_API_KEY": "your_actual_api_key_here", "LABEL_STUDIO_URL": "http://localhost:8080" } } } }
- Save changes and restart Windsurf.
- Verify the connection to your Label Studio instance.
Claude
- Ensure Label Studio is running and you have your API key.
- Locate your
claude_desktop_config.json
file. - Add the Label Studio MCP server configuration:
{ "mcpServers": { "label-studio": { "command": "uvx", "args": [ "--from", "git+https://github.com/HumanSignal/label-studio-mcp-server", "mcp-label-studio" ], "env": { "LABEL_STUDIO_API_KEY": "your_actual_api_key_here", "LABEL_STUDIO_URL": "http://localhost:8080" } } } }
- Save and restart the Claude client.
- Confirm successful setup in the client interface.
Cursor
- Start with a running Label Studio and obtain your API key.
- Open Cursor MCP settings.
- Add this MCP server configuration JSON:
{ "mcpServers": { "label-studio": { "command": "uvx", "args": [ "--from", "git+https://github.com/HumanSignal/label-studio-mcp-server", "mcp-label-studio" ], "env": { "LABEL_STUDIO_API_KEY": "your_actual_api_key_here", "LABEL_STUDIO_URL": "http://localhost:8080" } } } }
- Save and restart Cursor.
- Check that the MCP server is accessible from Cursor.
Cline
- Make sure Label Studio is up and running and note your API key.
- Edit the Cline MCP server config file.
- Insert the server entry as below:
{ "mcpServers": { "label-studio": { "command": "uvx", "args": [ "--from", "git+https://github.com/HumanSignal/label-studio-mcp-server", "mcp-label-studio" ], "env": { "LABEL_STUDIO_API_KEY": "your_actual_api_key_here", "LABEL_STUDIO_URL": "http://localhost:8080" } } } }
- Save your changes and restart Cline.
- Test connectivity to Label Studio via Cline.
Note:
Securely store your API key using environment variables as shown in the env
section above. This keeps sensitive information out of source code and config files.
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"label-studio": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change "label-studio"
to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ⛔ | No prompt templates found in documentation. |
List of Resources | ⛔ | No explicit MCP resources listed. |
List of Tools | ✅ | Project/Task management, predictions tools. |
Securing API Keys | ✅ | Uses environment variables in config (env ). |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned. |
Between the two tables:
This MCP server provides strong tool coverage for Label Studio management and clear setup documentation, but lacks prompt templates and explicit resource definitions. Sampling and roots support are not mentioned. Overall, it’s a solid but basic implementation for dedicated data labeling workflows.
MCP Score
Has a LICENSE | ✅ (Apache-2.0) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 3 |
Number of Stars | 8 |
Frequently asked questions
- What is the Label Studio MCP Server?
The Label Studio MCP Server is a Model Context Protocol server that enables AI assistants and agents to interact programmatically with a Label Studio instance. It provides tools to manage labeling projects, tasks, and predictions through MCP-compatible clients.
- What tasks can I automate with this server?
You can automate project creation, updating project configs, importing tasks, retrieving tasks and annotations, and adding model predictions—making large-scale or ML-assisted data labeling seamless.
- Do I need to expose my API key in configuration files?
No. The recommended setup uses environment variables for sensitive credentials like your API key. This protects your secrets from being committed to source code.
- Is prompt templating or resource definition included?
Prompt templates and explicit resource definitions are not included in the current implementation, but all major Label Studio management tools are available.
- What are common use cases for this MCP server?
Typical use cases include automated project management, bulk task import, ML model prediction integration, quality assurance, and customizable annotation workflows for labeling operations.
Streamline Data Labeling with Label Studio MCP Server
Empower your AI workflows by connecting Label Studio to FlowHunt. Automate project management, task imports, and predictions for fast, high-quality data annotation.