Leaseclear Mcp

io.github.amadeuserras由 GitHub 帳號 amadeuserras 發布v0.1.3更新於 Oct 24, 2026

MCP server for LeaseClear lease Q&A.

已驗證STDIO僅桌面知識與記憶商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理就租約條款提問,並取得根據 LeaseClear 租約文件產生的回答。

可以做什麼
就租約條款提出單一問題,取得根據租約內容的回答,或被告知租約未涵蓋該問題(lease_qa)。
適用情境
適合讓助理依據 LeaseClear 文件而非一般知識,回答房客或物業管理者關於押金、條款等租約內容的問題。
執行需求
透過 uvx 以 stdio 在本機執行,需要安裝 uv。示範模式不需帳號;使用自己的 LeaseClear 帳號需設定環境變數 LEASECLEAR_API_KEY。可用 LEASECLEAR_API_URL 指向本機或私有執行個體,否則使用 LeaseClear 正式後端,因此需要網路存取。
安裝前請注意
LEASECLEAR_API_KEY 是存取你 LeaseClear 帳號的密鑰,以環境變數形式傳入。問題與文件內容會傳送到 LeaseClear 後端(或 LEASECLEAR_API_URL 指定的位址)。查詢哪些文件是透過模型看不到的 _meta document_ids 傳遞,需由用戶端主動設定。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Leaseclear Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

leaseclear-mcp

A Model Context Protocol server that exposes LeaseClear lease Q&A.

Listed in the official MCP Registry as io.github.amadeuserras/leaseclear-mcp.

Tools

  • lease_qa — ask one question about lease terms; returns an answer grounded in the lease, or states that the lease is silent

Usage

Add this to your MCP client config (e.g. claude_desktop_config.json or Cursor mcp.json):

json
{  "mcpServers": {    "lease-qa": {      "command": "uvx",      "args": ["leaseclear-mcp"]    }  }}

The package is on PyPI. uvx fetches and runs it as a local subprocess, communicating over stdio. uv required.

Optional environment variables

VariableDescriptionDefault
LEASECLEAR_API_KEYUse the server with your own LeaseClear accountLeaseClear demo mode
LEASECLEAR_API_URLOverride the API endpoint (local or private instances)LeaseClear production backend
json
{  "mcpServers": {    "lease-qa": {      "command": "uvx",      "args": ["leaseclear-mcp"],      "env": {        "LEASECLEAR_API_KEY": "lc_...",        "LEASECLEAR_API_URL": "https://..."      }    }  }}

lease_qa usage

Argument

  • question (string, required) — one question about the lease

_meta

  • document_ids (string[], optional) — UUIDs of the documents to query. Omitted means all.

Security: The _meta field is used to pass metadata to the tool call that the model doesn't see. Having document_ids there is intentional: it prevents cross-document prompt injection because the model is never able to choose which documents it has access to. See a real-world example in LeaseOps: prompt injection and the tenants table.

MCP Python SDK example

Tool call:

python
result = await session.call_tool(    name="lease_qa",    arguments={        "question": "How much is the security deposit for Yuna Kim?"    },    meta={        "document_ids": [            "a1b2c3d4-e5f..."        ]    })

Output:

json
{  "answer": "The security deposit is $6,400.00. This deposit is held in Owner's Broker's trust account [california-johnson-kim §4]."}

Tech stack

  • Python 3.12
  • Model Context Protocol Python SDK (mcp[cli]) over stdio
  • httpx for LeaseClear API calls
  • Pydantic and pydantic-settings for schemas and config
  • uv and uv_build for running and packaging
  • pytest, Ruff, and Pyright for tests, linting, and type checking

Project structure

leaseclear-mcp/├── src/leaseclear_mcp/│   ├── server.py        # MCP server + lease_qa│   ├── leaseclear.py    # LeaseClear HTTP client│   ├── schemas.py│   └── config.py├── tests/├── pyproject.toml├── .env.example└── README.md

Local Development

bash
git clone https://github.com/you/leaseclear-mcp.gitcd leaseclear-mcpuv synccp .env.example .envuv run pytestuv run ruff check .uv run pyright

Debugging

Use the MCP Inspector to test the server interactively:

bash
npx @modelcontextprotocol/inspector uvx leaseclear-mcp

From a checkout, use uv run leaseclear-mcp instead of uvx leaseclear-mcp.

License

MIT

來源:README.md,提交 a96c205

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分