这是一个用于 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 订阅源。你可以使用 Smithery 来检查此 MCP 服务器的功能:
npx -y @smithery/cli@latest inspect @renant/mcp-tabnews
这将显示所有可用工具、它们的参数以及如何使用它们。
node -v
#v23.11.0
git clone https://github.com/renant/mcp-tabnews.git
cd mcp-tabnews
npm ci
打开 Cursor 设置
导航到 MCP 部分
点击“添加新 MCP 服务器”
配置服务器:
名称 = 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"
]
}
}
}
确保 Cursor 聊天处于代理模式,通过选择左下角下拉菜单中的“代理”
进入聊天并询问有关 TabNews 的任何问题
要通过 Smithery 自动安装 TabNews 到 Claude Desktop:
npx -y @smithery/cli install @renant/mcp-tabnews --client claude
欢迎贡献!请随意提交拉取请求。
本项目根据 MIT 许可证授权 - 查看 LICENSE 文件以获取详细信息。