RedNote-MCP provides a robust server solution for accessing content from XiaoHongShu, a popular Chinese social media platform. With features such as cookie management, keyword search for notes, and a command-line initialization tool, it streamlines the access to content and interactions while ensuring security and efficient use.
RedNote-MCP serves as an essential tool for efficiently accessing content from the popular platform RedNote (小红书). This MCP server enables seamless interaction with the platform, ensuring users can retrieve notes, comments, and other relevant information effortlessly.
To begin using RedNote-MCP, an initialization process is required, which sets up the cookie file necessary for subsequent access. This ensures that user sessions are maintained securely.
To initialize the login, run the command:
rednote-mcp init
Upon execution, this command will open a browser window directing you to the RedNote login page. After completing the login, the cookie file will be saved automatically for future use.
To connect the RedNote MCP server with the Cursor application, simply add the following configuration to your settings.json:
{
"mcpServers": {
"RedNote MCP": {
"command": "rednote-mcp",
"args": ["--stdio"]
}
}
}
Alternatively, use the npx method to execute the server:
{
"mcpServers": {
"RedNote MCP": {
"command": "npx",
"args": ["rednote-mcp", "--stdio"]
}
}
}
RedNote-MCP is built for developers. The environment requirements include:
Using the following commands, developers can install dependencies, build, and run the project in a development mode:
# Install Dependencies
npm install
# Build Project
npm run build
# Run in Development Mode
npm run dev
# Execute Tests
npm test
Developers can leverage the MCP Inspector tool, a dedicated debugging application for MCP servers, which helps validate and examine server behavior. Start the inspector with:
npx @modelcontextprotocol/inspector npx rednote-mcp --stdio
This command initiates the Inspector, allowing for an interactive exploration of requests and responses, aiding in debugging and protocol validation.
init command is mandatory for first-time users to set up necessary login credentials.Contributions to the RedNote-MCP project are encouraged. Steps include:
git checkout -b feature/AmazingFeature).git commit -m 'Add some AmazingFeature').git push origin feature/AmazingFeature).RedNote-MCP aims to enhance content accessibility on RedNote, making it a valuable resource for developers and users alike.
No comments yet.
Sign in to be the first to comment.