mcp npx fetch
Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestReturns the raw HTML content of the webpage
fetch_json
url
(string, required): URL of the JSON to fetchheaders
(object, optional): Custom headers to include in the requestReturns the parsed JSON content
fetch_txt
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestReturns the text content of the webpage with HTML tags, scripts, and styles removed
fetch_markdown
url
(string, required): URL of the website to fetchheaders
(object, optional): Custom headers to include in the requestThis server does not provide any persistent resources. It's designed to fetch and transform web content on demand.
npm install
npm run build
To use the server, you can run it directly:
npm start
This will start the Fetch MCP Server running on stdio.
To integrate this server with a desktop app, add the following to your app's server configuration:
{
"mcpServers": {
"fetch": {
"command": "node",
"args": [
"{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
]
}
}
}
npm run dev
to start the TypeScript compiler in watch modenpm test
to run the test suiteThis project is licensed under the MIT License.