mcp-server-fetch-python logo

mcp-server-fetch-python

by MCP-Mirror

An MCP server designed to fetch and transform web content into various formats. It provides tools for extracting content from web pages, including support for JavaScript-rendered content and media files.

View on GitHub

Last updated: N/A

What is mcp-server-fetch-python?

This server is a tool for fetching and transforming web content. It offers multiple tools to extract raw text, rendered HTML, and convert web pages or media files to Markdown.

How to use mcp-server-fetch-python?

The server can be used with Claude Desktop by adding a server configuration to the claude_desktop_config.json file. Alternatively, it can be installed and run locally using git clone, uv sync, and uv build commands. The OPENAI_API_KEY environment variable is required for AI-powered media extraction.

Key features of mcp-server-fetch-python

  • Extracts raw text from URLs

  • Fetches fully rendered HTML using a headless browser

  • Converts web page content to Markdown

  • Extracts content from media files using AI and OCR

Use cases of mcp-server-fetch-python

  • Extracting data from websites for analysis

  • Converting web pages to Markdown for documentation

  • Automating content extraction workflows

  • Analyzing images and videos for text and other information

FAQ from mcp-server-fetch-python

What is the purpose of this server?

The server is designed to fetch and transform web content into various formats, making it easier to extract and use data from the web.

What is the OPENAI_API_KEY used for?

The OPENAI_API_KEY is required for the get-markdown-from-media tool, which uses AI to extract content from images and videos.

How do I install the server locally?

You can install the server locally by cloning the repository, running uv sync, and then uv build.

How do I use this server with Claude Desktop?

Add the server configuration to the claude_desktop_config.json file in your Claude Desktop application support directory.

What if I encounter character encoding issues?

Set the PYTHONIOENCODING environment variable to "utf-8" to resolve character encoding problems.