fetch and convert.com
fetch and convert.com logo

Fetch and Convert

Fetches and converts web content to Markdown using JSDOM and Turndown.

Created byApr 22, 2025

MCP NPX Fetch

A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
InstallationFeaturesUsageDocumentationContributing
<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

Installation

NPM Global Installation

Direct Usage with NPX

Documentation

Available Tools

`fetch_html`

Fetches and returns raw HTML content from any URL.

`fetch_json`

Fetches and parses JSON data from any URL.

`fetch_txt`

Fetches and returns clean plain text content, removing HTML tags and scripts.

`fetch_markdown`

Fetches content and converts it to well-formatted Markdown.

Usage

CLI Usage

Start the MCP server directly:
Or via npx:

Claude Desktop Integration

  1. Locate your Claude Desktop configuration file:
  1. Add the following configuration to your mcpServers object:

Local Development

  1. Clone the repository:
  1. Install dependencies:
  1. Start development mode:
  1. Run tests:

Technical Stack

  • JSDOM - HTML parsing and manipulation
  • 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
  1. Create your feature branch (git checkout -b feature/AmazingFeature)
  1. Commit your changes (git commit -m 'Add some AmazingFeature')
  1. Push to the branch (git push origin feature/AmazingFeature)
  1. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

MCP NPX Fetch

A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
InstallationFeaturesUsageDocumentationContributing
<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

Installation

NPM Global Installation

Direct Usage with NPX

Documentation

Available Tools

`fetch_html`

Fetches and returns raw HTML content from any URL.

`fetch_json`

Fetches and parses JSON data from any URL.

`fetch_txt`

Fetches and returns clean plain text content, removing HTML tags and scripts.

`fetch_markdown`

Fetches content and converts it to well-formatted Markdown.

Usage

CLI Usage

Start the MCP server directly:
Or via npx:

Claude Desktop Integration

  1. Locate your Claude Desktop configuration file:
  1. Add the following configuration to your mcpServers object:

Local Development

  1. Clone the repository:
  1. Install dependencies:
  1. Start development mode:
  1. Run tests:

Technical Stack

  • JSDOM - HTML parsing and manipulation
  • 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
  1. Create your feature branch (git checkout -b feature/AmazingFeature)
  1. Commit your changes (git commit -m 'Add some AmazingFeature')
  1. Push to the branch (git push origin feature/AmazingFeature)
  1. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.