MCP Server Fetch Python

by tatn

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MODEL_NAMENoSpecifies the model name to use.gpt-4o
OPENAI_API_KEYYesRequired for using the `get-markdown-from-media` tool. This key is needed for AI-powered image analysis and content extraction.
PYTHONIOENCODINGNoSet to 'utf-8' if you encounter character encoding issues in the output.utf-8

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get-raw-text

Extracts raw text content directly from URLs without browser rendering. Ideal for structured data formats like JSON, XML, CSV, TSV, or plain text files. Best used when fast, direct access to the source content is needed without processing dynamic elements.

get-rendered-html

Fetches fully rendered HTML content using a headless browser, including JavaScript-generated content. Essential for modern web applications, single-page applications (SPAs), or any content that requires client-side rendering to be complete.

get-markdown

Converts web page content to well-formatted Markdown, preserving structural elements like tables and definition lists. Recommended as the default tool for web content extraction when a clean, readable text format is needed while maintaining document structure.

get-markdown-from-media

Performs AI-powered content extraction from media files (images and videos) and converts the results to Markdown format. Specialized tool for visual content analysis that utilizes computer vision and OCR capabilities to generate descriptive text from media sources.