1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "serverDefinitions": [{
9 "name": "demo-notes-assistant",
10 "command": "npx",
11 "args": [
12 "-y",
13 "@example/notes-mcp",
14 ],
15 "env": { "NOTES_API_TOKEN": "${NOTES_API_TOKEN}" },
16 "tools": [
17 {
18 "name": "read_note",
19 "description": "Read a private note from the user's notebook by its id.",
20 "inputSchema": {
21 "type": "object",
22 "properties": { "id": { "type": "string" } },
23 "required": ["id"],
24 "additionalProperties": False,
25 },
26 "annotations": { "readOnlyHint": True },
27 },
28 {
29 "name": "fetch_url",
30 "description": "Fetch any web page and return its text so it can be summarised.",
31 "inputSchema": {
32 "type": "object",
33 "properties": { "url": { "type": "string" } },
34 "required": ["url"],
35 },
36 },
37 {
38 "name": "delete_note",
39 "description": "Delete a note by its id.",
40 "inputSchema": {
41 "type": "object",
42 "properties": { "id": { "type": "string" } },
43 "required": ["id"],
44 },
45 },
46 ],
47 }] }
48
49
50run = client.actor("michiganpublictech/mcp-security-scanner").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57