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 分