Skip to main content
Glama

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

参考

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

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.

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

  1. 工具
    1. 两种开始方式
      1. 用法
        1. 资源
          1. 参考

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.
              Last updated -
              1
              54,281
              JavaScript
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
              Last updated -
              4
              125,855
              353
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              This server converts webpages into clean, structured Markdown optimized for language model consumption, removing unnecessary content and supporting JavaScript rendering.
              Last updated -
              1
              5
              JavaScript
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              Enables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.
              Last updated -
              1
              1,379
              4
              TypeScript
              MIT License
              • Apple
              • Linux

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

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