Skip to main content
Glama
avclabs

@avclabs.ai/enhance-mcp

Official
by avclabs

@avclabs.ai/enhance-mcp (Node.js)

npm version Node.js >=18 License: MIT

中文文档 | English

MCPプロトコルに基づいた動画高品質化サービスであり、FastAPI HTTPサーバーと対話するためのMCPクライアントサーバーとして機能します。

機能

以下のMCPツールが提供されます:

  • create_task - 動画高品質化タスクの作成(URLまたはローカルファイルのアップロードをサポート)

  • get_task_status - タスクステータスの照会

  • enhance_video_sync - 動画の同期的な高品質化(完了まで待機)

インストール

npmからインストール(推奨)

npm install -g @avclabs.ai/enhance-mcp

またはyarn/pnpmを使用する場合:

yarn global add @avclabs.ai/enhance-mcp
pnpm add -g @avclabs.ai/enhance-mcp

ソースからインストール

git clone https://github.com/avclabs/enhance-mcp.git
cd js_client
npm install
npm run build

使用方法

1. コマンドライン

グローバルインストール後に直接使用します:

avclabs-enhance-mcp --base-url https://mcp.avc.ai --api-key your-api-key

または環境変数を使用します:

# Windows PowerShell
$env:HTTP_API_BASE_URL="https://mcp.avc.ai"
$env:HTTP_API_KEY="your-api-key"
avclabs-enhance-mcp

# Windows CMD
set HTTP_API_BASE_URL=https://mcp.avc.ai
set HTTP_API_KEY=your-api-key
avclabs-enhance-mcp

# macOS/Linux
export HTTP_API_BASE_URL=https://mcp.avc.ai
export HTTP_API_KEY=your-api-key
avclabs-enhance-mcp

2. Claude Desktopでの設定

Claude Desktopの設定ファイルを編集します:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "video-enhancement": {
      "command": "avclabs-enhance-mcp",
      "args": [
        "--base-url",
        "https://mcp.avc.ai",
        "--api-key",
        "your-api-key"
      ]
    }
  }
}

3. npxで使用する(グローバルインストール不要)

npx @avclabs.ai/enhance-mcp --base-url https://mcp.avc.ai --api-key your-api-key

Claude Desktopの設定:

{
  "mcpServers": {
    "video-enhancement": {
      "command": "npx",
      "args": [
        "@avclabs.ai/enhance-mcp",
        "--base-url",
        "https://mcp.avc.ai",
        "--api-key",
        "your-api-key"
      ]
    }
  }
}

提供ツール

create_task

動画高品質化タスクを作成します(非同期)。

パラメータ:

  • video_source (string, 必須): 動画URLまたはローカルファイルパス

  • type (string, オプション): アップロードタイプ、デフォルトは "url"

    • オプション: "url" - ネットワーク動画URL, "local" - ローカルファイルパス

  • resolution (string, オプション): ターゲット解像度、デフォルトは 720p

    • オプション: 480p, 540p, 720p, 1080p, 2k

例:

// URL mode
{
  "video_source": "https://example.com/video.mp4",
  "type": "url",
  "resolution": "1080p"
}

// Local file mode
{
  "video_source": "/path/to/local/video.mp4",
  "type": "local",
  "resolution": "1080p"
}

戻り値:

{
  "success": true,
  "task_id": "xxx",
  "status": "wait"
}

get_task_status

タスクステータスを照会します。

パラメータ:

  • task_id (string, 必須): タスクID

例:

{
  "task_id": "task-123-abc"
}

戻り値:

{
  "success": true,
  "task_id": "xxx",
  "status": "completed",
  "progress": 100,
  "video_url": "https://...",
  "error_message": null,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:01:00Z"
}

enhance_video_sync

動画を同期的に高品質化します(完了までブロックして待機)。

パラメータ:

  • video_source (string, 必須): 動画URLまたはローカルファイルパス

  • type (string, オプション): アップロードタイプ、デフォルトは "url"

    • オプション: "url" - ネットワーク動画URL, "local" - ローカルファイルパス

  • resolution (string, オプション): ターゲット解像度、デフォルトは 720p

  • poll_interval (number, オプション): ポーリング間隔(秒)、デフォルトは 5

  • timeout (number, オプション): タイムアウト(秒)、デフォルトは 600

例:

{
  "video_source": "https://example.com/video.mp4",
  "type": "url",
  "resolution": "1080p",
  "poll_interval": 5,
  "timeout": 600
}

戻り値:

{
  "success": true,
  "task_id": "xxx",
  "status": "completed",
  "progress": 100,
  "video_url": "https://..."
}

ファイルアップロードに関する注意点

type"local" に設定されている場合、MCPサーバーは以下の処理を行います:

  1. ローカルファイルを読み込む

  2. ファイルをbase64でエンコードする

  3. 動画高品質化サービスにアップロードする

制限事項:

  • 最大ファイルサイズ: 100MB

環境変数

変数

説明

デフォルト

HTTP_API_BASE_URL

FastAPI HTTPサーバーのアドレス

https://mcp.avc.ai

HTTP_API_KEY

API認証キー

なし

開発

# Clone the repository
git clone https://github.com/avclabs/enhance-mcp.git
cd js_client

# Install dependencies
npm install

# Development mode (auto-compile)
npm run dev

# Build
npm run build

ライセンス

MITライセンス - 詳細は LICENSE ファイルを参照してください。

Install Server
A
license - permissive license
A
quality
D
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Multimodal video analysis MCP — transcription, vision, and OCR for any video URL.

  • MCP server for Kling AI video generation

  • MCP server for Wan AI video generation

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/avclabs/enhance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server