# 安装 cn.housingsentinel/housing-sentinel

- 类型: MCP 工具
- 说明: 中国12城官方房产成交数据与进攻/防守买卖信号 MCP。3天全城市免费试用，深圳信号永久免费。Housing data & signals for 12 Chinese cities.
- 仓库: https://github.com/SheldonZhuang/housing-sentinel-ai

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "cn.housingsentinel/housing-sentinel" MCP 服务：
执行：claude mcp add 'cn-housingsentinel-housing-sentinel' -- npx -y housing-sentinel-mcp
```

### Codex
```
请帮我安装 askskill 上的 "cn.housingsentinel/housing-sentinel" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.cn-housingsentinel-housing-sentinel]
command = "npx"
args = ["-y","housing-sentinel-mcp"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "cn.housingsentinel/housing-sentinel" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"cn-housingsentinel-housing-sentinel": { "command": "npx", "args": ["-y","housing-sentinel-mcp"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env HOUSING_SENTINEL_API_KEY=YOUR_VALUE --env HOUSING_SENTINEL_URL=YOUR_VALUE --transport stdio cn-housingsentinel-housing-sentinel -- npx -y housing-sentinel-mcp
```
需要环境变量：HOUSING_SENTINEL_API_KEY, HOUSING_SENTINEL_URL

### Codex
```bash
codex mcp add --env HOUSING_SENTINEL_API_KEY=YOUR_VALUE --env HOUSING_SENTINEL_URL=YOUR_VALUE cn-housingsentinel-housing-sentinel -- npx -y housing-sentinel-mcp
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.cn-housingsentinel-housing-sentinel]
command = "npx"
args = ["-y","housing-sentinel-mcp"]

[mcp_servers.cn-housingsentinel-housing-sentinel.env]
HOUSING_SENTINEL_API_KEY = "YOUR_VALUE"
HOUSING_SENTINEL_URL = "YOUR_VALUE"
```
需要环境变量：HOUSING_SENTINEL_API_KEY, HOUSING_SENTINEL_URL

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "cn-housingsentinel-housing-sentinel": {
      "command": "npx",
      "args": [
        "-y",
        "housing-sentinel-mcp"
      ],
      "env": {
        "HOUSING_SENTINEL_API_KEY": "YOUR_VALUE",
        "HOUSING_SENTINEL_URL": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=cn-housingsentinel-housing-sentinel&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImhvdXNpbmctc2VudGluZWwtbWNwIl0sImVudiI6eyJIT1VTSU5HX1NFTlRJTkVMX0FQSV9LRVkiOiJZT1VSX1ZBTFVFIiwiSE9VU0lOR19TRU5USU5FTF9VUkwiOiJZT1VSX1ZBTFVFIn19
需要环境变量：HOUSING_SENTINEL_API_KEY, HOUSING_SENTINEL_URL
