访问小红书内容的MCP服务
https://github.com/user-attachments/assets/06b2c67f-d9ed-4a30-8f1d-9743f3edaa3a
在启动playwright环境之前,请确保已安装它
npx playwright install
要通过Smithery自动安装rednote-mcp给Claude Desktop:
npx -y @smithery/cli install @JonaFly/rednote-mcp --client claude
# 全局安装
npm install -g rednote-mcp
# 初始化登录,会自动记录cookie到 ~/.mcp/rednote/cookies.json
rednote-mcp init
# 克隆项目
git clone https://github.com/ifuryst/rednote-mcp.git
cd rednote-mcp
# 安装依赖
npm install
# 全局安装(可选,方便命令行调用)
npm install -g .
# 或者直接运行,如初始化登录
npm run dev -- init
首次使用需要初始化登录:
rednote-mcp init
# 或者直接从源码run
npm run dev -- init
# 或者mcp-client里选择login
执行此命令后:
~/.mcp/rednote/cookies.json文件中在cursor的settings.json中添加以下配置:
{
"mcpServers": {
"RedNote MCP": {
"command": "rednote-mcp",
"args": [
"--stdio"
]
}
}
}
或者使用npx方法:
{
"mcpServers": {
"RedNote MCP": {
"command": "npx",
"args": [
"rednote-mcp",
"--stdio"
]
}
}
}
配置说明:
command: 可以是全局安装的rednote-m_命令,也可以使用npx直接运行args: 必须包括--stdio参数以支持cursor的通信方式# 安装依赖
npm install
# 构建项目
npm run build
# 开发模式运行
npm run dev
# 运行测试
npm test
MCP Inspector是一个用于调试MCP服务器的工具,可以帮助开发者检查和验证MCP服务器的行为。使用以下命令启动:
npx @modelcontextprotocol/inspector npx rednote-mcp --stdio
此命令将:
init命令进行登录git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)MIT许可证 - 查看详细信息LICENSE文档