mcp-server-fetch-typescript logo

mcp-server-fetch-typescript

by tatn

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.

View on GitHub

Last updated: N/A

What is mcp-server-fetch-typescript?

This is a Model Context Protocol (MCP) server built with TypeScript designed for fetching and converting web content. It provides various tools to retrieve web content in different formats, from raw text to rendered HTML and Markdown.

How to use mcp-server-fetch-typescript?

The server can be installed globally or as a project dependency using npm. It's designed to be used with applications like Claude Desktop by configuring the claude_desktop_config.json file to point to the server's executable. You can also debug the server using the @modelcontextprotocol/inspector tool.

Key features of mcp-server-fetch-typescript

  • Retrieve raw text content directly from URLs

  • Fetch fully rendered HTML content using Playwright

  • Convert web content to Markdown format

  • Extract and convert main content to Markdown, removing navigation and headers/footers

Use cases of mcp-server-fetch-typescript

  • Data extraction from websites

  • Web scraping for research or analysis

  • Content archiving and documentation

  • Article and blog post extraction

  • Integration with applications like Claude Desktop for enhanced web content understanding

FAQ from mcp-server-fetch-typescript

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for communication between applications and servers that provide contextual information.

What is Playwright?

Playwright is a Node.js library for automating Chromium, Firefox and WebKit with a single API. It's used here for headless browser rendering.

How do I install the server?

You can install it globally using npm install -g mcp-server-fetch-typescript or as a project dependency using npm install mcp-server-fetch-typescript.

How do I configure the server for Claude Desktop?

You need to add the server configuration to the claude_desktop_config.json file, specifying the command and arguments to run the server.

How do I debug the server?

You can use the @modelcontextprotocol/inspector tool to debug the server. See the README for specific commands.