mcp-npx-fetch
A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
Documentation
MCP NPX Fetch
๐ 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
๐ฆ Installation
NPM Global Installation
npm install -g @tokenizin/mcp-npx-fetchDirect 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
1. Locate your Claude Desktop configuration file:
2. Add the following configuration to your `mcpServers` object:
{
"mcpServers": {
"fetch": {
"command": "npx",
"args": ["-y", "@tokenizin/mcp-npx-fetch"],
"env": {}
}
}
}๐ป Local Development
1. Clone the repository:
git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git
cd mcp-npx-fetch2. Install dependencies:
npm install3. Start development mode:
npm run dev4. Run 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.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is mcp-npx-fetch?
mcp-npx-fetch is A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
How do I install mcp-npx-fetch?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-npx-fetch open source?
Yes โ it is hosted on GitHub at https://github.com/tokenizin-agency/mcp-npx-fetch and has 36 stars.
Related MCP tools
๐ Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP