mcp-server-weibo

mcp-server-weibo

为 AI 助手提供微博数据查询能力,支持搜索用户、获取动态、热搜榜等功能。

Category
Visit Server

README

mcp-server-weibo

微博 MCP 服务器,通过 Model Context Protocol 为 AI 助手提供微博数据查询能力。

功能

工具 说明
search_users 根据关键词搜索微博用户
get_profile 获取用户资料
get_feeds 获取用户动态
get_hot_feeds 获取用户热门动态
get_trendings 获取微博热搜榜
search_content 搜索微博内容
search_topics 搜索微博话题
get_followers 获取用户关注列表
get_fans 获取用户粉丝列表
get_comments 获取帖子评论

安装

在 MCP 客户端的配置中添加:

从 GitHub 源码安装:

{
  "mcpServers": {
    "weibo": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/InfernalAzazel/mcp-server-weibo.git",
        "mcp-server-weibo"
      ],
      "env": {
        "COOKIE": "你的微博 cookie"
      },
    }
  }
}

本地开发:

uv pip install -e .
# 或
pip install -e .

配置

需要配置微博 Cookie 才能调用 API。在 env 中设置 COOKIE,或在项目目录下创建 .env

COOKIE=你的微博Cookie字符串

或通过命令行保存到 .env

mcp-server-weibo --cookie "你的微博Cookie"

获取 Cookie:登录 m.weibo.cn,在浏览器开发者工具中复制请求头里的 Cookie。

使用

stdio(默认)

mcp-server-weibo
# 或
mcp-server-weibo stdio

HTTP 模式

mcp-server-weibo http
# 默认端口 4200,可通过环境变量 PORT 修改
PORT=8080 mcp-server-weibo http

开发调试

uv run fastmcp dev inspector src/mcp_server_weibo/server.py --ui-port 3666 --server-port 3667

测试

# 运行所有测试
uv run pytest tests/ -v

# 需要 COOKIE 的 API 测试(未配置会跳过)
uv run pytest tests/test_weibo.py -v

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured