Fetch Python MCP Server

An MCP server for fetching and transforming web content into various formats. This server provides comprehensive tools for extracting content from

Local serverstdioPython

What is the Fetch Python MCP server?

Fetch Python MCP server exists for a simple reason — assistants are far more useful when they can act on Fetch Python directly instead of describing what you should do. An MCP server for fetching and transforming web content into various formats. This server provides comprehensive tools for extracting content from web pages, including support for JavaScript-rendered content and media files.

What the assistant can call

Once Fetch Python is connected, these are the calls the assistant has available:

  • get-raw-text — Extracts raw text content directly from URLs without browser rendering
  • Arguments — - url: URL of the target web page (text, JSON, XML, csv, tsv, etc.) (required)
  • get-rendered-html — Fetches fully rendered HTML content using a headless browser
  • get-markdown — Converts web page content to well-formatted Markdown
  • get-markdown-from-media — Performs AI-powered content extraction from media files
  • Tools — The Tools tool exposed by this server
  • Debugging — You can start the MCP Inspector using npxwith the following commands:

Configuration and credentials

You will need 3 environment variables: OPENAI_API_KEY, PYTHONIOENCODING, MODEL_NAME. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Fetch Python's toolset — get-raw-text, Arguments, get-rendered-html and 4 more — is a fair guide to whether it matches your workflow. It is maintained by tatn; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the fetch python mcp server does with a few real requests.

Available tools

ToolWhat it does
get-raw-textExtracts raw text content directly from URLs without browser rendering
Arguments- url: URL of the target web page (text, JSON, XML, csv, tsv, etc.) (required)
get-rendered-htmlFetches fully rendered HTML content using a headless browser
get-markdownConverts web page content to well-formatted Markdown
get-markdown-from-mediaPerforms AI-powered content extraction from media files
ToolsThe Tools tool exposed by this server.
DebuggingYou can start the MCP Inspector using [npx](https://docs.npmjs.com/cli/v11/commands/npx)with the following commands:

How to install the Fetch Python MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
PYTHONIOENCODINGConfiguration value read at startup.Optional
MODEL_NAMEConfiguration value read at startup.Optional

Example prompts to try

  • Use Fetch Python to get-raw-text.
  • Use Fetch Python to Arguments.
  • Use Fetch Python to get-rendered-html.

Frequently asked questions

It connects Fetch Python to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (get-raw-text, Arguments, get-rendered-html, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Fetch Python directly.