A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs
Project description
Fetch MCP Server
A Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.
Presently the server only supports fetching HTML content.
Available Tools
fetch
- Fetches a URL from the internet and extracts its contents as markdown.
Prompts
- fetch
- Fetch a URL and extract its contents as markdown
- Argument:
url
(string, required): URL to fetch
Installation
Using uv (recommended)
When using uv
no specific installation is needed. We will
use uvx
to directly run mcp-server-fetch.
Using PIP
Alternatively you can install mcp-server-fetch
via pip:
pip install mcp-server-fetch
After installation, you can run it as a script using:
python -m mcp_server_fetch
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
Using pip installation
"mcpServers": {
"fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"]
}
}
Configure for Zed
Add to your Zed settings.json:
Using uvx
"context_servers": [
"mcp-server-fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
],
Using pip installation
"context_servers": {
"mcp-server-fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"]
}
},
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx mcp-server-fetch
Or if you've installed the package in a specific directory or are developing on it:
cd path/to/servers/src/fetch
npx @modelcontextprotocol/inspector uv run mcp-server-fetch
Contributing
We encourage contributions to help expand and improve mcp-server-fetch. 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 even more powerful and useful.
License
mcp-server-fetch 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mcp_server_fetch-0.1.0.tar.gz
.
File metadata
- Download URL: mcp_server_fetch-0.1.0.tar.gz
- Upload date:
- Size: 37.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2adefeb4766e20ad30663d0122fd7aa36ba7202c1f45148698eb8c0e17e0b42 |
|
MD5 | 4e6ea75e0521fbf73efcf6ba65b19054 |
|
BLAKE2b-256 | dd6878df8e52e57b1fce5fddadefe13dc2877f985453a257bcddd31f4f0cf516 |
File details
Details for the file mcp_server_fetch-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mcp_server_fetch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39930fe4aeff8a82a74ee2a741a44ca68ddba083cfc0dccf83df6526db436cbf |
|
MD5 | 046afd9f7d9898c8798beaf2127cba27 |
|
BLAKE2b-256 | f4a7184f5b6589355f70843a2c322a0376bd19daad3f1be1b20f2ec740bdda74 |