Apify 扩展
本教程介绍如何将 Apify MCP 服务器 添加为 goose 扩展,让 goose 能够调用 Apify Store 中的数千个工具,从社交媒体、电商网站、搜索引擎、在线地图或任何其他网站提取数据。
配置
- Apify 远程 MCP
- Apify 本地 MCP
快速安装
- goose Desktop
- goose CLI
添加 Remote Extension (Streamable HTTP) 扩展类型,并填写:
端点 URL
https://mcp.apify.com
自定义请求头
Authorization: Bearer <YOUR_APIFY_TOKEN>
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Apify Token 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:
goose configure
- Choose to add a
Remote Extension (Streamable HTTP).
┌ goose-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.
┌ goose-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.
┌ goose-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 goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-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.
┌ goose-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 Token,并将其作为
Bearer 令牌粘贴。┌ goose-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
快速安装
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Apify Token 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:
goose configure
- Choose to add a
Command-line Extension.
┌ goose-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.
┌ goose-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.
┌ goose-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 goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-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.
┌ goose-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 Token 并粘贴到此处。
┌ goose-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 服务器让你把 goose 连接到 Apify Store。这是一个包含数千个现成工具(称为 Actor)的市场,覆盖各类网页抓取、爬取和数据提取场景。更多关于 Apify Actor 的内容见官方文档。
在这个示例中,goose 将使用 Google Places Scraper Actor,根据公开评分、评论和精致餐饮认可度,找出布拉格最可信、评分最高的意大利餐厅。
goose 提示词
( O)> 找出布拉格评分最高、可信度可核实的意大利餐厅。使用 Apify MCP 找到 Google Maps 评论抓取 Actor,关注至少 200 条以上评论、在 Google、TripAdvisor 或 OpenTable 上平均评分 4.7 或更高,以及任何米其林或精致餐饮认可的地点。请包含餐厅名称、评分、评论总数、地址、菜系风格,以及它脱颖而出的简短原因(例如服务、氛围或招牌菜)。只返回评分与评论数之比最高的 1 家餐厅
goose 输出
根据收集到的信息,布拉格评分最高、可信度可核实的意大利餐厅是:
### **Al Tagliere**
* **评分:** 4.7/5
* **评论总数:** 457
* **地址:** [TripAdvisor 上的 Al Tagliere](https://www.tripadvisor.com/Restaurant_Review-g274707-d6835155-Reviews-Al_Tagliere-Prague_Bohemia.html)
* **菜系风格:** 意大利菜
* **简介:** Al Tagliere 以其展现地方风味的正宗意大利菜而闻名。餐厅以愉悦的氛围、周到的服务,以及自制意面和传统甜点等招牌菜著称。顾客经常提到食材新鲜、气氛热情,因此它是本地人和游客都偏爱的选择。
这家餐厅声誉良好,符合你对品质和可信度的标准。