open-shenloushi
by renzheng0415
README.md
# open深楼市 (Open Shenzhen Real Estate) MCP Server
[](https://www.openshenzhen.cn/research)
[](https://www.openshenzhen.cn/en/research)
[](https://www.openshenzhen.cn/research/agent)
[](LICENSE)
Public, anonymous, read-only **Model Context Protocol (MCP)** server and **OpenAPI 3.1** interface for **open深楼市** (`www.openshenzhen.cn`) — an open-data terminal for the Shenzhen real estate market.
Query official daily new-home subscriptions & signed contracts, unit-by-unit price lists (一房一价), 200+ project evaluations, resale transaction samples, gross rental yields across 4,318 communities, affordable housing & residential land supply, and daily housing policy briefings directly inside Claude, Cursor, Codex, ChatGPT, Dify, or Coze.
---
## Live Public Endpoints (No Auth Required)
| Interface | URL | Description |
| :--- | :--- | :--- |
| **Research Data MCP (10 tools)** | `https://www.openshenzhen.cn/api/research/mcp` | Streamable HTTP (`POST`, JSON-RPC 2.0) — official market metrics, new-home inventory, unit prices, resale deals, rental yields, land supply, policy docs |
| **Real Estate News MCP (5 tools)** | `https://www.openshenzhen.cn/api/mcp` | Streamable HTTP (`POST`, JSON-RPC 2.0) — curated Shenzhen housing news, search, hot topics, timelines, daily briefings |
| **OpenAPI 3.1 Spec** | `https://www.openshenzhen.cn/api/research/openapi.json` | Ready to import into Coze (扣子), Dify, Bailian (阿里云百炼), Tencent Yuanqi, or Custom GPTs |
| **LLM Site Directory** | `https://www.openshenzhen.cn/llms.txt` | Concise AI-readable site map & data methodology (`llms-full.txt` also available) |
| **Web Terminal (CN / EN)** | `https://www.openshenzhen.cn/research` · [`/en/research`](https://www.openshenzhen.cn/en/research) | Interactive dashboards, 135-area price cycle map, & [3D Property Map](https://www.openshenzhen.cn/open-shenzhen/) |
> **Fair Use & Access Policy**: Both MCP endpoints are free, stateless, read-only, and work anonymously out of the box under standard public rate limits (`Accept: application/json, text/event-stream`).
---
## Quick Start
### 1. Claude Code
```bash
claude mcp add --transport http open-shenloushi https://www.openshenzhen.cn/api/research/mcp
```
Optional — also add the curated real estate news MCP:
```bash
claude mcp add --transport http open-shenloushi-news https://www.openshenzhen.cn/api/mcp
```
### 2. Cursor / Windsurf (`mcp.json`)
See [`examples/cursor-mcp.json`](examples/cursor-mcp.json):
```json
{
"mcpServers": {
"open-shenloushi": {
"url": "https://www.openshenzhen.cn/api/research/mcp"
},
"open-shenloushi-news": {
"url": "https://www.openshenzhen.cn/api/mcp"
}
}
}
```
### 3. Claude Desktop
See [`examples/claude-desktop-config.json`](examples/claude-desktop-config.json) (uses `mcp-remote` bridge for remote Streamable HTTP):
```json
{
"mcpServers": {
"open-shenloushi": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://www.openshenzhen.cn/api/research/mcp"]
}
}
}
```
### 4. cURL Verification
Run [`examples/quickstart.sh`](examples/quickstart.sh) or test directly:
```bash
curl -sS -X POST https://www.openshenzhen.cn/api/research/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```
---
## Available Tools (15 Read-Only Tools)
### Research Data MCP (`/api/research/mcp` — 10 Tools)
| Tool | Arguments | Purpose |
| :--- | :--- | :--- |
| `sz_market_overview` | `—` | Shenzhen citywide daily, 7-day, and MTD new-home subscriptions, signed contracts, anomalies, resale signed contracts, 30d/12w/12m trends, & top project rankings |
| `sz_sales_daily_changes` | `period`, `q`, `day`, `kind`, `limit` | Single-project daily/weekly/monthly change rankings (T-1 business day, merged across all presale permits per project) |
| `sz_resale_deals` | `period`, `year`, `from`, `to`, `q`, `district`, `limit`, `offset` | Public brokerage resale transaction samples & active community rankings (distinct from Housing Bureau citywide totals) |
| `sz_stats_aggregate` | `dataset`, `group_by`, `metrics`, `filters`, `sort_by`, `order`, `top_n` | Server-side aggregation over `resale`, `new_home_deals`, or `inventory` grouped by community, area/plate, district, time, area band, or price band |
| `sz_project_evaluations` | `q`, `district`, `filter`, `limit` | In-depth pros/cons evaluations for 200+ major Shenzhen new-home projects, discounted unit/total prices, layouts, & metro/school/retail context |
| `sz_search_projects` | `q`, `district`, `limit` | Search on-sale Shenzhen residential projects and retrieve `entity_id`, permit count, total units, unsold off-plan stock, & active subscriptions |
| `sz_project_rooms` | `entity_id`, `batch`, `building`, `status` | Unit-by-unit official price list (一房一价) and real-time sale status for a specific project `entity_id` |
| `sz_community_yield_and_property` | `tab`, `q`, `district`, `sort`, `price_basis`, `limit` | Official reference rents, gross rental yields (租售比), property management ratings (`AAA/AA/A`), HOA status, & urban village rents |
| `sz_land_supply_and_affordable` | `tab`, `q`, `district`, `limit` | 527 residential land parcels, 1,158 talent/Anju/affordable housing projects, design change notices, & urban renewal records |
| `sz_search_documents` | `q`, `topic`, `limit` | Search Shenzhen housing policies, school catchment rules, high-school quota notices, & buyer guides |
### Real Estate News MCP (`/api/mcp` — 5 Tools)
| Tool | Arguments | Purpose |
| :--- | :--- | :--- |
| `szhouse_get_latest` | `window`, `mode`, `category`, `limit` | Latest curated Shenzhen housing briefings (24h or 7d) |
| `szhouse_search` | `q`, `window`, `category`, `limit` | Full-text search across the latest 7 days of real estate news & notices |
| `szhouse_get_hot_topics` | `limit` | Current Top 10 ranked Shenzhen housing events |
| `szhouse_get_story` | `public_id`, `report_limit` | Full evolving timeline and digest for a specific `public_id` |
| `szhouse_get_daily` | `date` | Edited daily housing overview (latest or specific `YYYY-MM-DD`) |
---
## Example Prompts
- *"Check Shenzhen's latest daily new-home subscriptions and resale signed contracts via `open-shenloushi`, plus the top 5 selling new projects this week."*
- *"Use `sz_stats_aggregate` to rank the top 10 areas in Nanshan District by resale median unit price in 2026."*
- *"Search for new-home projects in Guangming District and look up the unit-by-unit price list for the top match."*
- *"查一下深圳当前租售比最高的 10 个住宅小区,并附上所在区、官方参考租金和物业评级。"*
- *"对比一下南山后海和宝安中心区今年二手样本参考价和近期新房在售库存。"*
---
## Data Sources & Methodology
- **Shenzhen Housing and Construction Bureau (深圳市住建局)**: Daily new-home presale/existing subscriptions & signed contracts, unit-by-unit filing prices, official reference rents, property management ratings, affordable housing batches.
- **Shenzhen Planning and Natural Resources Bureau (深圳市规自局)**: Residential land supply and planning notices.
- **National Bureau of Statistics (国家统计局)**: 70-city commercial residential housing price index.
- **Shenzhen Government Open Data Platform & Public Brokerage Samples**: Clearly labeled and separated by scope (`全城网签口径` vs `公开中介样本口径`) so metrics are never mixed blindly.
See full documentation on [https://www.openshenzhen.cn/research/sources](https://www.openshenzhen.cn/research/sources) and [https://www.openshenzhen.cn/research/agent](https://www.openshenzhen.cn/research/agent).
---
## License
Documentation and integration examples in this repository are released under the [MIT License](LICENSE). Market data served by `openshenzhen.cn` follows its [Terms](https://www.openshenzhen.cn/terms) and [Data Sources Attribution](https://www.openshenzhen.cn/research/sources).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues