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
+56-36Lines changed: 56 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,21 @@ An SSE Go implementation of the `fetch` MCP server that retrieves web content.
11
11
12
12
## Why _this_ fetch and not `mcp/fetch`?
13
13
14
-
This Go implementation provides similar functionality as the original [Python MCP fetch server](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch) but has the following benefits:
14
+
This Go implementation provides similar functionality as the original
@@ -121,14 +128,18 @@ The server provides a single tool called `fetch` with the following parameters:
121
128
122
129
### Tool: `fetch`
123
130
124
-
Fetches a URL from the internet and optionally extracts its contents as markdown.
131
+
Fetches a URL from the internet and optionally extracts its contents as
132
+
markdown.
125
133
126
134
#### Parameters
127
135
128
136
-`url` (required): The URL to fetch
129
-
-`max_length` (optional): Maximum number of characters to return (default: 5000, max: 1000000)
130
-
-`start_index` (optional): Starting character index for content extraction (default: 0)
131
-
-`raw` (optional): Return raw HTML content without simplification (default: false)
137
+
-`max_length` (optional): Maximum number of characters to return (default:
138
+
5000, max: 1000000)
139
+
-`start_index` (optional): Starting character index for content extraction
140
+
(default: 0)
141
+
-`raw` (optional): Return raw HTML content without simplification (default:
142
+
false)
132
143
133
144
#### Examples
134
145
@@ -143,7 +154,7 @@ Fetches a URL from the internet and optionally extracts its contents as markdown
143
154
144
155
```json
145
156
{
146
-
"name": "fetch",
157
+
"name": "fetch",
147
158
"arguments": {
148
159
"url": "https://example.com",
149
160
"max_length": 1000,
@@ -180,20 +191,24 @@ task deps
180
191
181
192
## Running as an MCP Server with ToolHive
182
193
183
-
fetch can be run as a Model Context Protocol (MCP) server using [ToolHive](https://github.com/stacklok/toolhive), which simplifies the deployment and management of MCP servers.
194
+
fetch can be run as a Model Context Protocol (MCP) server using
195
+
[ToolHive](https://github.com/stacklok/toolhive), which simplifies the
196
+
deployment and management of MCP servers.
184
197
185
198
### Prerequisites
186
199
187
-
1. Install ToolHive by following the [installation instructions](https://github.com/stacklok/toolhive#installation).
0 commit comments