MCPInstall
transformerlab-mcp logo

transformerlab-mcp

by angrysky56 1 stars angrysky56/transformerlab-mcp

An MCP server enabling AI assistants to interact with Transformerlab features.

READMEmain

Transformerlab MCP Server

An MCP (Model Context Protocol) server that provides an interface for AI assistants to interact with Transformerlab functionality.

Overview

This project implements an MCP server that wraps the Transformerlab API, allowing AI assistants like Claude to interact with Transformerlab's features. This includes model management, training, dataset operations, evaluation, and RAG capabilities.

Prerequisites

  • Python 3.10 or higher
  • A running Transformerlab API server (default: http://localhost:8338)
  • UV (Python package manager)
  • MCP SDK
  • Transformerlab client library

Project Structure

transformerlab-mcp/
├── pyproject.toml          # Project configuration
├── README.md               # Documentation
├── src/
│   └── transformerlab_mcp/
│       ├── __init__.py     # Package initialization
│       ├── client.py       # Client wrapper for Transformerlab
│       ├── server.py       # MCP server implementation
│       └── tools/          # Folder for tool implementation
│           ├── __init__.py
│           ├── models.py   # Model management tools
│           ├── datasets.py # Dataset management tools
│           ├── training.py # Training and fine-tuning tools 
│           ├── evaluation.py # Evaluation tools
│           └── rag.py      # RAG tools
├── install_dev.sh          # Script to install in development mode
└── run.sh                  # Script to run the server

Installation

  1. Ensure UV is installed (if not, install it following the instructions at https://github.com/astral-sh/uv)

  2. Create a Python environment and install dependencies:

    uv venv
    source .venv/bin/activate
    uv pip install "mcp[cli]" transformerlab-client
    
  3. Install the package in development mode:

    ./install_dev.sh
    

Usage

  1. Ensure Transformerlab is running and accessible at the configured URL (default: http://localhost:8338)

  2. Start the MCP server:

    ./run.sh
    
  3. To test the server with the MCP Inspector:

    mcp dev -m transformerlab_mcp.server
    
  4. To use with Claude Desktop or other MCP clients, add the following to the Claude Desktop config file (typically located at ~/.config/Claude Desktop/claude_desktop_config.json on Linux or similar locations on other platforms):

    {
      "mcpServers": {
        "TransformerLabMCP": {
          "command": "uv",
          "args": ["--directory", "/absolute/path/to/transformerlab-mcp", "run", "-m", "transformerlab_mcp.server"]
        }
      }
    }
    

Supported Features

The MCP server provides tools for:

  • Model Management: Listing, downloading, and getting information about models
  • Training & Fine-tuning: Starting and monitoring training jobs
  • Dataset Management: Listing, importing, and getting information about datasets
  • Evaluation: Running evaluations and retrieving results
  • RAG: Adding documents, listing collections, and performing RAG queries

Configuration

The server uses the following environment variables:

License

AGPL-3.0 (matching Transformerlab's license)

More AI Chatbot MCP servers

Similar servers from the same category.

Jentic

jentic

Enables AI assistants to discover and execute external APIs and workflows through a Python SDK that leverages the Open Agentic Knowledge repository for standardized API access and execution.

AI Chatbot

Provides a bridge to the Flyworks AI lipsync service, enabling creation of digital avatar videos synchronized with audio inputs through a simple API.

git

Official JavaScript implementation that integrates with MiniMax's multimodal capabilities for image generation, video creation, text-to-speech, and voice cloning across multiple transport modes.

APIVideo+7

Provides a bridge to Mureka.ai's music generation capabilities, enabling on-demand creation of lyrics, complete songs, and instrumental tracks without requiring specialized music production knowledge.

AI Chatbot