Fetch MCP Server

by phpmac
Verified

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.

Integrations

  • Enables fetching web content and converting it to Markdown format, allowing for structured text representation of online resources.

获取 MCP 服务器

English |中文

该 MCP 服务器提供获取各种格式的 Web 内容的功能,包括 HTML、JSON、纯文本和 Markdown。

工具

  • fetch_html
    • 获取网站内容并以 HTML 格式返回
    • 输入参数:
      • url (字符串,必需):要获取的网站的 URL
      • headers (对象,可选):包含在请求中的自定义标头
    • 返回网页的原始 HTML 内容
  • fetch_json
    • 从 URL 获取 JSON 文件
    • 输入参数:
      • url (字符串,必需):要获取的 JSON 的 URL
      • headers (对象,可选):包含在请求中的自定义标头
    • 返回解析后的 JSON 内容
  • 获取文本
    • 获取网站内容并以纯文本形式返回(无 HTML)
    • 输入参数:
      • url (字符串,必需):要获取的网站的 URL
      • headers (对象,可选):包含在请求中的自定义标头
    • 返回删除了 HTML 标签、脚本和样式的网页文本内容
  • fetch_markdown
    • 获取网站内容并以 Markdown 格式返回
    • 输入参数:
      • url (字符串,必需):要获取的网站的 URL
      • headers (对象,可选):包含在请求中的自定义标头
    • 返回转换为Markdown格式的网页内容

两种开始方式

  1. 包子
bun i bun start
  1. 码头工人
docker compose up --build -d

用法

{ "mcpServers": { "fetch-mcp": { "transport": "sse", "url": "http://localhost:3000/sse", "headers": { "Authorization": "Bearer your-token-here", "X-Custom-Header": "custom-value" }, "useNodeEventSource": true } } }

资源

此服务器不提供任何持久性资源。它旨在按需获取和转换 Web 内容。

参考

-
security - not tested
F
license - not found
-
quality - not tested

提供通过简单的 API 调用获取和转换各种格式(HTML、JSON、纯文本和 Markdown)的 Web 内容的功能。

  1. Tools
    1. 2 Ways to Start
      1. Usage
        1. Resources
          1. References
            ID: 9le2w2zfe7