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: src/fetch/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,27 @@
2
2
3
3
A Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.
4
4
5
-
Presently the server only supports fetching HTML content.
5
+
The fetch tool will truncate the response, but by using the `start_index` argument, you can specify where to start the content extraction. This lets models read a webpage in chunks, until they find the information they need.
6
6
7
7
### Available Tools
8
8
9
9
-`fetch` - Fetches a URL from the internet and extracts its contents as markdown.
10
+
-`url` (string, required): URL to fetch
11
+
-`max_length` (integer, optional): Maximum number of characters to return (default: 5000)
12
+
-`start_index` (integer, optional): Start content from this character index (default: 0)
13
+
-`raw` (boolean, optional): Get raw content without markdown conversion (default: false)
10
14
11
15
### Prompts
12
16
13
17
-**fetch**
14
18
- Fetch a URL and extract its contents as markdown
15
-
- Argument: `url` (string, required): URL to fetch
19
+
- Arguments:
20
+
-`url` (string, required): URL to fetch
16
21
17
22
## Installation
18
23
24
+
Optionally: Install node.js, this will cause the fetch server to use a different HTML simplifier that is more robust.
25
+
19
26
### Using uv (recommended)
20
27
21
28
When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
description="""Fetches a URL from the internet and extracts its contents as markdown.
196
+
description="""Fetches a URL from the internet and optionally extracts its contents as markdown.
128
197
129
198
Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.""",
0 commit comments