Skip to main content
Glama
jialinhome

page-fetcher-mcp

by jialinhome

Page Fetcher MCP Server

一个用于替代 Claude Code 内置 fetch 功能的 MCP (Model Context Protocol) 服务器,提供网页抓取和 API 数据获取能力。

功能特性

  • fetch_url: 从 URL 获取数据(API 端点、JSON 或任何网页内容)

  • scrape_url: 抓取并提取网页的可读文本内容

Related MCP server: web-mcp-server

安装

npm install

开发

构建项目

npm run build

开发模式运行

npm run dev

生产模式运行

npm start

使用方法

在 Claude Code 中配置

将此服务器添加到 Claude Code 的 MCP 配置中:

{
  "mcpServers": {
    "page-fetcher-mcp": {
      "command": "node",
      "args": ["/path/to/page-fetcher-mcp/dist/index.js"],
      "env": {}
    }
  }
}

可用工具

fetch_url

获取任意 URL 的数据(API、JSON、网页内容等)

参数:

  • url (必需): 要获取的 URL

  • headers (可选): 要包含在请求中的 HTTP 头

示例:

// 获取 API 数据
await mcp_fetch_call_tool('fetch_url', {
  url: 'https://api.github.com/users/octocat'
});

// 获取 JSON 数据
await mcp_fetch_call_tool('fetch_url', {
  url: 'https://jsonplaceholder.typicode.com/posts/1'
});

// 带自定义头获取
await mcp_fetch_call_tool('fetch_url', {
  url: 'https://api.example.com/data',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN'
  }
});

scrape_url

抓取网页并提取可读文本内容

参数:

  • url (必需): 要抓取的 URL

  • selector (可选): CSS 选择器,用于提取特定元素

示例:

// 获取整个页面的文本内容
await mcp_fetch_call_tool('scrape_url', {
  url: 'https://example.com'
});

// 使用 CSS 选择器提取特定内容
await mcp_fetch_call_tool('scrape_url', {
  url: 'https://example.com',
  selector: 'h1'  // 只提取所有 h1 标题
});

// 提取文章内容
await mcp_fetch_call_tool('scrape_url', {
  url: 'https://example.com/article',
  selector: '.article-content'
});

项目结构

page-fetcher-mcp/
├── src/
│   └── index.ts          # 主服务器实现
├── dist/                 # 编译输出目录
├── package.json          # 项目配置
├── tsconfig.json         # TypeScript 配置
└── README.md            # 项目文档

技术栈

许可证

MIT

Install Server
F
license - not found
C
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

  • F
    license
    Not graded
    quality
    F
    maintenance
    A lightweight MCP server implementation that provides a simple tool for fetching website content, demonstrating how tools can be exposed and interacted with using the MCP protocol.
  • F
    license
    Not graded
    quality
    B
    maintenance
    MCP server that exposes web_search and web_fetch tools, allowing LLM applications to search the web via DuckDuckGo and fetch page content as cleaned markdown.
  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP tool server that gives any AI agent the ability to search, scrape, and analyze content across the internet.
    43
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A comprehensive web scraping MCP server with 26 tools for fetching, parsing, extracting, and assisting with web content, returning Markdown-formatted results.
    MIT

View all related MCP servers

Related MCP Connectors

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

  • Web tools for agents: fetch URL as markdown (free MCP) + x402 scrape, links, AI JSON, snapshot.

  • Stealth web browser for agents: search, fetch, click and type through persistent sessions over MCP.

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/jialinhome/page-fetcher-mcp'

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