tatn_mcp-server-fetch-typescript

tatn_mcp-server-fetch-typescript

3.2

A Model Context Protocol server that provides web content fetching and conversion capabilities.

The mcp-server-fetch-typescript is a robust Model Context Protocol server designed to facilitate web content retrieval and conversion. It supports a variety of formats and rendering methods, making it suitable for tasks ranging from basic data extraction to advanced web scraping. The server is equipped with tools that allow users to fetch raw text, rendered HTML, and convert web content into Markdown format. It is particularly useful for modern web applications and single-page applications (SPAs) that require JavaScript execution for content rendering. The server is implemented in TypeScript and can be installed globally or as a project dependency, providing flexibility in deployment and usage.

Features

  • {'name': 'get_raw_text', 'description': 'Retrieve raw text content directly from URLs, ideal for JSON, XML, CSV, TSV, or plain text files.'}
  • {'name': 'get_rendered_html', 'description': 'Fetch fully rendered HTML content using Playwright for headless browser rendering, essential for modern web applications.'}
  • {'name': 'get_markdown', 'description': 'Convert web content to Markdown format, supporting tables and definition lists, recommended for content archiving.'}
  • {'name': 'get_markdown_summary', 'description': 'Extract and convert main content to Markdown, removing navigation, headers, and footers, perfect for article extraction.'}

Usage with Different Platforms

Claude Desktop


"mcpServers": {
  "mcp-server-fetch-typescript": {
    "command": "npx",
    "args": [
      "-y",
      "mcp-server-fetch-typescript"
    ]
  }
}

Git Clone and Build

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


"mcpServers": {
  "mcp-server-fetch-typescript": {
    "command": "node",
    "args": [
      "/path/to/mcp-server-fetch-typescript/build/index.js"
    ]
  }
}

Debugging

bash
npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript

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