返回市场
麦普标签新闻

麦普标签新闻

作者:renant3 星标更新:2025-08-14

项目介绍

MCP TabNews 集成

smithery 徽章

这是一个用于 TabNews 的 Model Context Protocol (MCP) 集成。

此 MCP 服务器也可在 Smithery 上直接集成。

<a href="https://glama.ai/mcp/servers/@renant/mcp-tabnews"> <img width="380" height="200" src="https://gips2.baidu.com/it/u=978408890,3982575242&fm=3081&app=3_081&f=PNG?w=760&h=400" alt="TabNews 集成 MCP 服务器" /> </a>

可用工具

  • checkStatusTool: 检查 TabNews API 的状态。
  • getContentsTool: 从 TabNews 获取内容。
  • getContentsByUserTool: 根据用户从 TabNews 获取内容。
  • getContentTool: 根据用户和 slug 从 TabNews 获取带有正文的内容。
  • getContentChildrenTool: 根据内容从 TabNews 获取评论。
  • getAnalyticsUserCreatedTool: 获取 TabNews 中用户创建内容的分析数据。
  • getAnalyticsRootContentPublishedTool: 获取 TabNews 中根内容发布的分析数据。
  • getAnalyticsChildContentPublishedTool: 获取 TabNews 中子内容发布的分析数据。
  • getRssFeedTool: 从 TabNews 获取 RSS 订阅源。

与 AI 工具的集成

检查 MCP 服务器功能

你可以使用 Smithery 来检查此 MCP 服务器的功能:

npx -y @smithery/cli@latest inspect @renant/mcp-tabnews

这将显示所有可用工具、它们的参数以及如何使用它们。

安装

手动安装

  1. 确保你正在使用 Node.js v23+
node -v
#v23.11.0
  1. 克隆此仓库:
git clone https://github.com/renant/mcp-tabnews.git
cd mcp-tabnews
  1. 恢复依赖项:
npm ci

与 AI 工具的集成

Cursor 设置

  1. 打开 Cursor 设置

  2. 导航到 MCP 部分

  3. 点击“添加新 MCP 服务器”

  4. 配置服务器:

    名称 = mcp-tabnews
    类型 = 命令
    命令 = node 绝对路径到项目/src/index.ts
    

    或者如果你更喜欢从 Smithery 执行它

    名称 = mcp-tabnews
    类型 = 命令
    命令 = npm exec -- @smithery/cli@latest run @renant/mcp-tabnews
    

或者直接从位于 ~/.cursor/mcp.json 的 Cursor 全局 MCP 文件中配置,并添加以下内容:

{
  "mcpServers": {
    "mcp-tabnews": {
      "命令": "node",
      "参数": ["绝对路径到项目/src/index.ts"]
    }
  }
}

或者如果你更喜欢从 Smithery 执行它

{
  "mcpServers": {
    "mcp-tabnews": {
      "命令": "npm",
      "参数": [
        "exec",
        "--",
        "@smithery/cli@latest",
        "run",
        "@renant/mcp-tabnews"
      ]
    }
  }
}
  1. 确保 Cursor 聊天处于代理模式,通过选择左下角下拉菜单中的“代理”

  2. 进入聊天并询问有关 TabNews 的任何问题

Claude Desktop 设置

通过 Smithery 安装

要通过 Smithery 自动安装 TabNews 到 Claude Desktop:

npx -y @smithery/cli install @renant/mcp-tabnews --client claude

开发

特性

  • 使用 Model Context Protocol (MCP) 构建
  • 使用 TypeScript 和 Zod 模式验证进行类型安全
  • 在 Node.js 中支持原生 TypeScript,无需转译
  • 使用标准 I/O 传输进行轻松集成
  • 结构化错误处理

贡献

欢迎贡献!请随意提交拉取请求。

作者

Renan Teixeira

许可证

本项目根据 MIT 许可证授权 - 查看 LICENSE 文件以获取详细信息。