You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/platform/integrations/ai/langflow.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ This guide will demonstrate two different ways to use Apify Actors with Langflow
29
29
30
30
### Prerequisites
31
31
32
-
-**Apify API token**: To use Apify Actors in Langflow, you need an Apify API token. If you don't have one, you can learn how to obtain it in the [Apify documentation](https://docs.apify.com/platform/integrations/api).
32
+
-**Apify API token**: To use Apify Actors in Langflow, you need an Apify API token. If you don't have one, you can learn how to get it in the [Apify documentation](https://docs.apify.com/platform/integrations/api).
33
33
34
-
-**OpenAI API key**: In order to work with agents in Langflow, you need an OpenAI API key. If you don't have one, you can get it from the [OpenAI platform](https://platform.openai.com/account/api-keys).
34
+
-**OpenAI API key**: To work with agents in Langflow, you need an OpenAI API key. If you don't have one, you can get it from the [OpenAI platform](https://platform.openai.com/account/api-keys).
35
35
36
36
#### Langflow
37
37
@@ -41,13 +41,13 @@ Langflow can either be installed locally or used in the cloud. The cloud version
41
41
42
42
:::
43
43
44
-
First, we need to install the Langflow platform using python package and project manager [uv](https://docs.astral.sh/uv/):
44
+
First, install the Langflow platform using Python package and project manager [uv](https://docs.astral.sh/uv/):
45
45
46
46
```bash
47
47
uv pip install langflow
48
48
```
49
49
50
-
After successfully installing Langflow, we can start the platform:
50
+
After installing Langflow, you can start the platform:
51
51
52
52
```bash
53
53
uv run langflow run
@@ -62,24 +62,26 @@ When the platform is started, open the Langflow UI using `http://127.0.0.1:7860`
62
62
On the Langflow welcome screen, click the **New Flow** button and then create **Blank Flow**:
Next, we need to configure the Apify Actors components. First, input your API token (learn how to get it [here](https://docs.apify.com/platform/integrations/api)). Then, set the Actor ID of the component to `apify/rag-web-browser` to use the [RAG Web Browser](https://apify.com/apify/rag-web-browser). Set the **Run input** field to pass arguments to the Actor run, allowing it to search Google with the query `"what is monero?"` (full Actor input schema can be found [here](https://apify.com/apify/rag-web-browser/input-schema)):
73
+
Next, configure the Apify Actors components. First, input your API token (learn how to get it at [Integrations](https://docs.apify.com/platform/integrations/api)).
74
+
Then, set the Actor ID of the component to `apify/rag-web-browser` to use the [RAG Web Browser](https://apify.com/apify/rag-web-browser).
75
+
Set the **Run input** field to pass arguments to the Actor run, allowing it to search Google with the query `"what is monero?"` (full Actor input schema can be found in the [RAG Web Browser input schema](https://apify.com/apify/rag-web-browser/input-schema)):
74
76
75
77
```json
76
78
{"query": "what is monero?", "maxResults": 3}
77
79
```
78
80
79
-
Now, we can run the component by clicking the **Run** button.
Now that we understand how to call Apify Actors, let's build a practical example where we search for a company's social media profiles and extract data from them.
99
+
Now that you understand how to call Apify Actors, let's build a practical example where you search for a company's social media profiles and extract data from them.
98
100
99
101
### Building a flow to search for a company's social media profiles
100
102
101
103
Create a new flow and add two **Apify Actors** components from the menu.
102
104
103
-
Input your API token (learn how to get it [here](https://docs.apify.com/platform/integrations/api)) and set the Actor ID of the first component to `apify/google-search-scraper` and the second one to `clockworks/free-tiktok-scraper`:
105
+
Input your API token (learn how to get it in the [Integrations documentation](https://docs.apify.com/platform/integrations/api)) and set the Actor ID of the first component to `apify/google-search-scraper` and the second one to `clockworks/free-tiktok-scraper`:
Add the **Agent** component from the menu and set your OpenAI API key (get it [here](https://platform.openai.com/account/api-keys)):
108
+
Add the **Agent** component from the menu and set your OpenAI API key (get it from the [OpenAI API keys page](https://platform.openai.com/account/api-keys)):
Copy file name to clipboardExpand all lines: sources/platform/integrations/ai/mcp.md
+48-14Lines changed: 48 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,27 +152,60 @@ By default, the main Actors MCP Server starts with a single default [RAG Web Bro
152
152
153
153
In summary, you can start with a broad set (everything open and discoverable) or a narrow set (just what you need) and even expand tools on the fly, giving your agent a lot of flexibility without overwhelming it initially.
154
154
155
-
## Dynamic Actor tooling
155
+
## Configure tools for the MCP server
156
156
157
-
One of the powerful features of MCP with Apify is **dynamic Actor tooling** – the ability for an AI agent to find new tools (Actors) as needed and incorporate them. Here are some special MCP operations and how Apify MCP Server supports them:
157
+
You can customize the MCP server’s available tools by adding query parameters to the server URL or by passing arguments to the CLI.
158
+
This allows you to enable or disable specific tool categories and control which tools are available.
158
159
159
-
-_Actor discovery and management:_ Search for [Actors](https://docs.apify.com/platform/actors) (`search-actors`), view details (`get-actor-details`), and dynamically add them (`add-actor`).
160
-
-_Apify documentation:_ Search Apify documentation (`search-apify-docs`) and fetch specific documents (`fetch-apify-docs`).
161
-
-_Actor runs (*):_ Get a list of your [Actor runs](https://docs.apify.com/platform/actors/running/runs-and-builds#runs) (`get-actor-run-list`), specific run details (`get-actor-run`), and logs from a specific Actor run (`get-actor-log`).
162
-
-_Apify storage (*):_ Access [datasets](https://docs.apify.com/platform/storage/dataset)(`get-dataset`, `get-dataset-items`, `get-dataset-list`), [key-value stores](https://docs.apify.com/platform/storage/key-value-store) (`get-key-value-store`, `get-key-value-store-keys`, `get-key-value-store-record`, `get-key-value-store-records`), and their records.
160
+
The following tool categories are available:
163
161
164
-
:::note Optional tools
162
+
-_Actor discovery and management_ (default, always enabled): Search for [Actors](https://docs.apify.com/platform/actors) (`search-actors`), view details (`get-actor-details`), and dynamically add them (`add-actor`).
163
+
-_docs_ (default, can be disabled): Search Apify documentation (`search-apify-docs`) and fetch specific documents (`fetch-apify-docs`).
164
+
-_runs_ (optional): Get a list of your [Actor runs](https://docs.apify.com/platform/actors/running/runs-and-builds#runs) (`get-actor-run-list`), specific run details (`get-actor-run`), and logs from a specific Actor run (`get-actor-log`).
165
+
-_storage_ (optional): Access [datasets](https://docs.apify.com/platform/storage/dataset) and [key-value stores](https://docs.apify.com/platform/storage/key-value-store), including their records (`get-dataset`, `get-dataset-items`, `get-dataset-list`, `get-key-value-store`, `get-key-value-store-keys`, `get-key-value-store-record`, `get-key-value-store-records`).
166
+
-_preview_ (optional): Experimental tools in preview mode. Call any Actor using API (`call-actor`).
165
167
166
-
Helper tool categories marked with (*) are not enabled by default in the MCP server and must be explicitly enabled using the `tools` argument (either the `--tools` command line argument for the stdio server or the `?tools` URL query parameter for the remote MCP server). The `tools` argument is a comma-separated list of categories with the following possible values:
168
+
The _Actor discovery and management_ tools are always present and cannot be disabled.
169
+
The _docs_ tools are enabled by default but can be switched off using the `tools` parameter.
167
170
168
-
-`docs`: Search and fetch Apify documentation.
169
-
-`runs`: Get Actor runs list, run details, and logs from a specific Actor run.
170
-
-`storage`: Access datasets, key-value stores, and their records.
171
-
-`preview`: Experimental tools in preview mode.
171
+
### Configure mcp.apify.com using query parameters
172
172
173
-
:::
173
+
Use the `tools` query parameter to enable or disable specific tool categories.
174
+
175
+
For example, to enable only the `runs` and `storage` tools, you can use:
176
+
177
+
```text
178
+
https://mcp.apify.com/?tools=runs,storage
179
+
```
180
+
181
+
The server will expose all _Actor discovery and management tools_, as well as `runs` and `storage`.
182
+
The list of tools you can enable/disable is as follows: `docs`, `runs`, `storage`, and `preview`.
183
+
184
+
185
+
### Configure stdio server using CLI arguments
186
+
187
+
When running the MCP server via the command line, you can specify the tools using the `--tools` parameter.
188
+
For example, to enable only the `runs` and `storage` tools, you can run:
189
+
190
+
```bash
191
+
npx @apify/actors-mcp-server --tools runs,storage
192
+
```
193
+
194
+
## Dynamic discovery of Actors
195
+
196
+
One of the powerful features of MCP with Apify is **dynamic Actor tooling** – the ability for an AI agent to find new tools (Actors) as needed and incorporate them.
197
+
198
+
Supported dynamic tool operations (enabled by default):
199
+
200
+
-`search-actors`: Find available Actors by keyword or category.
201
+
-`get-actor-details`: View details and usage information for a specific Actor.
202
+
-`add-actor`: Dynamically add an Actor as a tool for the current session, making it available for use.
203
+
204
+
These operations allow your agent to expand its toolset on demand, without requiring a server restart or manual configuration.
174
205
175
-
For example, to enable all tools, use `npx @apify/actors-mcp-server --tools docs,runs,storage,preview` or `https://mcp.apify.com/?tools=docs,runs,storage,preview`.
206
+
Dynamic tool addition can be disabled using the `?enableAddingActors=false`.
207
+
Not all MCP clients support dynamic tool addition.
208
+
Check your client’s documentation or settings to confirm this feature is available.
176
209
177
210
## Rate limits
178
211
@@ -191,3 +224,4 @@ The Apify MCP server has a rate limit of _30 requests per second_ per user. If y
191
224
-[Apify Actors MCP Server](https://apify.com/apify/actors-mcp-server): The README for the Apify MCP Server actor (available on Apify Store as `apify/actors-mcp-server`) provides technical details on implementation and advanced usage.
192
225
-[Apify Tester MCP Client](https://apify.com/jiri.spilka/tester-mcp-client): A specialized client actor (`jiri.spilka/tester-mcp-client`) that you can run to simulate an AI agent in your browser. Useful for testing your setup with a chat UI.
193
226
-[How to use MCP with Apify Actors](https://blog.apify.com/how-to-use-mcp/): Learn how to expose over 5,000 Apify Actors to AI agents with Claude and LangGraph, and configure MCP clients and servers.
227
+
-[Apify MCP Server Tutorial](https://www.youtube.com/watch?v=BKu8H91uCTg): Integrate thousands of Apify Actors and Agents with Claude.
0 commit comments