This is a Weibo hot search data acquisition server based on the Model Context Protocol (MCP) framework, providing functions to fetch Weibo hot search list, hot search details, and comments.
-
Get Weibo Hot Search List
- Display hot search rankings
- Show hot search keywords
- Show hot search index
-
Get Hot Search Details
- Topic category
- Topic description
- Topic link
- Topic claim information
- Statistics (reads, discussions, interactions, original posts)
-
Get Hot Search Comments
- Support getting comments from the first Weibo post or claim's post through hot search link
- Configurable maximum comment fetch count
- Display comment content and like count
- Python >=3.10
- Dependencies:
- requests
- lxml
- mcp>=1.0.0
- Clone the repository
git clone https://github.com/Yooki-K/weibo-mcp-server.git- Install dependencies:
pip install -r requirements.txtNote: If using
uv run weibo_mcp_server, dependencies will be installed automatically, no need forpip install
pip install weibo-mcp-serverCreate a Weibo account, press F12 to open developer tools, and get the cookie as shown below:

Add this tool to the MCP server
On Windows: C:/Users/YOUR_USER/.cursor/mcp.json
{
"mcpServers": {
"weibo": {
"command": "uv",
"args": [
"--directory",
"path/to/weibo-mcp-server",
"run",
"weibo_mcp_server"
],
"env":{
"weibo_COOKIE": YOUR_WEIBO_COOKIE
}
}
}
}On Windows: %APPDATA%/Claude/claude_desktop_config.json
"weibo": {
"command": "uv",
"args": [
"--directory",
"/path/to/weibo-mcp-server",
"run",
"weibo_mcp_server"
],
"env": {
"weibo_COOKIE": YOUR_WEIBO_COOKIE
}
}MIT License - see LICENSE file for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request