Fetch MCP Server
@zcaceres
关于 Fetch MCP Server
A flexible HTTP fetching Model Context Protocol server.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"fetch-mcp-zcaceres": {
"command": "npx",
"args": [
"mcp-fetch",
"<command>",
"<url>",
"[flags]"
]
}
}
}工具
6Fetch a website and return its raw HTML content.
Fetch a website and return its content converted to Markdown.
Fetch a website and return plain text with HTML tags, scripts, and styles removed.
Fetch a URL and return the JSON response.
Fetch a website and extract the main article content using [Mozilla Readability](https://github.com/mozilla/readability), returned as Markdown. Strips navigation, ads, and boilerplate. Ideal for articles and blog posts.
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.
概览
What is Fetch MCP Server?
Fetch MCP Server is an MCP (Model Context Protocol) server that fetches web content and returns it in multiple formats: HTML, JSON, plain text, Markdown, readable article content (via Mozilla Readability), and YouTube video transcripts. It is intended for AI agents and developers who need to programmatically retrieve and process web content.
How to use Fetch MCP Server?
Install with npx mcp-fetch-server or globally via npm install -g mcp-fetch-server. Add it as an MCP server in your client configuration under "mcpServers", or use the CLI: mcp-fetch <command> <url> [flags]. Commands include html, markdown, readable, txt, json, and youtube. All tools accept common parameters: url, headers, max_length, start_index, and proxy.
Key features of Fetch MCP Server
- Fetch web content as HTML, JSON, plain text, or Markdown
- Extract article content with Mozilla Readability (strips ads, nav, boilerplate)
- Extract YouTube video transcripts (via
yt-dlpor direct extraction) - Proxy support for requests behind firewalls
- SSRF protection (blocks private/localhost addresses and DNS rebinding)
- Response size limits and configurable character limit via environment variables
Use cases of Fetch MCP Server
- An AI agent fetching a webpage to answer user questions about its content
- Extracting the main article from a news or blog post, free of ads and navigation
- Retrieving JSON from an API endpoint for structured data processing
- Obtaining a YouTube video transcript for summarization or translation
- Browsing web pages with custom headers or through a proxy in restricted networks
FAQ from Fetch MCP Server
What content formats does Fetch MCP Server support?
It supports HTML, Markdown, plain text, JSON, readable article content (Markdown via Mozilla Readability), and YouTube transcripts.
How can I set a custom character limit for responses?
Use the max_length parameter in the tool call, or set the DEFAULT_LIMIT environment variable (default 5000 characters; 0 for no limit).
Does Fetch MCP Server support proxy requests?
Yes. Pass the proxy parameter (e.g., http://proxy:8080) to route requests through a proxy.
Is there protection against SSRF attacks?
Yes. The server blocks requests to private/localhost addresses and implements DNS rebinding protection.
Can I get YouTube transcripts with a specific language?
Yes. Use the youtube command or fetch_youtube_transcript tool with the optional lang parameter (default "en").
浏览器自动化 分类下的更多 MCP 服务器
Fastcrw
usFast, lightweight Firecrawl/Tavily alternative in Rust. Web scraper, crawler & search API with MCP server for AI agents. Drop-in Firecrawl-compatible API (/scrape, /crawl, /search). 2.3x faster than Tavily, 1.5x faster than Firecrawl in 1K-URL benchmarks. 6 MB RAM, single binary.
Puppeteer Vision Mcp Server
djannotFetch MCP
jae-jaeMCP server for fetch web page content using Playwright headless browser.
playwright-server MCP server
blackwhite084Puppeteer MCP Server
merajmehrabiThis MCP server provides browser automation capabilities through Puppeteer, allowing interaction with both new browser instances and existing Chrome windows.
评论