Building Big Data MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Building Big Data MCP Server查询腾讯科技有限公司的办公地址详情"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
楼宇大数据服务
该MCP服务提供企业关键词模糊搜索、企业办公地址明细、办公地址城市分布、楼宇搜索以及指定楼宇的入驻企业、入驻类型统计、入驻分布统计、楼宇基础信息、电子围栏和年鉴查询等楼宇大数据查询功能。
主要功能
🔍 企业关键词模糊搜索
📍 企业办公地址明细
🏙️ 办公地址城市分布
🏢 楼宇搜索
👥 楼宇入驻企业明细
📊 楼宇入驻类型统计
📈 楼宇入驻分布统计
🏗️ 楼宇基础信息
🗺️ 楼宇电子围栏
📖 楼宇年鉴
Related MCP server: Bidding MCP Server
环境要求
Python 3.10+
依赖包:python-dotenv, requests, mcp
本地快速启动
1. 克隆项目
git clone https://github.com/handaas/building-mcp-server
cd building-mcp-server2. 创建虚拟环境&安装依赖
python -m venv mcp_env && source mcp_env/bin/activate
pip install -r requirements.txt -c constraints.txt3. 环境配置
复制环境变量模板并配置:
cp .env.example .env编辑 .env 文件,配置以下环境变量:
INTEGRATOR_ID=your_integrator_id
SECRET_ID=your_secret_id
SECRET_KEY=your_secret_key4. streamable-http启动服务
python server/mcp_server.py streamable-http服务将在 http://localhost:8000 启动。
支持启动方式 stdio 或 sse 或 streamable-http
5. Cursor / Cherry Studio MCP配置
{
"mcpServers": {
"handaas-building-mcp-server": {
"type": "streamableHttp",
"url": "http://127.0.0.1:8000/mcp"
}
}
}STDIO版安装部署
设置Cursor / Cherry Studio MCP配置
{
"mcpServers": {
"building-mcp-server": {
"command": "uv",
"args": ["run", "mcp", "run", "{workdir}/server/mcp_server.py"],
"env": {
"PATH": "{workdir}/mcp_env/bin:$PATH",
"PYTHONPATH": "{workdir}/mcp_env",
"INTEGRATOR_ID": "your_integrator_id",
"SECRET_ID": "your_secret_id",
"SECRET_KEY": "your_secret_key"
}
}
}
}使用官方Remote服务
1. 直接设置Cursor / Cherry Studio MCP配置
{
"mcpServers": {
"building-mcp-server":{
"type": "streamableHttp",
"url": "https://mcp.handaas.com/building/building_bigdata?token={token}"
}
}
}注意:integrator_id、secret_id、secret_key及token需要登录 https://www.handaas.com/ 进行注册开通平台获取
可用工具
1. building_bigdata_fuzzy_search
功能: 企业关键词模糊查询
根据提供的企业名称、人名、品牌、产品、岗位等关键词模糊查询相关企业列表。
参数:
matchKeyword(必需): 匹配关键词 - 查询各类信息包含匹配关键词的企业pageIndex(可选): 分页开始位置 - 默认从1开始
返回值:
total: 总数resultList: 企业列表name: 企业名称nameId: 企业IDaddress: 注册地址foundTime: 成立时间enterpriseType: 企业主体类型legalRepresentative: 法定代表人operStatus: 经营状态regCapitalCoinType: 注册资本币种regCapitalValue: 注册资本金额homepage: 企业官网catchReason: 命中原因
2. building_bigdata_office_address_details
功能: 查询企业办公地址明细
通过输入企业标识信息查询企业的办公地址明细。
参数:
matchKeyword(必需): 企业名称/注册号/统一社会信用代码/企业IDaddress(可选): 省市地区 - 不可多选,例如广东省,广州市pageIndex(可选): 页码 - 默认从1开始pageSize(可选): 每页数量 - 最多10条keywordType(可选): 主体类型 - 枚举值:name(企业名称)、nameId(企业ID)、regNumber(注册号)、socialCreditCode(统一社会信用代码)
返回值:
total: 总数resultList: 办公地址明细列表officeAddress: 办公地址officeSourceType: 地址来源officeSettleType: 入驻方式estateName: 楼宇名称estateId: 楼宇ID
3. building_bigdata_office_address_stats
功能: 统计企业办公地址城市分布
统计指定企业在各城市的办公地址数量。
参数:
matchKeyword(必需): 企业名称/注册号/统一社会信用代码/企业IDkeywordType(可选): 主体类型 - 枚举值:name、nameId、regNumber、socialCreditCode
返回值:
officeCityStats: 城市分布统计列表city: 城市count: 办公地址数量
4. building_bigdata_building_query
功能: 搜索楼宇
按楼宇名称、别名、地区或类型搜索楼宇,返回后续查询所需的楼宇ID。
参数:
matchKeyword(可选): 楼宇名称或别名关键词address(可选): 省市地区 - 不可多选,例如广东省,广州市estatePropertyType(可选): 楼宇类型 -写字楼、产业园、综合体、公寓酒店、展会中心pageIndex(可选): 页码 - 默认从1开始pageSize(可选): 每页数量 - 最多10条,默认10条
返回值:
total: 总数resultList: 楼宇列表estateName: 楼宇名称estateId: 楼宇IDestateAliasName: 楼宇别名estateAddress: 楼宇地址estatePropertyType: 楼宇类型estateEnterpriseCount: 入驻企业数量
5. building_bigdata_resident_enterprise_details
功能: 查询楼宇入驻企业明细
通过楼宇ID查询入驻企业清单及基础信息。
参数:
matchKeyword(必需): 楼宇ID - 不能为空白字符串pageIndex(可选): 页码 - 默认从1开始pageSize(可选): 每页数量 - 范围1~10,默认10
返回值:
total: 结果总数resultList: 企业列表name: 企业名称nameId: 企业IDregAddress: 企业注册地址officeAddress: 入驻地址officeSourceType: 入驻地址来源officeSettleType: 入驻方式
6. building_bigdata_resident_type_stats
功能: 查询楼宇入驻类型统计
通过楼宇ID查询入驻企业数量及类型统计。
参数:
matchKeyword(必需): 楼宇ID
返回值:
estateEnterpriseCount: 楼宇入驻企业数量estateEnterpriseSettleInByEnterpriseCount: 注册地址入驻企业数量estateEnterpriseSettleInByOfficeAddressCount: 办公地址入驻企业数量estateAbnormalOperationEnterpriseCount: 非正常经营企业数量estateEnterpriseActiveCount: 注册地址入驻企业活跃数量estateOfficeAddressActiveCount: 办公地址入驻企业活跃数量
7. building_bigdata_resident_distribution_stats
功能: 查询楼宇入驻分布统计
通过楼宇ID查询入驻企业的行业、榜单类型、注册资本和成立年限分布。
参数:
matchKeyword(必需): 楼宇ID
返回值:
estateTopIndustriesDistributionStats: 一级行业分布(分类字段firstIndustry)estateListEnterpriseStats: 榜单分布(分类字段lisType,保留接口原名)estateRegCapitalDistributionStats: 注册资本分布(分类字段regCapitalRange)estateRegDurationDistributionStats: 成立年限分布(分类字段foundTerm)各项含
enterpriseCount(注册地址入驻企业数量)和officeAddressCount(办公地址入驻企业数量)
8. building_bigdata_building_basic_info
功能: 查询楼宇基础信息
通过楼宇ID查询楼宇基础信息,返回开发商、物业、商圈、配置信息等。
参数:
matchKeyword(必需): 楼宇ID
返回值:
estateName: 楼宇名称estateAliasName: 楼宇别名estateAddress: 楼宇地址estatePropertyType: 楼宇类型estateEnterpriseCount: 入驻企业数量estateDeveloper: 开发商estatePropertyEnterprise: 物业公司estateBusinessCircle: 商圈estateBuildingArea: 总建筑面积estateCompletionTime: 竣工时间estateTotalLayer: 楼层数estateParkingSpace: 停车位estateLiftQuantity: 电梯数量estatePropertyCosts: 物业管理费estateAverageRentPrice: 在租均价estateRentAreaRange: 房源面积范围
9. building_bigdata_building_electronic_fence
功能: 查询楼宇电子围栏
通过楼宇ID查询楼宇位置和电子围栏。
参数:
matchKeyword(必需): 楼宇ID
返回值:
estateLngAndLat: 楼宇坐标(含lat纬度、lng经度)estateCoords: 电子围栏(含gridType围栏类型、coords坐标点)
10. building_bigdata_building_yearbook
功能: 查询楼宇年鉴
通过楼宇ID查询楼宇历年的企业新增、迁入、迁出和灭失数量。
参数:
matchKeyword(必需): 楼宇ID
返回值:
estateChangeStat: 迁移统计列表year: 年份foundCount: 新增企业数settleInCount: 迁入企业数moveOutCount: 迁出企业数lossCount: 灭失企业数
使用注意事项
企业全称要求: 在调用需要企业全称的接口时,需要先调用关键词模糊查询企业接口进行补全后,再调用该接口。
楼宇ID获取: 查询楼宇详情前需要先通过楼宇搜索获取楼宇
estateId,不能直接传楼宇名称或企业ID。API限制: 办公地址明细一页最多获取10条,入驻企业明细一页最多获取10条,楼宇搜索一页最多获取10条,企业模糊搜索一页最多获取50条。
错误处理: 所有接口都包含错误处理,查询失败时会返回相应的错误信息;调用HandaaS上游接口的HTTP请求超时时间为30秒。
使用提问示例
building_bigdata_fuzzy_search (企业关键词模糊搜索)
帮我查找包含"华为"关键词的企业信息
搜索与"腾讯"相关的企业列表
查询名称中包含"阿里巴巴"的公司
building_bigdata_office_address_details (企业办公地址明细)
华为在哪些楼宇有办公地址?
查询腾讯科技有限公司的办公地址
字节跳动在深圳有哪些办公地点?
building_bigdata_office_address_stats (办公地址城市分布)
华为的办公地址分布在哪些城市?
统计腾讯在各城市的办公地址数量
阿里巴巴在哪些城市有办公场所?
building_bigdata_building_query (楼宇搜索)
搜索"上海中心大厦"相关的楼宇
查询北京的写字楼
广州有哪些产业园区?
building_bigdata_resident_enterprise_details (楼宇入驻企业明细)
上海中心大厦有哪些企业入驻?
查询某楼宇的入驻企业清单
深圳湾科技生态园入驻了哪些公司?
building_bigdata_resident_type_stats (楼宇入驻类型统计)
上海中心大厦的入驻企业类型统计
查询某楼宇的入驻企业数量
深圳湾科技生态园有多少注册地址入驻企业?
building_bigdata_resident_distribution_stats (楼宇入驻分布统计)
上海中心大厦入驻企业的行业分布
查询某楼宇入驻企业的注册资本分布
深圳湾科技生态园入驻企业成立年限分布
building_bigdata_building_basic_info (楼宇基础信息)
上海中心大厦的开发商是谁?
查询某楼宇的基本信息
深圳湾科技生态园的物业公司是哪家?
building_bigdata_building_electronic_fence (楼宇电子围栏)
上海中心大厦的位置坐标
查询某楼宇的电子围栏
深圳湾科技生态园的经纬度信息
building_bigdata_building_yearbook (楼宇年鉴)
上海中心大厦历年的企业迁入迁出情况
查询某楼宇的企业数量变化
深圳湾科技生态园每年新增多少企业?
测试验证
python -m py_compile server/mcp_server.py
python -m unittest discover -s tests -v测试覆盖参数校验、分页边界、签名、上游异常和MCP工具注册;测试中的上游HTTP请求均使用模拟数据,不读取真实凭证。
This server cannot be deployed
Maintenance
Related MCP Connectors
Building data: address, use, size, height, floors, age, roof, solar panels and the businesses registered at each building.
Structured Chinese official data for AI agents: 426 entries, JSON-LD, read-only. find/get/list
One API for public web data across social, directories and real estate, as clean JSON.
Official SupplyGraph.AI data MCP: POIs, parks, regions, industry chains, and companies.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceEnables querying Chinese enterprise business data including company profiles, shareholder information, investments, branch offices, and key personnel through fuzzy search and detailed lookups.3-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Chinese bidding and tendering data, enabling users to search for companies, analyze bidding statistics, query tender announcements, and discover project opportunities for market analysis and business development.11-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive data insights into enterprise operations, including company trends, financing history, market rankings, and sentiment analysis. It enables users to perform keyword-based searches and evaluate business scale, tax qualifications, and competitive project profiles.3-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive enterprise qualification and certificate data, including honors, administrative licenses, and professional background statistics. It enables users to search for companies and verify their bidding eligibility or compliance status through natural language queries.3-