TwelveLabs MCP Server logo

TwelveLabs MCP Server

by anchor-airballoon

This is a Model Context Protocol (MCP) server utilizing the TwelveLabs API. It enables video analysis and search capabilities.

View on GitHub

Last updated: N/A

What is TwelveLabs MCP Server?

The TwelveLabs MCP Server is a server application that leverages the TwelveLabs API to provide Model Context Protocol functionality. It allows users to create and manage video indexes, upload and analyze videos, perform text-based video searches, and generate text from videos (transcripts, summaries, etc.).

How to use TwelveLabs MCP Server?

The server can be run locally or using Docker. Locally, you need to set the TWELVELABS_API_KEY environment variable, install dependencies with npm install, and start the server with npm start. With Docker, you can use Docker Compose or Docker commands directly, ensuring the TWELVELABS_API_KEY environment variable is set. When running in Portainer, special attention should be paid to volume configurations to avoid module not found errors.

Key features of TwelveLabs MCP Server

  • Index creation and management

  • Video upload and analysis

  • Text-based video search

  • Video-to-text generation (transcripts, summaries)

  • Docker support

Use cases of TwelveLabs MCP Server

  • Video content analysis

  • Video search applications

  • Automated video summarization

  • Transcription services

  • Integration with other applications via API

FAQ from TwelveLabs MCP Server

What is the TwelveLabs API key for?

The TwelveLabs API key is required to authenticate your requests to the TwelveLabs service and access its video analysis and search functionalities.

How do I set the TWELVELABS_API_KEY environment variable?

You can set the environment variable using the export command in your terminal (e.g., export TWELVELABS_API_KEY="your_api_key_here"). For persistent storage, you may need to set it in your shell's configuration file (e.g., .bashrc, .zshrc).

What do I do if I get a 'module not found' error?

This error usually indicates a problem with volume mounting, especially when using Docker. Refer to the 'Portainer에서 실행 시 주의사항' section in the README for guidance on properly configuring volumes.

What do I do if I get an API key authentication error?

Double-check that the TWELVELABS_API_KEY environment variable is correctly set with your valid API key.

What is the license for this server?

This server is licensed under the MIT License.