MCP NPX Fetch
The MCP NPX Fetch server is a versatile tool for fetching and transforming web content into various formats.
🌐 Universal Content Fetching: Fetch HTML, JSON, plain text, and Markdown content from any URL
🔒 Custom Headers Support: Add authentication and custom headers to your requests
🛠 Built-in Transformations: Convert web content between different formats (HTML, JSON, plain text, Markdown)
🔌 MCP Compatibility: Seamlessly integrates with MCP clients like Claude Desktop
⚡ High Performance: Optimized for speed using modern JavaScript and TypeScript
Provides a tool for fetching web content and converting it to well-formatted Markdown, making it easier to work with web content in Markdown-compatible systems.
Built with TypeScript, offering full type definitions and type safety for developers working with the MCP server.
Leverages Zod for runtime type validation, ensuring reliable data handling when fetching and transforming web content.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP NPX Fetch fetch the latest Hacker News homepage as markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP NPX Fetch
A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
Installation • Features • Usage • Documentation • Contributing
🚀 Features
🌐 Universal Content Fetching: Supports HTML, JSON, plain text, and Markdown formats
🔒 Custom Headers Support: Add authentication and custom headers to your requests
🛠 Built-in Transformations: Automatic conversion between formats
⚡ High Performance: Built with modern JavaScript features and optimized for speed
🔌 MCP Compatible: Seamlessly integrates with Claude Desktop and other MCP clients
🎯 Type-Safe: Written in TypeScript with full type definitions
Related MCP server: webfetch-camouflage
📦 Installation
NPM Global Installation
npm install -g @tokenizin/mcp-npx-fetch
Direct Usage with NPX
npx @tokenizin/mcp-npx-fetch📚 Documentation
Available Tools
fetch_html
Fetches and returns raw HTML content from any URL.
{
url: string; // Required: Target URL
headers?: { // Optional: Custom request headers
[key: string]: string;
};
}fetch_json
Fetches and parses JSON data from any URL.
{
url: string; // Required: Target URL
headers?: { // Optional: Custom request headers
[key: string]: string;
};
}fetch_txt
Fetches and returns clean plain text content, removing HTML tags and scripts.
{
url: string; // Required: Target URL
headers?: { // Optional: Custom request headers
[key: string]: string;
};
}fetch_markdown
Fetches content and converts it to well-formatted Markdown.
{
url: string; // Required: Target URL
headers?: { // Optional: Custom request headers
[key: string]: string;
};
}🔧 Usage
CLI Usage
Start the MCP server directly:
mcp-npx-fetchOr via npx:
npx @tokenizin/mcp-npx-fetchClaude Desktop Integration
Locate your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the following configuration to your
mcpServersobject:
{
"mcpServers": {
"fetch": {
"command": "npx",
"args": ["-y", "@tokenizin/mcp-npx-fetch"],
"env": {}
}
}
}💻 Local Development
Clone the repository:
git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git
cd mcp-npx-fetchInstall dependencies:
npm installStart development mode:
npm run devRun tests:
npm test🛠 Technical Stack
Model Context Protocol SDK - Core MCP functionality
JSDOM - HTML parsing and manipulation
Turndown - HTML to Markdown conversion
TypeScript - Type safety and modern JavaScript features
Zod - Runtime type validation
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
4 toolsfetch_htmlC
Fetch a website and return the content as HTML
Inputs: url (required), headers.
fetch_jsonC
Fetch a JSON file from a URL
Inputs: url (required), headers.
fetch_markdownC
Fetch a website and return the content as Markdown
Inputs: url (required), headers.
fetch_txtA
Fetch a website, return the content as plain text (no HTML)
Inputs: url (required), headers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose based on the output format (HTML, JSON, Markdown, plain text), with no overlap in functionality. The descriptions explicitly differentiate them by content type, making tool selection straightforward for an agent.
All tools follow a consistent verb_noun pattern with 'fetch_' prefix and suffix indicating the output format (e.g., fetch_html, fetch_json). The naming is perfectly uniform and predictable across all four tools.
With 4 tools, this server is well-scoped for fetching content in different formats. Each tool earns its place by covering a distinct output type, and the count is neither too thin nor excessive for the domain of URL-based content retrieval.
The toolset covers the core fetching operations for common content types (HTML, JSON, Markdown, plain text), with no dead ends. A minor gap exists in not handling other formats like XML or binary data, but agents can work around this for most use cases.
Maintenance
Related MCP Connectors
Web scraping MCP server: any URL to Markdown or JSON, with JavaScript rendering and batch jobs.
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
Free remote MCP server for fetching public web pages through a rotating proxy pool.
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server for fetching and transforming web content into various formats.49MIT
- AlicenseAqualityDmaintenanceMCP server for fetching web content with browser fingerprint camouflage, converting HTML to clean Markdown to bypass bot detection.11MIT
- AlicenseAqualityDmaintenanceA dedicated web content fetching and conversion MCP server that provides tools for fetching, converting, and extracting data from web pages.11MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that fetches remote or local HTML resources and converts them to Markdown, enabling AI clients to summarize or process web content.3 npmMIT