Crawlab MCP Server
OfficialCrawlab MCP サーバー
これは Crawlab のモデル コンテキスト プロトコル (MCP) サーバーであり、AI アプリケーションが Crawlab の機能と対話できるようにします。
概要
MCP サーバーは、AI アプリケーションが Crawlab の機能にアクセスするための標準化された方法を提供します。これには以下が含まれます。
スパイダー管理(作成、読み取り、更新、削除)
タスク管理(実行、キャンセル、再開)
ファイル管理(読み取り、書き込み)
リソース アクセス (スパイダー、タスク)
Related MCP server: MCP Python Toolbox
建築
MCP サーバー/クライアント アーキテクチャは、AI アプリケーションと Crawlab 間の通信を容易にします。
graph TB
User[User] --> Client[MCP Client]
Client --> LLM[LLM Provider]
Client <--> Server[MCP Server]
Server <--> Crawlab[Crawlab API]
subgraph "MCP System"
Client
Server
end
subgraph "Crawlab System"
Crawlab
DB[(Database)]
Crawlab <--> DB
end
class User,LLM,Crawlab,DB external;
class Client,Server internal;
%% Flow annotations
LLM -.-> |Tool calls| Client
Client -.-> |Executes tool calls| Server
Server -.-> |API requests| Crawlab
Crawlab -.-> |API responses| Server
Server -.-> |Tool results| Client
Client -.-> |Human-readable response| User
classDef external fill:#f9f9f9,stroke:#333,stroke-width:1px;
classDef internal fill:#d9edf7,stroke:#31708f,stroke-width:1px;コミュニケーションフロー
ユーザークエリ: ユーザーはMCPクライアントに自然言語クエリを送信します。
LLM処理: クライアントはクエリをLLMプロバイダー(例:Claude、OpenAI)に転送します。
ツール選択: LLMは必要なツールを識別し、ツール呼び出しを生成します
ツール実行: クライアントはツール呼び出しをMCPサーバーに送信します。
APIインタラクション: サーバーは対応するCrawlab APIリクエストを実行します。
レスポンス生成: 結果はサーバーを経由してクライアントへ、そしてLLMへ返されます。
ユーザーの応答: クライアントは最終的な人間が読める応答をユーザーに配信します。
インストールと使用方法
オプション1: Pythonパッケージとしてインストールする
便利な CLI を提供する Python パッケージとして MCP サーバーをインストールできます。
# Install from source
pip install -e .
# Or install from GitHub (when available)
# pip install git+https://github.com/crawlab-team/crawlab-mcp-server.gitインストール後、CLI を使用できます。
# Start the MCP server
crawlab_mcp-mcp server [--spec PATH_TO_SPEC] [--host HOST] [--port PORT]
# Start the MCP client
crawlab_mcp-mcp client SERVER_URLオプション2: ローカルで実行
前提条件
Python 3.8以上
Crawlab インスタンスが実行中でありアクセス可能
CrawlabからのAPIトークン
構成
.env.exampleファイルを.envにコピーします。cp .env.example .envCrawlab API の詳細を使用して
.envファイルを編集します。CRAWLAB_API_BASE_URL=http://your-crawlab-instance:8080/api CRAWLAB_API_TOKEN=your_api_token_here
ローカルで実行
依存関係をインストールします:
pip install -r requirements.txtサーバーを実行します。
python server.py
Dockerで実行する
Docker イメージをビルドします。
docker build -t crawlab-mcp-server .コンテナを実行します。
docker run -p 8000:8000 --env-file .env crawlab-mcp-server
Docker Composeとの統合
既存の Crawlab Docker Compose セットアップに MCP サーバーを追加するには、次のサービスをdocker-compose.ymlに追加します。
services:
# ... existing Crawlab services
mcp-server:
build: ./backend/mcp-server
ports:
- "8000:8000"
environment:
- CRAWLAB_API_BASE_URL=http://backend:8000/api
- CRAWLAB_API_TOKEN=your_api_token_here
depends_on:
- backendAIアプリケーションでの使用
MCPサーバーは、AIアプリケーションが自然言語を介してCrawlabと対話することを可能にします。上記のアーキテクチャ図に従って、MCPシステムの使用方法は以下のとおりです。
接続の設定
MCPサーバーを起動します。MCPサーバーが実行中でアクセス可能であることを確認します。
AIクライアントを構成する: AIアプリケーションをMCPサーバーに接続する
例: Claude Desktop での使用
クロードデスクトップを開く
設定 > MCPサーバーへ移動
MCP サーバーの URL (例:
http://localhost:8000) を使用して新しいサーバーを追加します。クロードとの会話では、自然言語でやりたいことを説明することで、Crawlabの機能を使用できるようになりました。
やり取りの例
私たちのアーキテクチャに基づいた、システムとのやり取りの例を以下に示します。
スパイダーを作成する:
User: "Create a new spider named 'Product Scraper' for the e-commerce project"
↓
LLM identifies intent and calls the create_spider tool
↓
MCP Server executes the API call to Crawlab
↓
Spider is created and details are returned to the userタスクを実行する:
User: "Run the 'Product Scraper' spider on all available nodes"
↓
LLM calls the run_spider tool with appropriate parameters
↓
MCP Server sends the command to Crawlab API
↓
Task is started and confirmation is returned to the user利用可能なコマンド
次のような自然言語コマンドを使用してシステムと対話できます。
「私のクモをすべてリストする」
「これらの仕様で新しいスパイダーを作成します...」
「Xという名のクモのコードを見せてください」
「このコードを使用して、Spider X の main.py ファイルを更新します...」
「スパイダーXを実行し、完了したら通知してください」
「スパイダーXの最後の実行結果を見せてください」
利用可能なリソースとツール
これらは、自然言語によるやりとりを可能にする基礎となるツールです。
リソース
spiders: すべてのクモを一覧表示tasks: すべてのタスクを一覧表示する
ツール
クモ管理
get_spider: 特定のスパイダーの詳細を取得するcreate_spider: 新しいスパイダーを作成するupdate_spider: 既存のスパイダーを更新するdelete_spider: スパイダーを削除する
タスク管理
get_task: 特定のタスクの詳細を取得するrun_spider: スパイダーを実行するcancel_task: 実行中のタスクをキャンセルするrestart_task: タスクを再開するget_task_logs: タスクのログを取得する
ファイル管理
get_spider_files: スパイダーのファイルを一覧表示するget_spider_file: 特定のファイルの内容を取得するsave_spider_file: コンテンツをファイルに保存する
This server cannot be installed
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 Servers
- FlicenseAqualityFmaintenanceA Model Context Protocol server that enables Docker container management through natural language interactions using a custom GPT interface.715
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.9MIT
- AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that enables AI assistants to interact with Coolify instances through natural language, allowing management of servers, applications, databases, and deployments.2,970559MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.3227ISC
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/crawlab-team/crawlab-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server