mcp-server-fetch-typescript

mcp-server-fetch-typescript

3.4

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 various formats and rendering methods, making it suitable for a wide range of tasks from simple data extraction to complex web scraping. This server is particularly useful for developers and data analysts who need to access and manipulate web content efficiently. By leveraging tools like Playwright for headless browser rendering, it ensures that even dynamic web pages can be processed accurately. The server's ability to convert web content into Markdown format further enhances its utility for content archiving and documentation purposes.

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 for content archiving.'}
  • {'name': 'get_markdown_summary', 'description': 'Extract and convert main content to clean Markdown, perfect for article and blog post 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