
humansignal/label-studio-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
humanignal/label-studio-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/humansignal/label-studio-mcp-server.
Обзор
humanignal/label-studio-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/humansignal/label-studio-mcp-server.
Обзор (машинный перевод)
Обзор
Этот проект предоставляет сервер Model Context Protocol (MCP), который позволяет взаимодействовать с экземпляром Label Studio, используя label-studio-sdk. Программа позволяет управлять проектами, задачами и прогнозами с помощью естественного языка или структурированных вызовов от клиентов MCP. Используя этот MCP-сервер, вы можете делать такие запросы, как:
«Создать проект в студии лейбла с этими данными…» Сколько задач помечено в моем обзорном проекте RAG? «Добавьте прогнозы для моих задач».
- «Обновить шаблон маркировки, чтобы включить поле для комментариев».
Особенности
Управление проектами: создание, обновление, список и просмотр деталей/конфигураций проектов Label Studio.
** Управление задачами: Импортировать задачи из файлов, перечислять задачи в проектах и извлекать данные / аннотации задач.
** Интеграция прогнозов**: Добавьте прогнозы моделей к конкретным задачам.
*SDK Интеграция: использует официальное label-studio-sdk для связи.
Предпосылки
- Бегущий лейбл Studio Instance: Вам нужен рабочий экземпляр Label Studio, доступный с того места, где будет работать этот MCP-сервер.
- **API Key: ** Получите ключ API из настроек учетной записи пользователя в Label Studio.
Конфигурация
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Label Studio MCP Server
Overview
This project provides a Model Context Protocol (MCP) server that allows interaction with a Label Studio instance using the label-studio-sdk. It enables programmatic management of labeling projects, tasks, and predictions via natural language or structured calls from MCP clients. Using this MCP Server, you can make requests like:
- “Create a project in label studio with this data …”
- “How many tasks are labeled in my RAG review project?”
- “Add predictions for my tasks.”
- “Update my labeling template to include a comment box.”
Features
- Project Management: Create, update, list, and view details/configurations of Label Studio projects.
- Task Management: Import tasks from files, list tasks within projects, and retrieve task data/annotations.
- Prediction Integration: Add model predictions to specific tasks.
- SDK Integration: Leverages the official
label-studio-sdkfor communication.
Prerequisites
- Running Label Studio Instance: You need a running instance of Label Studio accessible from where this MCP server will run.
- API Key: Obtain an API key from your user account settings in Label Studio.
Configuration
The MCP server requires the URL and API key for your Label Studio instance. If launching the server via an MCP client configuration file, you can specify the environment variables directly within the server definition. This is often preferred for client-managed servers.
Add the following JSON entry to your claude_desktop_config.json file or Cursor MCP settings:
{
"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", // <-- Your API key
"LABEL_STUDIO_URL": "http://localhost:8080"
}
}
}
}
<!–
Installation
Follow these instructions to install the server.
git clone https://github.com/HumanSignal/label-studio-mcp-server.git
cd label-studio-mcp-server
# Install dependencies using uv
uv venv
source .venv/bin/activate
uv sync
```json
{
"mcpServers": {
"label-studio": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/label-studio-mcp-server", // <-- Update this path
"run",
"label-studio-mcp.py"
],
"env": {
"LABEL_STUDIO_API_KEY": "your_actual_api_key_here", // <-- Your API key
"LABEL_STUDIO_URL": "http://localhost:8080"
}
}
}
}
Установка
uvx --from git+https://github.com/HumanSignal/label-studio-mcp-server mcp-label-studioКонфигурация
{
"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", // <-- Your API key
"LABEL_STUDIO_URL": "http://localhost:8080"
}
}
}
}