Fetch-Save MCP Server

by gregberns
Integrations
  • Converts fetched HTML content to Markdown format for better readability and processing by language models.

Fetch-Save MCP Server

A Model Context Protocol server that provides web content fetching and local file saving capabilities. This server enables LLMs to retrieve content from web pages, convert HTML to markdown for easier consumption, and save the retrieved content to a local file.

The key difference from the standard fetch MCP server is that this server provides a fetch-save tool that both retrieves content AND stores it locally in a permanent file, allowing for later access or processing of the data.

Caution

This server can access local/internal IP addresses and may represent a security risk. Exercise caution when using this MCP server to ensure this does not expose any sensitive data.

Additional Note: The Readme and some code was written/edited with Claude Code - so parts may be incorrect. Please submit a PR if there are changes needed.

Available Tools

  • fetch-save - Fetches a URL from the internet, extracts its contents as markdown, and SAVES it to a local file.
    • url (string, required): URL to fetch and download
    • filepath (string, required): Local filepath where the downloaded content will be saved

Prompts

  • fetch-save
    • Fetch a URL and save its contents to a local file
    • Arguments:
      • url (string, required): URL to fetch and download
      • filepath (string, required): Local filepath where content will be saved

Installation

Optionally: Install node.js, this will cause the fetch server to use a different HTML simplifier that is more robust.

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-fetch-save.

Using PIP

Alternatively you can install mcp-server-fetch-save via pip:

pip install mcp-server-fetch-save

After installation, you can run it as a script using:

python -m mcp_server_fetch_save

Configuration

Configure for Claude.app

Add to your Claude settings:

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

Configure for VS Code

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is needed when using the mcp.json file.

{ "mcp": { "servers": { "fetch-save": { "command": "uvx", "args": ["mcp-server-fetch-save"] } } } }

Customization - robots.txt

By default, the server will obey a websites robots.txt file if the request came from the model (via a tool), but not if the request was user initiated (via a prompt). This can be disabled by adding the argument --ignore-robots-txt to the args list in the configuration.

Customization - User-agent

By default, depending on if the request came from the model (via a tool), or was user initiated (via a prompt), the server will use either the user-agent

ModelContextProtocol/1.0 (Autonomous; +https://github.com/modelcontextprotocol/servers)

or

ModelContextProtocol/1.0 (User-Specified; +https://github.com/modelcontextprotocol/servers)

This can be customized by adding the argument --user-agent=YourUserAgent to the args list in the configuration.

Customization - Proxy

The server can be configured to use a proxy by using the --proxy-url argument.

Debugging

You can download this repo, and add this to your .mcp.json file to run/test locallly.

{ "mcpServers": { "fetch_save": { "command": "uv", "args": [ "--directory", "/path/to/clone/of/project/mcp-server-fetch-save/src/mcp_server_fetch_save", "run", "__main__.py" ] } } }

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-fetch-save

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/mcp-server-fetch-save npx @modelcontextprotocol/inspector uv run mcp-server-fetch-save

Contributing

We encourage contributions to help expand and improve mcp-server-fetch-save. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.

For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-fetch-save even more powerful and useful.

License

mcp-server-fetch-save is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Thanks

This server was developed based on the original modelcontextprotocol/servers fetch server, with additional functionality for saving content to local files.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

A Model Context Protocol server that enables LLMs to retrieve web content and save it to local files for permanent storage and later access.

  1. Available Tools
    1. Prompts
      1. Installation
        1. Using uv (recommended)
        2. Using PIP
      2. Configuration
        1. Configure for Claude.app
        2. Configure for VS Code
        3. Customization - robots.txt
        4. Customization - User-agent
        5. Customization - Proxy
      3. Debugging
        1. Contributing
          1. License
            1. Thanks

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.
                Last updated -
                10
                53
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.
                Last updated -
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.
                Last updated -
                2
                Python
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
                Last updated -
                TypeScript
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/gregberns/mcp-server-fetch-save'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server