MCP NPX Fetch
@tokenizin-agency
About MCP NPX Fetch
A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-npx-fetch": {
"command": "npx",
"args": [
"@tokenizin/mcp-npx-fetch"
]
}
}
}Tools
4Fetch a website and return the content as HTML
Fetch a website and return the content as Markdown
Fetch a website, return the content as plain text (no HTML)
Fetch a JSON file from a URL
Overview
What is MCP NPX Fetch?
MCP NPX Fetch is an MCP server that fetches web content and transforms it into formats such as HTML, JSON, Markdown, or plain text, designed for integration with MCP clients like Claude Desktop.
How to use MCP NPX Fetch?
Install globally via npm install -g @tokenizin/mcp-npx-fetch or run directly with npx @tokenizin/mcp-npx-fetch. Add a configuration entry to your Claude Desktop config to use it as an MCP server, then call any of its four tools (fetch_html, fetch_json, fetch_txt, fetch_markdown) from your MCP client.
Key features of MCP NPX Fetch
- Supports fetching content in HTML, JSON, text, and Markdown formats
- Custom request headers for authentication and personalization
- Automatic conversion between content formats
- Seamless integration with Claude Desktop and other MCP clients
- Full TypeScript type definitions for type safety
- Built on JSDOM, Turndown, Zod, and the MCP SDK
Use cases of MCP NPX Fetch
- Extract clean text from any webpage for LLM consumption
- Fetch and parse JSON APIs directly into structured data
- Convert web pages to Markdown for documentation or note-taking
- Add authentication headers to access private content
FAQ from MCP NPX Fetch
What is the difference between the four tools?
fetch_html returns raw HTML, fetch_json parses JSON, fetch_txt strips HTML to plain text, and fetch_markdown converts HTML to Markdown.
What runtime dependencies are required?
Node.js and npm; the server uses JSDOM, Turndown, the MCP SDK, and Zod under the hood.
How do I pass custom headers?
All four tools accept an optional headers object where you can provide key-value pairs for request headers.
Does MCP NPX Fetch support authentication?
Yes, you can include authentication tokens or API keys via the custom headers parameter.
Where does the fetched data reside?
The server returns the fetched content directly in the tool response; no data is stored or cached by the server.
Frequently asked questions
What is the difference between the four tools?
fetch_html returns raw HTML, fetch_json parses JSON, fetch_txt strips HTML to plain text, and fetch_markdown converts HTML to Markdown.
What runtime dependencies are required?
Node.js and npm; the server uses JSDOM, Turndown, the MCP SDK, and Zod under the hood.
How do I pass custom headers?
All four tools accept an optional `headers` object where you can provide key-value pairs for request headers.
Does MCP NPX Fetch support authentication?
Yes, you can include authentication tokens or API keys via the custom headers parameter.
Where does the fetched data reside?
The server returns the fetched content directly in the tool response; no data is stored or cached by the server.
Basic information
More Browser Automation MCP servers
Browserbase MCP Server
browserbaseAllow LLMs to control a browser with Browserbase and Stagehand
Playwright Mcp
microsoftPlaywright MCP server
Scrapling Fetch MCP
cyberchittaHelps AI assistants access text content from bot-protected websites. MCP server that fetches HTML/markdown from sites with anti-automation measures using Scrapling.
mcp-browser-use: MCP server for browser-use
vinayak-mehtaMCP server for browser-use
BitBrowser MCP service
BitBrowser01BitBrowser MCP simple to use, no complicated procedures required. Supports a variety of intelligent agent services.
Comments