MCP Server Fetch TypeScript
mcp-server-fetch-typescript MCP 服务器
提供 Web 内容抓取和转换功能的模型上下文协议 (MCP) 服务器。该服务器实现了一个全面的 Web 内容检索系统,支持各种格式和渲染方法,非常适合执行从简单的数据提取到复杂的 Web 抓取等各种任务。
特征
工具
get_raw_text- 直接从 URL 检索原始文本内容将
url作为指向基于文本的资源的必需参数返回未经处理的文本内容,无需浏览器渲染
适用于 JSON、XML、CSV、TSV 或纯文本文件
最适合需要快速、直接访问源内容的情况
get_rendered_html- 获取完全渲染的 HTML 内容将
url作为必需参数JavaScript 执行后返回完整的 HTML 内容
使用 Playwright 进行无头浏览器渲染
对于现代 Web 应用程序和 SPA 至关重要
get_markdown- 将网页内容转换为 Markdown 格式将
url作为必需参数返回格式良好且保留结构元素的 Markdown
支持表格和定义列表
推荐用于内容存档和文档
get_markdown_summary- 提取并转换主要内容将
url作为必需参数返回干净的 Markdown,重点关注主要内容
自动删除导航、页眉、页脚
非常适合文章和博客文章提取
Related MCP server: MCP Server for Google Search
安装
作为一个全球包裹
npm install -g mcp-server-fetch-typescript作为项目依赖项
npm install mcp-server-fetch-typescript用法
与 Claude Desktop 一起使用
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"mcp-server-fetch-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-fetch-typescript"
]
}
}或者添加以下配置:
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"
]
}
}调试
要调试 MCP 服务器:
npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescriptnpx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.jsAvailable Tools
4 toolsget_markdownA
Converts web page content to well-formatted Markdown, preserving structural elements like tables and definition lists. Recommended as the default tool for web content extraction when a clean, readable text format is needed while maintaining document structure.
Inputs: url (required).
get_markdown_summaryA
Extracts and converts the main content area of a web page to Markdown format, automatically removing navigation menus, headers, footers, and other peripheral content. Perfect for capturing the core content of articles, blog posts, or documentation pages.
Inputs: url (required).
get_raw_textA
Retrieves raw text content directly from a URL without browser rendering. Ideal for structured data formats like JSON, XML, CSV, TSV, or plain text files. Best used when fast, direct access to the source content is needed without processing dynamic elements.
Inputs: url (required).
get_rendered_htmlA
Fetches fully rendered HTML content using a headless browser, including JavaScript-generated content. Essential for modern web applications, single-page applications (SPAs), or any content that requires client-side rendering to be complete.
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_markdown preserves full structure, get_markdown_summary focuses on core content, get_raw_text handles raw data formats, and get_rendered_html captures JavaScript-rendered content. The descriptions explicitly differentiate use cases, leaving no ambiguity for agent selection.
All tool names follow a consistent 'get_*' verb_noun pattern with snake_case, making them predictable and easy to parse. The naming convention is uniform across all four tools, enhancing readability and coherence.
With 4 tools, the set is well-scoped for a web content fetching server, covering key extraction methods (Markdown, raw text, rendered HTML) and a specialized summary variant. Each tool earns its place without redundancy or excessive complexity.
The tool surface comprehensively covers the domain of web content fetching: it includes raw extraction, rendered content, and two Markdown variants for different needs. There are no obvious gaps, as the tools handle static, dynamic, and structured content effectively.
Maintenance
Related MCP Connectors
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
MCP server for web extraction and rendering via AceDataCloud WebExtrator
Web scraping MCP server: any URL to Markdown or JSON, with JavaScript rendering and batch jobs.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that converts Markdown content to HTML format.12MIT
- FlicenseAqualityCmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.26 npm2-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.2MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server providing web search capabilities using Google Custom Search API and webpage content extraction functionality.2MIT