微信公众号内容搜索工具 (Weixin Search MCP) logo

微信公众号内容搜索工具 (Weixin Search MCP)

Community
fancyboi999

微信公众号搜索,及文章内容获取,大模型mcp服务

Publisherfancyboi999
Repositoryweixin_search_mcp
LanguagePython
Forks
15
Stars
94
Available tools
0
Transport typestdio, streamable-http
Categories
Licensenull
Links
  • Connect tools to AI workflows

    微信公众号内容搜索工具 (Weixin Search MCP) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    94 stars and 15 forks from the linked repository.

微信公众号内容搜索工具 (Weixin Search MCP)

这是一个基于MCP (Multimodal Capability Provider)的工具,用于搜索和获取微信公众号文章内容。通过搜狗微信搜索接口,可以方便地获取公众号文章并提取内容。

功能特点

  • 通过关键词在搜狗微信搜索中查找公众号文章
  • 自动获取文章的真实链接(从搜狗跳转链接转为微信原始链接)
  • 提取文章的完整正文内容
  • 支持批量获取多篇文章

安装方法

环境要求

  • Python 3.12 或更高版本
  • uv 包管理工具

安装步骤

使用 uv 创建虚拟环境并安装:

bash
# 创建虚拟环境
uv venv

# 激活虚拟环境
source .venv/bin/activate  # Linux/Mac
# 或者在Windows上:
# .venv\Scripts\activate

# 安装项目
uv pip install -e .

使用方法

启动服务

启动HTTP服务器:

bash
weixin_search_mcp --transport http --port 8809 --host 0.0.0.0

或者使用标准输入/输出模式(用于与其他应用集成):

bash
weixin_search_mcp --transport stdio

通过 PyPI / uvx 直接运行:

bash
uvx --from weixin-search-mcp weixin_search_mcp --transport stdio

4. 配置MCP服务

有两种方式可以配置和启动MCP服务:

方式一:使用stdio协议(直接连接)

在Claude配置中添加以下内容:

json
{
    "mcpServers": {
        "weixin_search_mcp": {
            "command": "uvx",
            "args": ["--from", "weixin-search-mcp", "weixin_search_mcp", "--transport", "stdio"]
        }
    }
}

方式二:使用HTTP协议

  1. 启动HTTP服务:
sh
uvx --from weixin-search-mcp weixin_search_mcp --transport http --port 8809
  1. 在Claude配置中添加以下内容:
json
{
    "mcpServers": {
        "weixin_search_mcp": {
            "type": "http",
            "url": "http://localhost:8809/mcp"
        }
    }
}

工具使用说明

本项目提供了以下工具来搜索和获取微信公众号内容:

微信搜索工具

  • weixin_search: 在搜狗微信搜索中搜索指定关键词并返回结果列表
    • 参数:
      • query - 搜索关键词
      • page - 可选,页码,默认 1
    • 返回: 包含标题、链接、真实URL、发布时间、页码的文章列表

多页搜索工具

  • weixin_search_all: 自动翻页搜索多页微信公众号文章
    • 参数:
      • query - 搜索关键词
      • max_pages - 可选,最大页数,默认 10
    • 返回: 聚合后的多页结果列表

内容获取工具

  • get_weixin_article_content: 获取微信公众号文章的正文内容
    • 参数:
      • real_url - 真实微信公众号文章链接
      • referer - 可选,请求来源,通常为weixin_search返回的链接
    • 返回: 文章正文内容

使用示例

  1. 搜索关键词相关的微信公众号文章:
python
results = weixin_search("人工智能")

按指定页搜索:

python
results = weixin_search("人工智能", page=2)

自动翻页抓取:

python
all_results = weixin_search_all("人工智能", max_pages=3)
  1. 获取文章内容:
python
article_content = get_weixin_article_content(real_url="https://mp.weixin.qq.com/...", referer="https://weixin.sogou.com/...")

注意事项

  • 该工具依赖于搜狗微信搜索接口,如果接口变更可能会影响工具功能
  • 请合理控制请求频率,避免被搜狗或微信官方限制访问
  • 获取的内容仅供学习研究使用,请遵守相关法律法规

许可证

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "fancyboi999-weixin_search_mcp": {
      "command": "uvx",
      "args": [
        "weixin_search_mcp"
      ]
    }
  }
}

Use 微信公众号内容搜索工具 (Weixin Search MCP) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 微信公众号内容搜索工具 (Weixin Search MCP) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 微信公众号内容搜索工具 (Weixin Search MCP) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 微信公众号内容搜索工具 (Weixin Search MCP) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "fancyboi999-weixin_search_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "weixin_search_mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 微信公众号内容搜索工具 (Weixin Search MCP) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 微信公众号内容搜索工具 (Weixin Search MCP) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 微信公众号内容搜索工具 (Weixin Search MCP) to help me with this task?
微信公众号内容搜索工具 (Weixin Search MCP)
Sure. I read it.
Here is what I found using 微信公众号内容搜索工具 (Weixin Search MCP).

Option 2: Add an MCP server URL

Use this when 微信公众号内容搜索工具 (Weixin Search MCP) is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for 微信公众号内容搜索工具 (Weixin Search MCP).
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the 微信公众号内容搜索工具 (Weixin Search MCP) connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the 微信公众号内容搜索工具 (Weixin Search MCP) tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the 微信公众号内容搜索工具 (Weixin Search MCP) tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 微信公众号内容搜索工具 (Weixin Search MCP) to help me with this task?
微信公众号内容搜索工具 (Weixin Search MCP)
Sure. I read it.
Here is what I found using 微信公众号内容搜索工具 (Weixin Search MCP).

Frequently asked questions

What is the 微信公众号内容搜索工具 (Weixin Search MCP) MCP server used for?

微信公众号内容搜索工具 (Weixin Search MCP) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 微信公众号内容搜索工具 (Weixin Search MCP) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 微信公众号内容搜索工具 (Weixin Search MCP) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 微信公众号内容搜索工具 (Weixin Search MCP) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 微信公众号内容搜索工具 (Weixin Search MCP) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 微信公众号内容搜索工具 (Weixin Search MCP) MCP to TypingMind?

微信公众号内容搜索工具 (Weixin Search MCP) can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does 微信公众号内容搜索工具 (Weixin Search MCP) MCP provide in TypingMind?

微信公众号内容搜索工具 (Weixin Search MCP) exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 微信公众号内容搜索工具 (Weixin Search MCP) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 微信公众号内容搜索工具 (Weixin Search MCP) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇