Coolapk MCP logo

Coolapk MCP

Community
Lniosy

酷安社区 MCP Server + CLI — AI 原生搜索工具

PublisherLniosy
Repositorycoolapk-mcp
LanguagePython
Forks
8
Stars
44
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Coolapk 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

    44 stars and 8 forks from the linked repository.


这是什么

coolapk-mcp 把酷安社区做成 MCP Server + CLI,让 AI 编程助手能:

场景能做什么
📸 摄影图文搜美女摄影、风光、样张帖
🐑 羊毛福利扫活动、抽奖、试用信息
🔬 前沿科技盯数码/开发热帖,少刷到吐
📱 淘二手机二手区盯性价比机型
🧩 应用发现搜应用、话题、用户

开源自用维护中 · MIT · 当前 27★ / 5 fork

快速开始

bash
# 需要 Python >= 3.10
git clone https://github.com/Lniosy/coolapk-mcp.git
cd coolapk-mcp
pip install -e .

装好后两条路任选:

  1. MCP Server(推荐接 Cursor / Claude Desktop)
  2. CLI(脚本、Agent Skill、管道调用更省 token)

功能

  • 搜索 — 帖子、用户、话题、应用
  • 帖子详情 — 完整内容 + 评论(见 已知限制)
  • 用户资料 — 个人信息、发帖列表
  • 首页动态 — 推荐 / 热门 / 最新
  • 话题浏览 — 话题详情 + 话题下帖子
  • 交互操作 — 点赞、回复、关注(需登录)
  • 精简输出 — 自动排除空值字段,省 AI 上下文 token
  • 图片 URL — 搜索/详情直接返回 images 列表(#1 已修)

Cursor / Claude 配置

Cursor(~/.cursor/mcp.json 或项目 .cursor/mcp.json)

json
{
  "mcpServers": {
    "coolapk": {
      "command": "coolapk-mcp"
    }
  }
}

若用本地源码路径:

json
{
  "mcpServers": {
    "coolapk": {
      "command": "python",
      "args": ["-m", "coolapk_mcp.server"],
      "cwd": "/绝对路径/coolapk-mcp"
    }
  }
}

Claude Code / Desktop

json
{
  "mcpServers": {
    "coolapk": {
      "command": "coolapk-mcp"
    }
  }
}

Claude Code Skill(更省 token)

项目内置 .claude/skills/coolapk.md,clone 进工作目录后 Claude Code 可直接当 skill 用;CLI 无协议开销,输出更紧凑。

注册的 MCP Tools

Tool说明
coolapk_search搜索帖子/用户/应用/话题
coolapk_feed_detail帖子详情 + 回复
coolapk_user_profile用户资料
coolapk_user_feeds用户发帖列表
coolapk_home首页动态
coolapk_topic话题详情/帖子

CLI 使用

所有命令输出紧凑 JSON,适合 AI 解析。

bash
coolapk search "关键词"
coolapk search "用户名" --type user
coolapk feed <帖子ID>
coolapk feed <帖子ID> --no-replies
coolapk user <UID>
coolapk user <UID> --feeds
coolapk home --tab hot
coolapk topic "小米解锁BL"
coolapk topic "小米解锁BL" --feeds

交互操作(需登录)

bash
coolapk login --cookie "uid=xxx;username=xxx;token=xxx"
coolapk like <帖子ID>
coolapk reply <帖子ID> -m "回复内容"
coolapk follow <UID>

生态适配

社区已有基于本项目的桌面端适配,欢迎继续扩展:

qxcoolapk — Qx 快捷启动器插件

@mcxen 将 Coolapk MCP 接口适配为 Qx(Mac / Windows 快捷启动器)沙盒插件 qxcoolapk,可在 Qx Workbench 里浏览热榜、数码动态、完整帖文、图片与回复。

授权与署名均 OK,欢迎继续使用与改进。原始讨论见 #4。

友链

项目说明
QxMac / Windows 快捷启动器(Quick And Quiet Starter)
qx-pluginsQx 插件市场索引(含 qxcoolapk)
Coolapk-Lite酷安第三方客户端参考实现(致谢)

想把 coolapk-mcp 接到你的产品?开个 Issue 或 PR,README 生态区欢迎挂友链。

已知限制

  • /v6/feed/detail 验证码:新版酷安对详情接口风控更严,部分环境会稳定返回 err_request_captcha_v2;搜索、列表、用户动态、评论等读接口通常仍可用。详见 #5。临时思路:从作者动态列表按 ID 回落读公开帖(不保证字段完整)。
  • 请合理使用接口频率,遵守酷安用户协议与当地法规;本项目仅作个人/研究向信息检索,不提供绕过风控或破解软件相关能力。

技术实现(简述)

  • Token 生成与设备标识模拟,兼容公开 API 访问模式
  • Pydantic 精简序列化(exclude_defaults=True),输出体积约为原始响应的约 10%

项目结构

coolapk_mcp/
├── server.py          # MCP Server 入口
├── cli.py             # CLI 入口
├── client.py          # HTTP 客户端 + API 封装
├── models.py          # Pydantic 数据模型
├── config.py          # 配置管理
└── auth/
    ├── token.py       # Token 生成
    └── device.py      # 设备码生成

致谢

License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "coolapk-mcp": {
      "command": "coolapk-mcp",
      "args": []
    }
  }
}

Use Coolapk MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Coolapk MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to 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 Coolapk 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 Coolapk 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": {
    "coolapk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Coolapk 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 Coolapk 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 Coolapk MCP to help me with this task?
Coolapk MCP
Sure. I read it.
Here is what I found using Coolapk MCP.

Frequently asked questions

What is the Coolapk MCP MCP server used for?

Coolapk 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 Coolapk MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Coolapk 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 Coolapk 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 Coolapk MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Coolapk MCP MCP to TypingMind?

Coolapk MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Coolapk MCP MCP provide in TypingMind?

Coolapk 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 Coolapk MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Coolapk 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 👇