ZF

zcaceres/fetch-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

835 stars 126 forks 품질 72 트렌드 23MIT

유연한 HTTP 가져오기 모델 컨텍스트 프로토콜 서버입니다.

개요

HTML, JSON, 일반 텍스트, 마크다운, 읽기 쉬운 기사 콘텐츠, 유튜브 대본을 포함한 여러 형식으로 웹 콘텐츠를 가져오는 MCP 서버입니다. 모든 도구는 다음과 같은 공통 매개변수를 수용합니다: - — 웹사이트를 불러와서 원시 HTML 콘텐츠를 반환합니다. - — 웹사이트를 찾아 Markdown으로 변환한 콘텐츠를 반환합니다. - — 웹사이트를 불러와서 HTML 태그, 스크립트, 스타일을 제거한 일반 텍스트를 반환합니다. - — URL을 가져오고 JSON 응답을 반환합니다. - — 웹사이트를 찾아 Mozilla Readability를 사용해 주요 문서 내용을 추출하며, Markdown으로 반환됩니다. 탐색, 광고, 보일러플레이트를 제거함. 기사와 블로그 게시물에 이상적입니다. - — 유튜브 영상의 자막/대본을 가져오기. 가능하면 yt-dlp를 사용하며, 그렇지 않으면 페이지에서 직접 추출한다. 캡션 언어를 선택할 수 있도록 추가 언어 매개변수(기본값: "en")를 허용한다.

개요(AI 번역)

HTML, JSON, 일반 텍스트, 마크다운, 읽기 쉬운 기사 콘텐츠, 유튜브 대본을 포함한 여러 형식으로 웹 콘텐츠를 가져오는 MCP 서버입니다.

도구

모든 도구는 다음과 같은 공통 매개변수를 수용합니다:

매개변수 유형 필수 설명
url 문자열 네 가져오기 URL
headers 객체 아니요 요청에 포함할 맞춤 헤더
max_length 번호 아니오 최대 반환 문자 수 (기본값: 5000)
start_index 숫자 아니오 이 문자 인덱스에서 시작하세요 (기본값: 0)
proxy 문자열 아니요 프록시 URL (예: http://proxy:8080)
  • fetch_html — 웹사이트를 불러와서 원시 HTML 콘텐츠를 반환합니다.

  • fetch_markdown — 웹사이트를 찾아 Markdown으로 변환한 콘텐츠를 반환합니다.

  • fetch_txt — 웹사이트를 불러와서 HTML 태그, 스크립트, 스타일을 제거한 일반 텍스트를 반환합니다.

  • fetch_json — URL을 가져오고 JSON 응답을 반환합니다.

  • fetch_readable — 웹사이트를 찾아 Mozilla Readability를 사용해 주요 문서 내용을 추출하며, Markdown으로 반환됩니다. 내비게이션, 광고, 보일러플레이트를 제거함. 기사와 블로그 게시물에 이상적입니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Fetch MCP Server

An MCP server for fetching web content in multiple formats — HTML, JSON, plain text, Markdown, readable article content, and YouTube transcripts.

Tools

All tools accept the following common parameters:

Parameter Type Required Description
url string Yes URL to fetch
headers object No Custom headers to include in the request
max_length number No Maximum characters to return (default: 5000)
start_index number No Start from this character index (default: 0)
proxy string No Proxy URL (e.g. http://proxy:8080)
  • fetch_html — Fetch a website and return its raw HTML content.

  • fetch_markdown — Fetch a website and return its content converted to Markdown.

  • fetch_txt — Fetch a website and return plain text with HTML tags, scripts, and styles removed.

  • fetch_json — Fetch a URL and return the JSON response.

  • fetch_readable — Fetch a website and extract the main article content using Mozilla Readability, returned as Markdown. Strips navigation, ads, and boilerplate. Ideal for articles and blog posts.

  • fetch_youtube_transcript — Fetch a YouTube video’s captions/transcript. Uses yt-dlp if available, otherwise extracts directly from the page. Accepts an additional lang parameter (default: "en") to select the caption language.

Installation

As an MCP server

Add to your MCP client configuration:

{
  "mcpServers": {
    "fetch": {
      "command": "npx",
      "args": ["mcp-fetch-server"]
    }
  }
}

As a CLI

npx mcp-fetch   [flags]

Or install globally:

npm install -g mcp-fetch-server
mcp-fetch   [flags]

CLI Usage

mcp-fetch   [flags]

Commands

Command Description
html Fetch a URL and return raw HTML
markdown Fetch a URL and return Markdown
readable Fetch a URL and return article content as Markdown (via Readability)
txt Fetch a URL and return plain text
json Fetch a URL and return JSON
youtube Fetch a YouTube video transcript

Flags

Flag Description
--max-length Maximum characters to return
--start-index Start from this character index
--proxy Proxy URL
--lang Language code for YouTube transcripts (default: en)
--help Show help message
--version Show version

Examples

# Fetch a page as markdown
GitHub에서 전체 README 보기

설치

npx mcp-fetch-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "fetch": { "command": "npx", "args": ["mcp-fetch-server"] } } }