Token导航 LogoToken导航TokenDH.com
Wx Mp Analyzer MCP logo
浏览器工具stdio官方级别未说明来源级核验

Wx Mp Analyzer MCP

MCP Server

一个用于抓取和清理微信公众号文章的MCP服务器,适用于下游处理和Claude Desktop集成。

工具数

2

提示词数

0

GitHub Stars

1

资源数

0
浏览器自动化PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jerryfound

提供方

jerryfound

最后核验

2026/5/17 20:20

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run playwright install chromium

详细介绍

wx-mcp分析仪

微信文章解析MCP服务器,获取和清理微信文章以供下游处理。

特性

  • 文章获取:使用Playwright渲染来自的微信文章 mp.weixin.qq.com
  • HTML清理:删除脚本、样式和内联事件;对图像进行标准化处理
  • MCP集成:与Claude Desktop和其他MCP客户端兼容

快速开始

先决条件

安装和运行

# Install dependencies (including Playwright browsers)
uv sync
uv run playwright install chromium

# Run the MCP server
uv run python src/server/app.py

可用工具

  1. health_check:验证服务器状态和环境
  2. fetch_wechat_article:获取并清理微信文章

示例 fetch_wechat_article 用法:

{
  "url": "https://mp.weixin.qq.com/s/article-id",
  "timeout_sec": 20,
  "inline_images": false
}

使用Claude Desktop

有几种方式在 Claude Desktop 中配置此 MCP 服务器:

方式一:使用本地开发模式(推荐用于开发)

{
  "mcpServers": {
    "wx-mcp-analyzer": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/wx-mcp-analyzer-mcp-openspec",
        "run",
        "python",
        "wx_mcp_analyzer/server/app.py"
      ]
    }
  }
}

方式二:使用 uvx 从本地 wheel 文件

{
  "mcpServers": {
    "wx-mcp-analyzer": {
      "command": "uvx",
      "args": [
        "--from",
        "/absolute/path/to/wx-mcp-analyzer-mcp-openspec/dist/wx_mcp_analyzer-0.1.0-py3-none-any.whl",
        "wx-mcp-analyzer"
      ]
    }
  }
}

方式三:使用 uvx 从当前目录(如果在项目目录下)

{
  "mcpServers": {
    "wx-mcp-analyzer": {
      "command": "uvx",
      "args": [
        "--from",
        ".",
        "wx-mcp-analyzer"
      ],
      "cwd": "/absolute/path/to/wx-mcp-analyzer-mcp-openspec"
    }
  }
}

注意: 将 /absolute/path/to/wx-mcp-analyzer-mcp-openspec 替换为此项目的实际绝对路径。

发布到 PyPI(可选)

如果你想发布到 PyPI 以便其他人使用:

# 发布到 PyPI(需要 PyPI 账户和 token)
uv publish

# 然后其他人可以直接使用
uvx wx-mcp-analyzer

Claude Desktop 配置(发布后):

{
  "mcpServers": {
    "wx-mcp-analyzer": {
      "command": "uvx",
      "args": ["wx-mcp-analyzer"]
    }
  }
}

发展

运行测试

# Run fast tests only (recommended for development)
uv run pytest -m "not slow"

# Run all tests including slow integration tests
uv run pytest

# Run specific test file
uv run pytest tests/test_cleaner.py -v

项目结构

src/
├── server/          # FastMCP server and tool definitions
├── fetcher/         # Playwright-based page fetching
└── cleaner/         # HTML cleaning and normalization
tests/
├── test_cleaner.py  # Unit tests for HTML cleaner
└── test_fetcher.py  # Smoke tests for fetcher (marked as slow)

目录标签

目录标签

浏览器自动化PythonClaude微信文章解析本地部署HTML清理MCP集成Playwright

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP