MCP ExplorerExplorer

Mcp Server Fetch Typescript

@tatnon 9 months ago
2 MIT
FreeCommunity
AI Systems
MCP Server for web content fetching and conversion with various formats.

Overview

What is Mcp Server Fetch Typescript

mcp-server-fetch-typescript is a Model Context Protocol server designed for web content fetching and conversion. It supports various formats and rendering methods, making it suitable for tasks ranging from simple data extraction to advanced web scraping.

Use cases

Use cases include extracting data from websites, converting web pages to Markdown for documentation, and fetching rendered HTML for testing web applications.

How to use

To use mcp-server-fetch-typescript, you can install it globally or as a project dependency using npm. For integration with Claude Desktop, you need to add the server configuration to the appropriate config file based on your operating system.

Key features

Key features include: 1) get_raw_text for retrieving raw text content; 2) get_rendered_html for fetching fully rendered HTML; 3) get_markdown for converting web content to Markdown; 4) get_markdown_summary for extracting and converting main content.

Where to use

mcp-server-fetch-typescript can be used in various fields including web development, data analysis, content management, and automated web scraping tasks.

Content

mcp-server-fetch-typescript MCP Server

A Model Context Protocol server that provides web content fetching and conversion capabilities. This server implements a comprehensive web content retrieval system with support for various formats and rendering methods, making it ideal for tasks ranging from simple data extraction to sophisticated web scraping.

Server Fetch TypeScript MCP server

Features

Tools

  • get_raw_text - Retrieve raw text content directly from URLs

    • Takes url as a required parameter pointing to text-based resources
    • Returns unprocessed text content without browser rendering
    • Ideal for JSON, XML, CSV, TSV, or plain text files
    • Best used when fast, direct access to source content is needed
  • get_rendered_html - Fetch fully rendered HTML content

    • Takes url as a required parameter
    • Returns complete HTML content after JavaScript execution
    • Uses Playwright for headless browser rendering
    • Essential for modern web applications and SPAs
  • get_markdown - Convert web content to Markdown format

    • Takes url as a required parameter
    • Returns well-formatted Markdown preserving structural elements
    • Supports tables and definition lists
    • Recommended for content archiving and documentation
  • get_markdown_summary - Extract and convert main content

    • Takes url as a required parameter
    • Returns clean Markdown focusing on main content
    • Automatically removes navigation, headers, footers
    • Perfect for article and blog post extraction

Installation

As a Global Package

npm install -g mcp-server-fetch-typescript

As a Project Dependency

npm install mcp-server-fetch-typescript

Usage

Using with Claude Desktop

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

or Add the following configuration:

git clone https://github.com/tatn/mcp-server-fetch-typescript.git
cd mcp-server-fetch-typescript
npm install
npm run build

Debugging

To debug the MCP server:

npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.js

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers