mcp-label-studio: A Label Studio MCP server

mcp-label-studio: A Label Studio MCP server

mcp server for label studio

lxkaka

研究与数据
访问服务器

README

mcp-label-studio: A Label Studio MCP server

Overview

A Model Context Protocol server for managing and interacting with Label Studio projects. This server provides tools to create and manage annotation projects, import and export data, and facilitate the data labeling workflow.

Tools

  1. get_projects

    • Get all projects information
    • Returns: A list of all projects with their basic information
  2. get_project_detail

    • Get detailed information about a specific project
    • Input:
      • project_id (string): Label Studio project ID
    • Returns: Detailed project information including label configuration
  3. create_project

    • Create a new annotation project
    • Input:
      • title (string): Project title
      • description (string, optional): Project description
      • label_config (string, optional): XML label configuration
    • Returns: New project information
  4. update_project

    • Update an existing project
    • Input:
      • project_id (string): Project ID
      • title (string, optional): New project title
      • description (string, optional): New project description
      • label_config (string, optional): New XML label configuration
    • Returns: Updated project information
  5. delete_project

    • Delete a project
    • Input:
      • project_id (string): Project ID to delete
    • Returns: Deletion status
  6. export_project_annotations

    • Export project annotation data
    • Input:
      • project_id (string): Project ID
      • export_format (string, optional): Format to export ("JSON", "CSV", "TSV", "CONLL2003", "COCO")
      • output_path (string, optional): Path to save the export file
    • Returns: Exported annotation data
  7. import_tasks_from_file

    • Import tasks from a file
    • Input:
      • project_id (string): Project ID
      • file_path (string): Path to the import file
    • Returns: Import status
  8. get_export_formats

    • Get supported export formats for a project
    • Input:
      • project_id (string): Project ID
    • Returns: List of supported export formats

Installation

Using uv (recommended)

When using uv, you can run the server directly:

git clone https://github.com/yourusername/mcp-label-studio.git
cd mcp-label-studio
uv pip install -e .
uv run server.py

Using Docker

You can also use Docker to run the server:

docker build -t mcp-label-studio .
docker run -e LABEL_STUDIO_API_KEY=your-api-key -e LABEL_STUDIO_URL=http://your-label-studio-instance mcp-label-studio

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

<details> <summary>Using uv</summary>

"mcpServers": {
  "label-studio": {
    "command": "uv",
    "args": ["run", "/path/to/mcp-label-studio/server.py"],
    "env": {
      "LABEL_STUDIO_API_KEY": "YOUR_LABEL_STUDIO_API_KEY",
      "LABEL_STUDIO_URL": "YOUR_LABEL_STUDIO_URL"
    }
  }
}

</details>

<details> <summary>Using docker</summary>

"mcpServers": {
  "label-studio": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "-e", "LABEL_STUDIO_API_KEY=YOUR_API_KEY", "-e", "LABEL_STUDIO_URL=YOUR_URL", "mcp-label-studio"]
  }
}

</details>

Debugging

You can use the MCP inspector to debug the server:

cd /path/to/mcp-label-studio
LABEL_STUDIO_API_KEY=YOUR_API_KEY LABEL_STUDIO_URL=YOUR_URL npx @modelcontextprotocol/inspector uv run server.py

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repositoy

推荐服务器

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。

精选
TypeScript
MCP PubMed Search

MCP PubMed Search

用于搜索 PubMed 的服务器(PubMed 是一个免费的在线数据库,用户可以在其中搜索生物医学和生命科学文献)。 我是在 MCP 发布当天创建的,但当时正在度假。 我看到有人在您的数据库中发布了类似的服务器,但还是决定发布我的。

精选
Python
mixpanel

mixpanel

连接到您的 Mixpanel 数据。从 Mixpanel 分析查询事件、留存和漏斗数据。

精选
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Vectorize

Vectorize

将 MCP 服务器向量化以实现高级检索、私有深度研究、Anything-to-Markdown 文件提取和文本分块。

官方
JavaScript
Nefino MCP Server

Nefino MCP Server

为大型语言模型提供访问德国可再生能源项目新闻和信息的能力,允许按地点、主题(太阳能、风能、氢能)和日期范围进行筛选。

官方
Python
MCP Word Counter

MCP Word Counter

一个模型上下文协议(Model Context Protocol)服务器,提供用于分析文本文档的工具,包括字数和字符数统计。该服务器通过暴露简单的文档统计功能,帮助大型语言模型(LLM)执行文本分析任务。

本地
JavaScript
mcp-server-data-exploration

mcp-server-data-exploration

能够对基于 .csv 的数据集进行自主数据探索,以最少的精力提供智能洞察。

本地
Python
Claude MCP Server for USGS Quakes API

Claude MCP Server for USGS Quakes API

在 Claude Desktop 中提供对 USGS Quakes API 的访问,使用户能够通过自然语言查询检索地震数据和详细信息。

本地
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

一个服务器,通过 FastMCP 提供对 Mathematica 文档的访问,使用户能够从 Wolfram Mathematica 检索函数文档和列出软件包符号。

本地
Python