Labsco
tokenizin-agency logo

MCP NPX Fetch

โ˜… 41

from tokenizin-agency

Fetch and transform web content into various formats like HTML, JSON, Markdown, or Plain Text.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

MCP NPX Fetch

<div align="center">

npm version License: MIT TypeScript Model Context Protocol

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

</div>

<a href="https://glama.ai/mcp/servers/m2a0ue08n2"><img width="380" height="200" src="https://glama.ai/mcp/servers/m2a0ue08n2/badge" alt="NPX Fetch MCP server" /></a>


๐Ÿš€ 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

๐Ÿ“š Documentation

Available Tools

fetch_html

Fetches and returns raw HTML content from any URL.

Copy & paste โ€” that's it
{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_json

Fetches and parses JSON data from any URL.

Copy & paste โ€” that's it
{
  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.

Copy & paste โ€” that's it
{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_markdown

Fetches content and converts it to well-formatted Markdown.

Copy & paste โ€” that's it
{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

๐Ÿ’ป Local Development

  1. Clone the repository:
Copy & paste โ€” that's it
git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git
cd mcp-npx-fetch
  1. Install dependencies:
Copy & paste โ€” that's it
npm install
  1. Start development mode:
Copy & paste โ€” that's it
npm run dev
  1. Run tests:
Copy & paste โ€” that's it
npm test

๐Ÿ›  Technical Stack

๐Ÿค 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.


<div align="center"> Made with โค๏ธ by <a href="https://github.com/tokenizin-agency">PT Tokenizin Technology Agency</a> </div>