Apify 扩展
本教程介绍如何将 Apify MCP 服务器添加为 zai 扩展,使 zai 能够调用 Apify Store 中的数千个工具,从社交媒体、电子商务网站、搜索引擎、在线地图或任何其他网站提取数据。
配置
- Apify 远程 MCP
- Apify 本地 MCP
快速安装
- zai Desktop
- zai CLI
添加 Remote Extension (Streamable HTTP) 扩展类型,配置如下:
端点 URL
https://mcp.apify.com
自定义请求头
Authorization: Bearer <YOUR_APIFY_TOKEN>
- zai Desktop
- zai CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Apify 令牌 and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
zai configure
- Choose to add a
Remote Extension (Streamable HTTP).
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ○ Command-line Extension
│ ● Remote Extension (Streamable HTTP) (Connect to a remote extension via MCP Streamable HTTP)
└
- Give your extension a name.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◆ What would you like to call this extension?
│ Apify
└
- Enter the Streamable HTTP endpoint URI.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Apify
│
◆ What is the Streamable HTTP endpoint URI?
│ https://mcp.apify.com
└
- Enter the number of seconds zai should wait for actions to complete before timing out. Default is
300seconds.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Apify
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.apify.com
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Apify
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.apify.com
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ 使用 Apify Store 中数千个抓取器、爬虫和自动化工具从任何网站提取数据
└
- Add a custom header for this extension.
信息
获取你的 Apify 令牌,并作为
Bearer 令牌粘贴到相应位置。┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Apify
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.apify.com
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ 使用 Apify Store 中数千个抓取器、爬虫和自动化工具从任何网站提取数据
│
◆ Would you like to add custom headers?
│ Yes
│
◇ Header name:
│ Authorization
│
◇ Header value:
│ Bearer apify_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
│
◇ Add another header?
│ No
│
└ Added Apify extension
快速安装
- zai Desktop
- zai CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Apify 令牌 and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
zai configure
- Choose to add a
Command-line Extension.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension (Streamable HTTP)
└
- Give your extension a name.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ Apify Local MCP Server
└
- Enter the command to run when this extension is used.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Apify Local MCP Server
│
◆ What command should be run?
│ npx -y @apify/actors-mcp-server
└
- Enter the number of seconds zai should wait for actions to complete before timing out. Default is
300seconds.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Apify Local MCP Server
│
◇ What command should be run?
│ npx -y @apify/actors-mcp-server
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Apify Local MCP Server
│
◇ What command should be run?
│ npx -y @apify/actors-mcp-server
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ 使用 Apify Store 中数千个抓取器、爬虫和自动化工具从任何网站提取数据
└
- Add an environment variable for this extension.
信息
获取你的 Apify 令牌并粘贴到相应位置。
┌ zai-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Apify Local MCP Server
│
◇ What command should be run?
│ npx -y @apify/actors-mcp-server
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ 使用 Apify Store 中数千个抓取器、爬虫和自动化工具从任何网站提取数据
│
◆ Would you like to add environment variables?
│ Yes
│
◇ Environment variable name:
│ APIFY_TOKEN
│
◇ Environment variable value:
│ apify_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
│
◇ Add another environment variable?
│ No
│
└ Added Apify Local MCP Server extension
使用示例
Apify MCP 服务器让你可以将 zai 连接到 Apify Store——一个包含数千个现成工具(称为 Actors)的市场,适用于各种网页抓取、爬取和数据提取场景。你可以在官方文档中了解更多关于 Apify Actors 的信息。
在这个示例中,zai 将使用 Google Places Scraper Actor,根据公开评分、评论和精品餐饮界的认可度,找出布拉格最可信、评分最高的意大利餐厅。
zai 提示词
( O)> Find the top-rated Italian restaurant in Prague with verifiable credibility — use Apify MCP to find Google Maps review scraper Actor, focus on places with at least 200+ reviews, an average rating of 4.7 or higher on Google, TripAdvisor, or OpenTable, and any Michelin or fine-dining recognition. Include the restaurant’s name, rating, total review count, address, cuisine style, and a short summary of what makes it stand out (e.g., service, ambiance, or signature dishes). Return to me only 1 restaurant with the highest rating to review count ratio
zai 输出
Based on the gathered information, the top-rated Italian restaurant in Prague with verifiable credibility is:
### **Al Tagliere**
* **Rating:** 4.7/5
* **Total Reviews:** 457
* **Address:** [Al Tagliere on TripAdvisor](https://www.tripadvisor.com/Restaurant_Review-g274707-d6835155-Reviews-Al_Tagliere-Prague_Bohemia.html)
* **Cuisine Style:** Italian
* **Summary:** Al Tagliere is celebrated for its authentic Italian dishes that showcase regional flavors. The restaurant is known for its delightful ambiance, attentive service, and signature dishes such as homemade pasta and traditional desserts. Patrons frequently highlight the freshness of ingredients and the welcoming atmosphere, making it a preferred choice for both locals and tourists.
This restaurant has a strong reputation and meets your criteria for quality and credibility.