mcp-url2markdown

mcp-url2markdown

3.2

mcp-url2markdown is a tool that converts webpage content from a given URL into clean, formatted markdown using the crawl4ai library.

mcp-url2markdown

基于 crawl4ai 根据提供的url把网页内容转为干净,格式化的markdown内容

快速开始

使用uv安装

git clone https://github.com/sungithubid/mcp-url2markdown.git

uv sync

使用

1. FastMCP cli run server

source .venv/bin/activate
fastmcp dev server.py

打开http://127.0.0.1:6274/ 测试

2. 使用Cursor,cline,roo code等工具

配置

{
  "mcpServers": {
    "url2md": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-url2markdown",
        "run",
        "server.py"
      ],
      "env": {},
      "disabled": false,
      "autoApprove": [],
      "alwaysAllow": []
    }
  }
}

使用roo code测试 输入

把如下网址的网页内容转成markdown输出
https://api-docs.deepseek.com/zh-cn/guides/kv_cache

执行与输出