mcp-url2markdown

by sungithubid

333 downloads
Not rated
GitHub

About

mcp-url2markdown is an MCP server that converts webpage content into clean, formatted Markdown using the crawl4ai library. It is designed for developers who need to extract and reformat web page text for use in AI coding assistants or other tools.

Details

Author
sungithubid
Downloads
333
Categories
Other

- Converts web pages to clean, structured Markdown.
- Powered by the crawl4ai library.
- Works with MCP-compatible AI coding tools.
- Easy local setup with uv and FastMCP.
- Provides a development server for testing.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-url2markdown
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository and run uv sync to install dependencies. Start the server with fastmcp dev server.py to run in development mode on http://127.0.0.1:6274, or configure it as an MCP tool in Cursor, cline, or roo code using the provided JSON config.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-url2markdown": {
            "mcp-url2markdown": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-url2markdown": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

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

执行与输出

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.