Skip to content

Commit 5f235c3

Browse files
committed
Update docs
1 parent c841446 commit 5f235c3

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

README.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Apify Model Context Protocol (MCP) Server
1+
# Apify Model Context Protocol (MCP) Server
22

33
Implementation of an MCP server for all [Apify Actors](https://apify.com/store).
44
This server enables interaction with one or more Apify Actors that can be defined in the MCP server configuration.
@@ -7,7 +7,7 @@ The server can be used in two ways:
77
- **Apify MCP Server Actor**: runs an HTTP server supporting the MCP protocol via Server-Sent Events (SSE).
88
- **Apify MCP Server Stdio**: provides support for the MCP protocol via standard input/output stdio.
99

10-
## 🎯 What does this MCP server do?
10+
# 🎯 What does this MCP server do?
1111

1212
The MCP Server Actor allows an AI assistant to:
1313
- Use any [Apify Actor](https://apify.com/store) as a tool to perform a specific task.For example it can:
@@ -27,14 +27,14 @@ When you have Actors integrated with the MCP server, you can ask:
2727
- Provide a step-by-step guide on using the Model Context Protocol with source URLs.
2828
- What Apify Actors I can use?
2929

30-
## 🔄 What is model context protocol?
30+
# 🔄 What is model context protocol?
3131

3232
The Model Context Protocol (MCP) allows AI applications (and AI agents), such as Claude Desktop, to connect to external tools and data sources.
3333
MCP is an open protocol that enables secure, controlled interactions between AI applications, AI Agents, and local or remote resources.
3434

35-
## 🧱 Components
35+
# 🧱 Components
3636

37-
### Tools
37+
## Tools
3838

3939
Any [Apify Actor](https://apify.com/store) can be used as a tool.
4040
By default, the server is pre-configured with the Actors specified below, but it can be overridden by providing a list of Actor names in the `actors` query parameter.
@@ -67,19 +67,19 @@ You don't need to specify the input parameters or which Actor to call, everythin
6767
When a tool is called, the arguments are automatically passed to the Actor by the LLM.
6868
You can refer to the specific Actor's documentation for a list of available arguments.
6969

70-
### Prompt & Resources
70+
## Prompt & Resources
7171

7272
The server does not provide any resources and prompts.
7373
We plan to add Apify's dataset and key-value store as resources in the future.
7474

75-
## ⚙️ Usage
75+
# ⚙️ Usage
7676

7777
The Apify MCP Server can be used in two ways: **as an Apify Actor** running at Apify platform
7878
or as a **local server** running on your machine.
7979

80-
### MCP Server Actor
80+
## MCP Server Actor
8181

82-
#### Standby web server
82+
### Standby web server
8383

8484
The Actor runs in [**Standby mode**](https://docs.apify.com/platform/actors/running/standby) with an HTTP web server that receives and processes requests.
8585

@@ -95,10 +95,9 @@ https://mcp-server.apify.actor?token=<APIFY_API_TOKEN>&actors=junglee/free-amazo
9595
```
9696
Find list of all available Actors in the [Apify Store](https://apify.com/store).
9797

98-
##### Interact with the MCP Server
98+
#### Interact with the MCP Server
9999

100100
Once the server is running, you can interact with Server-Sent Events (SSE) to send messages to the server and receive responses.
101-
102101
You can use MCP clients such as [Superinference.ai](https://superinterface.ai/) or [LibreChat](https://www.librechat.ai/).
103102
([Claude Desktop](https://claude.ai/download) does not support SSE transport yet)
104103

@@ -116,11 +115,7 @@ In the client settings you need to provide server configuration:
116115
}
117116
}
118117
```
119-
Alternatively, you can use simple python [client_see.py](https://github.com/apify/actor-mcp-server/tree/main/src/examples/client_sse.py).
120-
121-
##### Test the server using curl
122-
123-
You can test the server using `curl`:
118+
Alternatively, you can use simple python [client_see.py](https://github.com/apify/actor-mcp-server/tree/main/src/examples/client_sse.py) or test the server using curl commands.
124119

125120
1. Initiate Server-Sent-Events (SSE) by sending a GET request to the following URL:
126121
```
@@ -159,16 +154,16 @@ You can test the server using `curl`:
159154
data: {"result":{"content":[{"type":"text","text":"{\"searchString\":\"restaurants in San Francisco\",\"rank\":1,\"title\":\"Gary Danko\",\"description\":\"Renowned chef Gary Danko's fixed-price menus of American cuisine ... \",\"price\":\"$100+\"...}}]}}
160155
```
161156
162-
### MCP Server at local host
157+
## MCP Server at local host
163158
164-
#### Prerequisites
159+
### Prerequisites
165160
166161
- MacOS or Windows
167162
- The latest version of Claude Desktop must be installed (or another MCP client)
168163
- [Node.js](https://nodejs.org/en) (v18 or higher)
169164
- [Apify API Token](https://docs.apify.com/platform/integrations/api#api-token) (`APIFY_API_TOKEN`)
170165
171-
#### Install
166+
### Install
172167
173168
Follow the steps below to set up and run the server on your local machine:
174169
First, clone the repository using the following command:
@@ -243,9 +238,9 @@ Configure Claude Desktop to recognize the MCP server.
243238
Find and analyze instagram profile of the Rock.
244239
```
245240
246-
## 👷🏼 Development
241+
# 👷🏼 Development
247242
248-
### Prerequisites
243+
## Prerequisites
249244
250245
- [Node.js](https://nodejs.org/en) (v18 or higher)
251246
- Python 3.6 or higher
@@ -255,7 +250,7 @@ Create environment file `.env` with the following content:
255250
APIFY_API_TOKEN=your-apify-api-token
256251
```
257252

258-
### Local client (stdio)
253+
## Local client (stdio)
259254

260255
To test the server locally, you can use `examples/clientStdio.ts`:
261256

@@ -266,7 +261,7 @@ node dist/examples/clientStdio.js
266261
The script will start the MCP server with two Actors (`lukaskrivka/google-maps-with-contact-details` and `apify/rag-web-browser`).
267262
Then it will call `apify/rag-web-browser` tool with a query and will print the result.
268263

269-
### Chat local client (stdio)
264+
## Chat local client (stdio)
270265

271266
To run simple chat client, you can use `examples/clientSdioChat.ts`:
272267

@@ -275,7 +270,7 @@ node dist/examples/clientStdioChat.js
275270
```
276271
Here you can interact with the server using the chat interface.
277272

278-
### Local client (SSE)
273+
## Local client (SSE)
279274

280275
To test the server with the SSE transport, you can use python script `examples/client_sse.py`:
281276
Currently, the node.js client does not support to establish a connection to remote server witch custom headers.
@@ -286,7 +281,7 @@ node dist/clientSse.js
286281

287282
The script will start the MCP server with default Actors.
288283

289-
### Debugging
284+
## Debugging
290285

291286
Since MCP servers operate over standard input/output (stdio), debugging can be challenging.
292287
For the best debugging experience, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

0 commit comments

Comments
 (0)