Apify Actors MCP 伺服器是一個基於模型上下文協定(Model Context Protocol, MCP)的伺服器實現,專門為 Apify 平台上的所有 Actor 提供統一的介面存取。該項目使 AI 應用和 AI 代理能夠通過標準化的協定與 Apify 的資料提取工具進行互動。
項目地址: https://github.com/apify/actors-mcp-server
主要用途: 將 Apify Store 中的 200 多個資料提取工具作為 AI 工具整合到各種 AI 應用中
支援平台: Claude Desktop、Visual Studio Code、LibreChat 等多種 MCP 客戶端
項目預設預配置了以下核心 Actor 工具:
apify/instagram-scraper
): 提取 Instagram 帖子、個人資料、地點、照片和評論apify/rag-web-browser
): 網路搜尋、爬取頁面內容並返回結構化資料lukaskrivka/google-maps-with-contact-details
): 提取 Google Maps 上的商家聯絡資訊支援以下 MCP 客戶端:
"搜尋網路並總結 AI 代理的最新趨勢"
"查找並分析 The Rock 的 Instagram 個人資料"
"找出舊金山排名前 10 的最佳義大利餐廳"
"提取特定區域的 Google Maps 商家聯絡資訊"
"提供使用模型上下文協定的分步指南和源 URL"
"分析 Facebook 頁面的最新帖子趨勢"
{
"mcpServers": {
"actors-mcp-server": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server"],
"env": {
"APIFY_TOKEN": "your-apify-token"
}
}
}
}
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "apify_token",
"description": "Apify API Token",
"password": true
}
],
"servers": {
"actors-mcp-server": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server"],
"env": {
"APIFY_TOKEN": "${input:apify_token}"
}
}
}
}
}
{
"command": "npx",
"args": [
"-y", "@apify/actors-mcp-server",
"--actors", "lukaskrivka/google-maps-with-contact-details,apify/instagram-scraper"
],
"env": {
"APIFY_TOKEN": "your-apify-token"
}
}
export APIFY_TOKEN=your-apify-token
npx @modelcontextprotocol/inspector npx -y @apify/actors-mcp-server
項目提供了完整的示例代碼:
examples/clientStdio.ts
examples/clientSse.ts
Apify Actors MCP 伺服器代表了 AI 應用工具整合的重要進步,它通過標準化的 MCP 協定將強大的資料提取能力帶給了各種 AI 應用。該項目的主要價值包括:
這個項目為 AI 應用的資料獲取需求提供了一個強大、靈活且易於使用的解決方案,是現代 AI 工具棧中的重要組成部分。