Skip to content

Commit a9fb17c

Browse files
jirispilkaTC-MO
andauthored
feat: Improve description for MCP server tools configuration (#1773)
It should have only been a Section change (see context: https://apify.slack.com/archives/C08N1LWC596/p1753972689045599). But while I was at it, I took the liberty to make some changes to improve clarity. What I didn’t like about the current state: - Tool configuration was mixed into the Dynamic .... section. - Tool descriptions were essentially duplicated: once when describing the tools themselves, and again when describing the parameter that enabled the tools. Link to the updated doc: https://pr-1773.preview.docs.apify.com/platform/integrations/mcp#configure-tools-for-mcp-server --------- Co-authored-by: Michał Olender <[email protected]>
1 parent 4e22e4f commit a9fb17c

File tree

2 files changed

+62
-26
lines changed

2 files changed

+62
-26
lines changed

sources/platform/integrations/ai/langflow.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ This guide will demonstrate two different ways to use Apify Actors with Langflow
2929

3030
### Prerequisites
3131

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).
3333

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).
3535

3636
#### Langflow
3737

@@ -41,13 +41,13 @@ Langflow can either be installed locally or used in the cloud. The cloud version
4141

4242
:::
4343

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/):
4545

4646
```bash
4747
uv pip install langflow
4848
```
4949

50-
After successfully installing Langflow, we can start the platform:
50+
After installing Langflow, you can start the platform:
5151

5252
```bash
5353
uv run langflow run
@@ -62,24 +62,26 @@ When the platform is started, open the Langflow UI using `http://127.0.0.1:7860`
6262
On the Langflow welcome screen, click the **New Flow** button and then create **Blank Flow**:
6363
![New Flow screen - Blank Flow](../images/langflow/new_blank_flow.png)
6464

65-
Now, we can start building our flow.
65+
Now, you can start building your flow.
6666

6767
### Calling Apify Actors in Langflow
6868

69-
To call Apify Actors in Langflow, we need to add the **Apify Actors** component to the flow.
69+
To call Apify Actors in Langflow, you need to add the **Apify Actors** component to the flow.
7070
From the bundle menu, add **Apify Actors** component:
7171
![Flow - Add Apify Actors](../images/langflow/bundles_apify.png)
7272

73-
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)):
7476

7577
```json
7678
{"query": "what is monero?", "maxResults": 3}
7779
```
7880

79-
Now, we can run the component by clicking the **Run** button.
81+
Click **Run**.
8082
![Flow - Apify Actors Run](../images/langflow/apify_actors_run.png)
8183

82-
Once the run is finished, we can view the output by clicking the **Output** button.
84+
After the run finishes, click **Output** to view the results.
8385
![Flow - Apify Actors Output](../images/langflow/apify_actors_output.png)
8486

8587
The output should look similar to this:
@@ -94,16 +96,16 @@ When you run the component again, the output contains only the `markdown` and fl
9496

9597
![Flow - Apify Actors Output Filtered](../images/langflow/apify_actors_output_data_filtered.png)
9698

97-
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.
98100

99101
### Building a flow to search for a company's social media profiles
100102

101103
Create a new flow and add two **Apify Actors** components from the menu.
102104

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`:
104106
![Flow - Actors configuration](../images/langflow/apify_actors_configuration.png)
105107

106-
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)):
107109

108110
:::tip Optimize Agent results
109111

sources/platform/integrations/ai/mcp.md

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,27 +152,60 @@ By default, the main Actors MCP Server starts with a single default [RAG Web Bro
152152

153153
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.
154154

155-
## Dynamic Actor tooling
155+
## Configure tools for the MCP server
156156

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.
158159

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:
163161

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`).
165167

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.
167170

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
172172

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.
174205

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.
176209

177210
## Rate limits
178211

@@ -191,3 +224,4 @@ The Apify MCP server has a rate limit of _30 requests per second_ per user. If y
191224
- [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.
192225
- [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.
193226
- [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

Comments
 (0)