本项目实现了 TabNews 的 Model Context Protocol (MCP) 集成,可让你方便地与 TabNews 进行交互。此 MCP 服务器还能直接在 Smithery 上使用,无需额外配置。
node -v
#v23.11.0
git clone https://github.com/renant/mcp-tabnews.git
cd mcp-tabnews
npm ci
使用 Smithery 可以检查此 MCP 服务器的功能:
npx -y @smithery/cli@latest inspect @renant/mcp-tabnews
这将显示所有可用工具、它们的参数以及如何使用。
checkStatusTool:检查 TabNews API 状态。getContentsTool:从 TabNews 获取内容。getContentsByUserTool:按用户从 TabNews 获取内容。getContentTool:通过用户和文章 slug 从 TabNews 获取带有正文的内容。getContentChildrenTool:获取 TabNews 某篇文章的评论。getAnalyticsUserCreatedTool:获取某个用户创建内容的分析数据。getAnalyticsRootContentPublishedTool:获取已发布的根内容的分析数据。getAnalyticsChildContentPublishedTool:获取子内容发布的分析数据。getRssFeedTool:获取 TabNews 的 RSS 源。名称 = mcp-tabnews
类型 = 命令
命令 = node 绝对路径项目目录 /src/index.ts
或者从 Smithery 执行:
名称 = mcp-tabnews
类型 = 命令
命令 = npm exec -- @smithery/cli@latest run @renant/mcp-tabnews
或者直接在 Cursor 的全局 MCP 文件 ~/.cursor/mcp.json 中添加以下内容:
{
"mcpServers": {
"mcp-tabnews": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_PROJECT/src/index.ts"]
}
}
}
或者从 Smithery 执行:
{
"mcpServers": {
"mcp-tabnews": {
"command": "npm",
"args": [
"exec",
"--",
"@smithery/cli@latest",
"run",
"@renant/mcp-tabnews"
]
}
}
}
要通过 Smithery 自动安装 TabNews 用于 Claude Desktop:
npx -y @smithery/cli install @renant/mcp-tabnews --client claude
[项目许可证信息]