
How to add Fetch MCP Server to Cursor
Fetch web content as HTML, JSON, text, Markdown, readable article, or YouTube transcript. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 784★ · stdio · no auth
Cursor config for Fetch MCP Server
npm install -g mcp-fetch-server{
"mcpServers": {
"fetch-mcp-server": {
"command": "npx",
"args": [
"mcp-fetch-server"
]
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Fetch MCP Server config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Fetch MCP Server's tools to confirm it's connected.
Before you start
- Node.js with npx (to run mcp-fetch-server), or global install via npm install -g mcp-fetch-server
- Optional: yt-dlp installed for richer YouTube transcript extraction (falls back to direct page extraction)
What Fetch MCP Server can do in Cursor
fetch_htmlFetch a website and return its raw HTML content.
fetch_markdownFetch a website and return its content converted to Markdown.
fetch_txtFetch a website and return plain text with HTML tags, scripts, and styles removed.
fetch_jsonFetch a URL and return the JSON response.
fetch_readableFetch 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_transcriptFetch a YouTube video's captions/transcript. Uses yt-dlp if available, otherwise extracts directly from the page. Accepts a lang parameter (default 'en') to select the caption language.
Security
Includes SSRF protection that blocks private/localhost addresses and DNS rebinding, plus a response body size limit (MAX_RESPONSE_BYTES, default 10 MB) to prevent memory exhaustion.
Fetch MCP Server + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Fetch MCP Server config there under the "mcpServers" key and restart the client.
Is Fetch MCP Server safe to use with Cursor?
Includes SSRF protection that blocks private/localhost addresses and DNS rebinding, plus a response body size limit (MAX_RESPONSE_BYTES, default 10 MB) to prevent memory exhaustion.
How do I limit the size of fetched content?
Use the max_length parameter (default 5000 characters) and start_index (default 0) to paginate, or set the DEFAULT_LIMIT env var (set to 0 for no limit). MAX_RESPONSE_BYTES caps the raw response body size (default 10 MB).
Can I fetch through a proxy or with custom headers?
Yes. Every tool accepts an optional proxy URL (e.g. http://proxy:8080) and a headers object for custom request headers.
Does it protect against SSRF?
Yes. The server blocks requests to private/localhost addresses and guards against DNS rebinding, and limits response body size to prevent memory exhaustion.