MCP ExplorerExplorer

Mcp Server Fetchplus

@unclevickyon 9 months ago
3 MIT
FreeCommunity
AI Systems
A server that fetches web content and converts it to Markdown, compliant with MCP.

Overview

What is Mcp Server Fetchplus

mcp-server-fetchplus is a server that complies with the Model Context Protocol (MCP) standard, designed to fetch web content and convert it into Markdown format.

Use cases

Use cases include generating Markdown documentation from web pages, creating content for blogs or articles, and integrating with applications that require formatted text output from web sources.

How to use

To use mcp-server-fetchplus, install it via pip with the command ‘pip install mcp-server-fetchplus’. Then, you can fetch web content by sending a POST request to the server with the desired URL in JSON format.

Key features

Key features include fetching web content based on user-provided URLs, converting that content into Markdown format, retaining images, and automatically splitting long documents to fit within the context length limits of large language models.

Where to use

mcp-server-fetchplus can be used in various fields such as web scraping, content management, documentation generation, and any application that requires the conversion of web content into a structured format.

Content

MCP-Server-FetchPlus

一个符合 MCP(Model Context Protocol)标准的服务器,用于获取网页内容并转换为 Markdown 格式。

功能

  • 根据用户输入的 URL 获取网页内容
  • 将网页内容转换为 Markdown 格式
  • 保留图片
  • 自动拆分过长的文档以适应大语言模型的上下文长度限制

工程目录

mcp-server-fetchplus
├── .env
├── README.md
├── pyproject.toml
├── src
│   └── mcp_server_fetchplus
│       ├── __init__.py
│       ├── __pycache__
│       ├── fetch.py
│       ├── markdown_converter.py
│       └── server.py
└── test
    ├── fetch_service.log
    └── test_client.py

安装

pip install mcp-server-fetchplus

使用示例

调用fetch工具获取首块内容

curl -X POST "http://localhost:8000/mcp/tool/fetch" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers