房地产定价服务接口

PriceLabs MCP Server是一个标准化的接口服务,用于与PriceLabs房地产定价服务进行交互,提供房产列表、价格计算、市场数据等功能。

  • by angussewell
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 angussewell/pricelabs-mcp

使用说明

PriceLabs MCP服务器

价格实验室API的模型上下文协议服务器,为与价格实验室房地产定价服务进行交互提供标准化接口。

设置

1. 安装依赖项

对于Node.js的实现:

npm install

对于Python实现:

pip install -r requirements.txt

2. 配置API密钥

  1. 复制示例配置文件:

    cp clients.json.example clients.json
    
  2. 编辑 clients.json 并添加您的PriceLabs API密钥:

    {
      "client_name": {
        "name": "Client Display Name",
        "api_key": "YOUR_PRICELABS_API_KEY"
      }
    }
    

⚠️(注意/警告) 重要永远不要提交(代码/更改等) clients.json 用于版本控制。它包含敏感的API密钥。

3. 启动服务器

MCP 服务器(Node.js):

npm start

MCP 服务器(Python):

python main.py

FastAPI 服务器(Python):

python server.py

可用工具

  • list_clients - 列出所有已配置的PriceLabs客户端
  • get_all_listings - 获取房产列表
  • update_listings - 更新多个房产列表
  • get_specific_listing - 获取详细的列表信息
  • add_listing_data - 添加新的属性数据
  • get_overrides - 获取价格覆盖设置
  • update_overrides - 创建/更新定价规则
  • delete_overrides - 移除价格覆盖
  • get_listing_prices - 获取计算后的定价数据
  • get_rate_plans - 提取定价策略
  • get_neighborhood_data - 获取市场数据
  • get_reservations - 访问预订数据

测试

运行测试套件:

python test_suite.py

安全

  • API密钥存储在 clients.json 该文件已通过(某种方式)从版本控制中排除 .gitignore
  • 使用 clients.json.example 作为您自己配置的模板
  • 不要分享或提交你实际的API密钥

许可证

麻省理工学院(MIT)