
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 分