Skip to main content
Glama
phpmac

Fetch MCP Server

by phpmac

获取 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 内容。

参考

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/phpmac/fetch_mcp'

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