
Leaseclear Mcp
io.github.amadeuserras由 GitHub 帳號 amadeuserras 發布v0.1.3更新於 Oct 24, 2026
MCP server for LeaseClear lease Q&A.
概覽
一個本機 MCP 伺服器,讓助理就租約條款提問,並取得根據 LeaseClear 租約文件產生的回答。
- 可以做什麼
- 就租約條款提出單一問題,取得根據租約內容的回答,或被告知租約未涵蓋該問題(lease_qa)。
- 適用情境
- 適合讓助理依據 LeaseClear 文件而非一般知識,回答房客或物業管理者關於押金、條款等租約內容的問題。
- 執行需求
- 透過 uvx 以 stdio 在本機執行,需要安裝 uv。示範模式不需帳號;使用自己的 LeaseClear 帳號需設定環境變數 LEASECLEAR_API_KEY。可用 LEASECLEAR_API_URL 指向本機或私有執行個體,否則使用 LeaseClear 正式後端,因此需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Leaseclear Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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):
The package is on PyPI. uvx fetches and runs it as a local subprocess, communicating over stdio. uv required.
Optional environment variables
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:
Output:
Tech stack
- Python 3.12
- Model Context Protocol Python SDK (
mcp[cli]) over stdio httpxfor LeaseClear API calls- Pydantic and
pydantic-settingsfor schemas and config uvanduv_buildfor running and packaging- pytest, Ruff, and Pyright for tests, linting, and type checking
Project structure
Local Development
Debugging
Use the MCP Inspector to test the server interactively:
From a checkout, use uv run leaseclear-mcp instead of uvx leaseclear-mcp.
License
MIT
來源:README.md,提交 a96c205
工具
0版本歷史
1- v0.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分