Skip to main content
Glama
mcollina

MCP Node Fetch

by mcollina

MCP 节点获取

一个 MCP 服务器,可使用 Node.js undici库来获取 Web 内容。

特征

  • 使用各种 HTTP 方法从任意 URL 获取内容

  • 支持标头和请求正文

  • 以各种格式返回内容(文本、JSON、二进制、HTML 片段)

  • 优雅地处理错误

  • 配置超时和重定向行为

Related MCP server: MCP Server Fetch Python

MCP 工具

该服务器提供以下 MCP 工具:

fetch-url

从 URL 获取内容并返回。

参数:

  • url (字符串,必需):要获取的 URL

  • method (字符串,可选):HTTP 方法(默认值:“GET”)

  • headers (对象,可选):要包含的 HTTP 标头

  • body (字符串,可选):POST/PUT 请求的请求正文

  • timeout (数字,可选):请求超时(以毫秒为单位)

  • responseType (字符串,可选):如何解析响应(“文本”,“json”,“二进制”,“html片段”)

  • fragmentSelector (字符串,可选):CSS 选择器用于提取特定的 HTML 片段(当 requestType 为“html-fragment”时)

  • followRedirects (布尔值,可选):是否遵循重定向(默认值:true)

extract-html-fragment

使用 CSS 选择器从网页中提取特定的 HTML 内容,并选择性地导航到锚点。

参数:

  • url (字符串,必需):要获取的 URL

  • selector (字符串,必需):要提取的 HTML 片段的 CSS 选择器

  • anchorId (字符串,可选):用于定位特定片段的可选锚点 ID

  • method (字符串,可选):HTTP 方法(默认值:“GET”)

  • headers (对象,可选):要包含的 HTTP 标头

  • body (字符串,可选):POST 请求的请求正文

  • timeout (数字,可选):请求超时(以毫秒为单位)

  • followRedirects (布尔值,可选):是否遵循重定向(默认值:true)

check-status

检查 URL 是否可以访问而无需下载完整内容。

参数:

  • url (字符串,必需):要检查的 URL

  • timeout (数字,可选):请求超时(以毫秒为单位)

Claude 用于桌面配置

要与 Claude for Desktop 一起使用,请将其添加到您的claude_desktop_config.json中:

{
  "mcpServers": {
    "node-fetch": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

执照

麻省理工学院

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Free remote MCP server for fetching public web pages through a rotating proxy pool.

  • This MCP server provides seamless access to Malaysia's government open data, including datasets, w…

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

View all MCP Connectors

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/mcollina/mcp-node-fetch'

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