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: README.md
+20-25Lines changed: 20 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
##Apify Model Context Protocol (MCP) Server
1
+
# Apify Model Context Protocol (MCP) Server
2
2
3
3
Implementation of an MCP server for all [Apify Actors](https://apify.com/store).
4
4
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:
7
7
-**Apify MCP Server Actor**: runs an HTTP server supporting the MCP protocol via Server-Sent Events (SSE).
8
8
-**Apify MCP Server Stdio**: provides support for the MCP protocol via standard input/output stdio.
9
9
10
-
##🎯 What does this MCP server do?
10
+
# 🎯 What does this MCP server do?
11
11
12
12
The MCP Server Actor allows an AI assistant to:
13
13
- 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:
27
27
- Provide a step-by-step guide on using the Model Context Protocol with source URLs.
28
28
- What Apify Actors I can use?
29
29
30
-
##🔄 What is model context protocol?
30
+
# 🔄 What is model context protocol?
31
31
32
32
The Model Context Protocol (MCP) allows AI applications (and AI agents), such as Claude Desktop, to connect to external tools and data sources.
33
33
MCP is an open protocol that enables secure, controlled interactions between AI applications, AI Agents, and local or remote resources.
34
34
35
-
##🧱 Components
35
+
# 🧱 Components
36
36
37
-
###Tools
37
+
## Tools
38
38
39
39
Any [Apify Actor](https://apify.com/store) can be used as a tool.
40
40
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
67
67
When a tool is called, the arguments are automatically passed to the Actor by the LLM.
68
68
You can refer to the specific Actor's documentation for a list of available arguments.
69
69
70
-
###Prompt & Resources
70
+
## Prompt & Resources
71
71
72
72
The server does not provide any resources and prompts.
73
73
We plan to add Apify's dataset and key-value store as resources in the future.
74
74
75
-
##⚙️ Usage
75
+
# ⚙️ Usage
76
76
77
77
The Apify MCP Server can be used in two ways: **as an Apify Actor** running at Apify platform
78
78
or as a **local server** running on your machine.
79
79
80
-
###MCP Server Actor
80
+
## MCP Server Actor
81
81
82
-
####Standby web server
82
+
### Standby web server
83
83
84
84
The Actor runs in [**Standby mode**](https://docs.apify.com/platform/actors/running/standby) with an HTTP web server that receives and processes requests.
Find list of all available Actors in the [Apify Store](https://apify.com/store).
97
97
98
-
#####Interact with the MCP Server
98
+
#### Interact with the MCP Server
99
99
100
100
Once the server is running, you can interact with Server-Sent Events (SSE) to send messages to the server and receive responses.
101
-
102
101
You can use MCP clients such as [Superinference.ai](https://superinterface.ai/) or [LibreChat](https://www.librechat.ai/).
103
102
([Claude Desktop](https://claude.ai/download) does not support SSE transport yet)
104
103
@@ -116,11 +115,7 @@ In the client settings you need to provide server configuration:
116
115
}
117
116
}
118
117
```
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.
124
119
125
120
1. Initiate Server-Sent-Events (SSE) by sending a GET request to the following URL:
126
121
```
@@ -159,16 +154,16 @@ You can test the server using `curl`:
159
154
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+\"...}}]}}
160
155
```
161
156
162
-
### MCP Server at local host
157
+
## MCP Server at local host
163
158
164
-
#### Prerequisites
159
+
### Prerequisites
165
160
166
161
- MacOS or Windows
167
162
- The latest version of Claude Desktop must be installed (or another MCP client)
168
163
- [Node.js](https://nodejs.org/en) (v18 or higher)
169
164
- [Apify API Token](https://docs.apify.com/platform/integrations/api#api-token) (`APIFY_API_TOKEN`)
170
165
171
-
#### Install
166
+
### Install
172
167
173
168
Follow the steps below to set up and run the server on your local machine:
174
169
First, clone the repository using the following command:
@@ -243,9 +238,9 @@ Configure Claude Desktop to recognize the MCP server.
243
238
Find and analyze instagram profile of the Rock.
244
239
```
245
240
246
-
## 👷🏼 Development
241
+
# 👷🏼 Development
247
242
248
-
### Prerequisites
243
+
## Prerequisites
249
244
250
245
- [Node.js](https://nodejs.org/en) (v18 or higher)
251
246
- Python 3.6 or higher
@@ -255,7 +250,7 @@ Create environment file `.env` with the following content:
255
250
APIFY_API_TOKEN=your-apify-api-token
256
251
```
257
252
258
-
###Local client (stdio)
253
+
## Local client (stdio)
259
254
260
255
To test the server locally, you can use `examples/clientStdio.ts`:
0 commit comments