Skip to main content
Glama

MCP Server Fetch TypeScript

by tatn

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,重点关注主要内容
    • 自动删除导航、页眉、页脚
    • 非常适合文章和博客文章提取

安装

作为一个全球包裹

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-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.js

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

提供 Web 内容获取和转换功能的模型上下文协议服务器。

  1. 特征
    1. 工具
  2. 安装
    1. 作为一个全球包裹
    2. 作为项目依赖项
  3. 用法
    1. 与 Claude Desktop 一起使用
    2. 调试

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    This server enables running a Model Context Protocol in a web browser with functionalities including arithmetic operations and session-based key-value storage.
    Last updated -
    2
    TypeScript
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.
    Last updated -
    35
    11
    TypeScript
    MIT License
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
    Last updated -
    TypeScript
    • Apple
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that transforms text into structured JSON data using templates with placeholders.
    Last updated -
    2
    1
    TypeScript
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tatn/mcp-server-fetch-typescript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server