Karakuri MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Karakuri MCP generate a video of a sunset over the ocean"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Karakuri MCP
このプロジェクトは、AIエージェントから複数の特定APIを効率よく呼び出せるように設計された、モジュール式の MCP (Model Context Protocol) サーバー です。 「何でもできるサーバー」ではなく、必要なAPI(プラグイン)を少しずつ個別に追加し、管理できるように作られています。
📦 現在インストールされているプラグイン
現在、以下のサービスが組み込まれています。
PiAPI Seedance (
piapi-seedance)PiAPIの
seedance-2(動画生成AI) を利用して動画を生成するプラグインです。ツール:
create_seedance_task,get_seedance_task利用するには
.envにSEEDDANCE2.0_API_KEYを設定する必要があります。
File Utils (
file-utils)動画ファイルなどを指定したURLからローカルの
downloads/フォルダへ自動保存する共通ツールです。ツール:
download_file
Logger Service (
logger-service)すべてのツール呼び出しを
mcp-audit.logに自動記録し、AIエージェント自身が過去の実行履歴を読み出せる監査ログツールです。ツール:
get_audit_logs
Related MCP server: Jilebi
🚀 セットアップ方法
依存関係のインストール
npm install環境変数の設定 プロジェクト直下に
.envファイルを作成(または.env.exampleをコピー)し、APIキーを設定してください。SEEDDANCE2.0_API_KEY=your_piapi_seedance_api_key_hereビルド TypeScriptコードをコンパイルします。
npm run buildテスト実行 同梱されているテストクライアントを使って、サーバーの動作確認が可能です。
npx tsx test-client.ts
🛠️ プラグイン(新API)の追加方法
このサーバーは、新しいAPIを簡単に追加できる「プラガブル(着脱可能)」なアーキテクチャを採用しています。 新しいAPIを追加するには、以下の3ステップを行うだけです。
Step 1: サービスモジュールの作成
src/services/ フォルダ内に新しいディレクトリを作成し、index.ts を配置します。
(例: src/services/my-new-api/index.ts)
src/types.ts で定義されている McpService インターフェースを満たすオブジェクトを作成し、エクスポートします。
import { Tool } from "@modelcontextprotocol/sdk/types.js";
import { McpService } from "../../types.js";
export const myNewApiService: McpService = {
name: "my-new-api",
getTools(): Tool[] {
return [
{
name: "my_tool_name",
description: "新しいツールの説明",
inputSchema: { /* JSON Schema */ }
}
];
},
async handleToolCall(name: string, args: any): Promise<{ content: any[]; isError?: boolean }> {
if (name === "my_tool_name") {
return { content: [{ type: "text", text: "Success!" }] };
}
throw new Error(`Unknown tool: ${name}`);
}
};Step 2: 環境変数の準備
新しいAPIに認証キーが必要な場合は、他のモジュールと干渉しないように独自の環境変数(例: MY_NEW_API_KEY)を .env に追加し、モジュール内でそれを利用するようにしてください。
Step 3: ルーター (src/index.ts) への登録
作成したモジュールを src/index.ts でインポートし、services 配列に追加します。
// src/index.ts
import { myNewApiService } from "./services/my-new-api/index.js";
const services: McpService[] = [
piapiSeedanceService,
fileUtilsService,
loggerService,
myNewApiService // ← これを追加するだけ!
];これで作業は完了です!
再ビルド (npm run build) すれば、AIエージェントは自動的に新しいツールを認識し、利用できるようになります。ツールの実行履歴も自動的に logger-service によって記録されます。
Available Tools
4 toolscreate_seedance_taskB
Create a video generation task using PiAPI Seedance 2.
Inputs: prompt (required), model, image_url, resolution, +1 more.
download_fileA
Download a file from a URL to the local downloads directory.
Inputs: url (required), filename.
get_audit_logsA
Retrieve recent execution audit logs of this MCP server. Shows who called which tool and when.
Inputs: limit.
get_seedance_taskA
Get the status and result of a PiAPI task.
Inputs: task_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a distinct purpose: creating a video task, checking its status, downloading a file, and viewing audit logs. There is no overlap or ambiguity in their roles.
All tool names follow a consistent verb_noun pattern (create_seedance_task, get_seedance_task, download_file, get_audit_logs). The naming is predictable and clearly conveys each tool's function.
With only 4 tools, the server is lean but well-scoped for its purpose: submitting a generation request, polling for results, downloading output, and auditing usage. Each tool earns its place.
The core video generation workflow is covered: create task, get task status, and download the result. Missing a list/cancel feature is a minor gap, but the primary lifecycle is complete.
Related MCP Connectors
MCP server for Hailuo (MiniMax) AI video generation
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing secure tools for filesystem operations, Git management, web search, document conversion, npm/.NET project management, and AI generative capabilities (image/video/audio generation and processing) via PiAPI.ai integration.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA plugin-based MCP server that enables AI assistants to interact with external systems through custom tools, resources, and prompts.4AGPL 3.0
- AlicenseAqualityDmaintenanceAn MCP server that enables local AI agents to generate images and videos through the OpenRouter API, manage a browsable media library, and track generation costs.11MIT
- AlicenseNot gradedqualityDmaintenanceA hosted MCP server providing 15 media and data tools for AI agents, including web search, news, content extraction, summarization, translation, moderation, script writing, text-to-voiceover, transcription, subtitles, viral-clip discovery, and short-form video editing.1MIT