# Mcp Server Weibo

> 微博数据接口服务器（基于 Model Context Protocol） 实时、高效、接入微博数据。 无缝获取用户信息、动态内容、热搜榜单以及粉丝关注数据；支持灵活的用户搜索、内容搜索和话题分析。 专为 AI 应用设计，让你的智能系统轻松利用微博海量数据，快速实现内容洞察与趋势分析。

- **Type:** MCP server
- **Install:** `agentstack add mcp-infernalazazel-mcp-server-weibo`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [InfernalAzazel](https://agentstack.voostack.com/s/infernalazazel)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [InfernalAzazel](https://github.com/InfernalAzazel)
- **Source:** https://github.com/InfernalAzazel/mcp-server-weibo

## Install

```sh
agentstack add mcp-infernalazazel-mcp-server-weibo
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# mcp-server-weibo

微博 MCP 服务器，通过 [Model Context Protocol](https://modelcontextprotocol.io/) 为 AI 助手提供微博数据查询能力。

## 功能

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

## 安装

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

**从 GitHub 源码安装：**

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

**本地开发：**

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

## 配置

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

```text
COOKIE=你的微博Cookie字符串
```

或通过命令行保存到 `.env`：

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

> 获取 Cookie：登录 [m.weibo.cn](https://m.weibo.cn)，在浏览器开发者工具中复制请求头里的 Cookie。

## 使用

### stdio（默认）

```bash
mcp-server-weibo
# 或
mcp-server-weibo stdio
```

### HTTP 模式

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

### 开发调试

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

## 测试

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

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

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [InfernalAzazel](https://github.com/InfernalAzazel)
- **Source:** [InfernalAzazel/mcp-server-weibo](https://github.com/InfernalAzazel/mcp-server-weibo)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-infernalazazel-mcp-server-weibo
- Seller: https://agentstack.voostack.com/s/infernalazazel
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
