Dumpling AI MCPサーバー
データ スクレイピング、コンテンツ処理、ナレッジ管理、AI エージェント、コード実行機能のために Dumpling AI と統合するモデル コンテキスト プロトコル (MCP) サーバー実装。
特徴
- すべてのDumpling AI APIエンドポイントとの完全な統合
- YouTube のトランスクリプト、検索、オートコンプリート、マップ、場所、ニュース、レビュー用のデータ API
- スクレイピング、クロール、スクリーンショット、構造化データ抽出をサポートするWebスクレイピング
- テキスト抽出、PDF操作、ビデオ処理のためのドキュメント変換ツール
- ドキュメント、画像、音声、ビデオからデータを抽出する
- エージェント補完、知識ベース管理、画像生成などのAI機能
- 安全な環境で JavaScript および Python コードを実行するための開発者ツール
- 自動エラー処理と詳細な応答フォーマット
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の mcp-server-dumplingai を自動的にインストールするには:
npx -y @smithery/cli install @Dumpling-AI/mcp-server-dumplingai --client claude
npxで実行
env DUMPLING_API_KEY=your_api_key npx -y mcp-server-dumplingai
手動インストール
npm install -g mcp-server-dumplingai
カーソル上で実行
カーソルの設定 🖥️ 注: カーソルバージョン 0.45.6 以上が必要です
Cursor で Dumpling AI MCP を構成するには:
- カーソル設定を開く
- 機能 > MCPサーバーへ移動
- 「+新しいMCPサーバーを追加」をクリックします
- 以下を入力してください:
{
"mcpServers": {
"dumplingai": {
"command": "npx",
"args": ["-y", "mcp-server-dumplingai"],
"env": {
"DUMPLING_API_KEY": "<your-api-key>"
}
}
}
}
Windows を使用していて問題が発生している場合は、 cmd /c "set DUMPLING_API_KEY=your-api-key && npx -y mcp-server-dumplingai"
を試してください。
your-api-key
Dumpling AI API キーに置き換えます。
構成
環境変数
DUMPLING_API_KEY
: Dumpling AI APIキー(必須)
利用可能なツール
データAPI
1. YouTubeトランスクリプトを取得する( get-youtube-transcript
)
オプションのタイムスタンプを使用して YouTube 動画からトランスクリプトを抽出します。
{
"name": "get-youtube-transcript",
"arguments": {
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"includeTimestamps": true,
"timestampsToCombine": 3,
"preferredLanguage": "en"
}
}
2. 検索( search
)
Google ウェブ検索を実行し、オプションで結果からコンテンツをスクレイピングします。
{
"name": "search",
"arguments": {
"query": "machine learning basics",
"country": "us",
"language": "en",
"dateRange": "pastMonth",
"scrapeResults": true,
"numResultsToScrape": 3,
"scrapeOptions": {
"format": "markdown",
"cleaned": true
}
}
}
3. オートコンプリートを取得する( get-autocomplete
)
クエリに対する Google 検索のオートコンプリート候補を取得します。
{
"name": "get-autocomplete",
"arguments": {
"query": "how to learn",
"country": "us",
"language": "en",
"location": "New York"
}
}
4. マップの検索( search-maps
)
Google マップで場所やビジネスを検索します。
{
"name": "search-maps",
"arguments": {
"query": "coffee shops",
"gpsPositionZoom": "37.7749,-122.4194,14z",
"language": "en",
"page": 1
}
}
5. 場所を検索する ( search-places
)
より詳しい情報がある場所を検索します。
{
"name": "search-places",
"arguments": {
"query": "hotels in paris",
"country": "fr",
"language": "en",
"page": 1
}
}
6. ニュースを検索する( search-news
)
カスタマイズ可能なパラメータを使用してニュース記事を検索します。
{
"name": "search-news",
"arguments": {
"query": "climate change",
"country": "us",
"language": "en",
"dateRange": "pastWeek"
}
}
7. Googleレビューを取得する( get-google-reviews
)
ビジネスや場所の Google レビューを取得します。
{
"name": "get-google-reviews",
"arguments": {
"businessName": "Eiffel Tower",
"location": "Paris, France",
"limit": 10,
"sortBy": "relevance"
}
}
ウェブスクレイピング
8. 削る( scrape
)
書式設定オプションを使用して Web ページからコンテンツを抽出します。
{
"name": "scrape",
"arguments": {
"url": "https://example.com",
"format": "markdown",
"cleaned": true,
"renderJs": true
}
}
9. クロール( crawl
)
カスタマイズ可能なパラメータを使用して、Web サイトを再帰的にクロールし、コンテンツを抽出します。
{
"name": "crawl",
"arguments": {
"baseUrl": "https://example.com",
"maxPages": 10,
"crawlBeyondBaseUrl": false,
"depth": 2,
"scrapeOptions": {
"format": "markdown",
"cleaned": true,
"renderJs": true
}
}
}
10. スクリーンショット( screenshot
)
カスタマイズ可能なビューポートと形式のオプションを使用して、Web ページのスクリーンショットをキャプチャします。
{
"name": "screenshot",
"arguments": {
"url": "https://example.com",
"width": 1280,
"height": 800,
"fullPage": true,
"format": "png",
"waitFor": 1000
}
}
AI を活用した指示を使用して、Web ページから構造化データを抽出します。
{
"name": "extract",
"arguments": {
"url": "https://example.com/products",
"instructions": "Extract all product names, prices, and descriptions from this page",
"schema": {
"products": [
{
"name": "string",
"price": "number",
"description": "string"
}
]
},
"renderJs": true
}
}
ドキュメント変換
12. ドキュメントをテキストに変換 ( doc-to-text
)
オプションの OCR を使用してドキュメントをプレーンテキストに変換します。
{
"name": "doc-to-text",
"arguments": {
"url": "https://example.com/document.pdf",
"options": {
"ocr": true,
"language": "en"
}
}
}
13. PDFに変換する( convert-to-pdf
)
さまざまなファイル形式を PDF に変換します。
{
"name": "convert-to-pdf",
"arguments": {
"url": "https://example.com/document.docx",
"format": "docx",
"options": {
"quality": 90,
"pageSize": "A4",
"margin": 10
}
}
}
14. PDFを結合する( merge-pdfs
)
複数の PDF を 1 つのドキュメントに結合します。
{
"name": "merge-pdfs",
"arguments": {
"urls": ["https://example.com/doc1.pdf", "https://example.com/doc2.pdf"],
"options": {
"addPageNumbers": true,
"addTableOfContents": true
}
}
}
15. ビデオをトリムする ( trim-video
)
ビデオから特定のクリップを抽出します。
{
"name": "trim-video",
"arguments": {
"url": "https://example.com/video.mp4",
"startTime": 30,
"endTime": 60,
"output": "mp4",
"options": {
"quality": 720,
"fps": 30
}
}
}
さまざまな形式のドキュメントから特定のコンテンツを抽出します。
{
"name": "extract-document",
"arguments": {
"url": "https://example.com/document.pdf",
"format": "structured",
"options": {
"ocr": true,
"language": "en",
"includeMetadata": true
}
}
}
画像からテキストと情報を抽出します。
{
"name": "extract-image",
"arguments": {
"url": "https://example.com/image.jpg",
"extractionType": "text",
"options": {
"language": "en",
"detectOrientation": true
}
}
}
音声ファイルから情報を書き起こし、抽出します。
{
"name": "extract-audio",
"arguments": {
"url": "https://example.com/audio.mp3",
"language": "en",
"options": {
"model": "enhanced",
"speakerDiarization": true,
"wordTimestamps": true
}
}
}
トランスクリプト、シーン、オブジェクトなどのコンテンツをビデオから抽出します。
{
"name": "extract-video",
"arguments": {
"url": "https://example.com/video.mp4",
"extractionType": "transcript",
"options": {
"language": "en",
"speakerDiarization": true
}
}
}
PDF ファイルからメタデータを抽出します。
{
"name": "read-pdf-metadata",
"arguments": {
"url": "https://example.com/document.pdf",
"includeExtended": true
}
}
PDF ファイル内のメタデータを更新します。
{
"name": "write-pdf-metadata",
"arguments": {
"url": "https://example.com/document.pdf",
"metadata": {
"title": "New Title",
"author": "John Doe",
"keywords": ["keyword1", "keyword2"]
}
}
}
人工知能
22. エージェント補完を生成する ( generate-agent-completion
)
オプションのツール定義を使用して AI エージェントの補完を取得します。
{
"name": "generate-agent-completion",
"arguments": {
"prompt": "How can I improve my website's SEO?",
"model": "gpt-4",
"temperature": 0.7,
"maxTokens": 500,
"context": ["The website is an e-commerce store selling handmade crafts."]
}
}
23. ナレッジベースの検索 ( search-knowledge-base
)
ナレッジベースで関連情報を検索します。
{
"name": "search-knowledge-base",
"arguments": {
"kbId": "kb_12345",
"query": "How to optimize database performance",
"limit": 5,
"similarityThreshold": 0.7
}
}
24. ナレッジベースに追加 ( add-to-knowledge-base
)
ナレッジ ベースにエントリを追加します。
{
"name": "add-to-knowledge-base",
"arguments": {
"kbId": "kb_12345",
"entries": [
{
"text": "MongoDB is a document-based NoSQL database.",
"metadata": {
"source": "MongoDB documentation",
"category": "databases"
}
}
],
"upsert": true
}
}
25. AI画像を生成する( generate-ai-image
)
AI モデルを使用して画像を生成します。
{
"name": "generate-ai-image",
"arguments": {
"prompt": "A futuristic city with flying cars and neon lights",
"width": 1024,
"height": 1024,
"numImages": 1,
"quality": "hd",
"style": "photorealistic"
}
}
26. 画像を生成する( generate-image
)
さまざまな AI プロバイダーを使用して画像を生成します。
{
"name": "generate-image",
"arguments": {
"prompt": "A golden retriever in a meadow of wildflowers",
"provider": "dalle",
"width": 1024,
"height": 1024,
"numImages": 1
}
}
開発者ツール
27. JavaScript コードを実行する ( run-js-code
)
オプションの依存関係を持つ JavaScript コードを実行します。
{
"name": "run-js-code",
"arguments": {
"code": "const result = [1, 2, 3, 4].reduce((sum, num) => sum + num, 0); console.log(`Sum: ${result}`); return result;",
"dependencies": {
"lodash": "^4.17.21"
},
"timeout": 5000
}
}
28. Pythonコードを実行する( run-python-code
)
オプションの依存関係を持つ Python コードを実行します。
{
"name": "run-python-code",
"arguments": {
"code": "import numpy as np\narr = np.array([1, 2, 3, 4, 5])\nmean = np.mean(arr)\nprint(f'Mean: {mean}')\nreturn mean",
"dependencies": ["numpy", "pandas"],
"timeout": 10000,
"saveOutputFiles": true
}
}
エラー処理
サーバーは堅牢なエラー処理を提供します。
- HTTPステータスコードを含む詳細なエラーメッセージ
- APIキーの検証
- Zodスキーマを使用した入力検証
- 説明メッセージによるネットワークエラー処理
エラー応答の例:
{
"content": [
{
"type": "text",
"text": "Error: Failed to fetch YouTube transcript: 404 Not Found"
}
],
"isError": true
}
発達
# Install dependencies
npm install
# Build
npm run build
ライセンス
MITライセンス - 詳細はLICENSEファイルを参照