lease-qa-mcp

lease-qa-mcp

MCP server exposing lease Q&A via the lease_qa tool, querying a LeaseClear API to return grounded answers about specific lease documents.

Category
Visit Server

README

leaseclear-mcp

A standalone MCP server that exposes lease Q&A as one tool: lease_qa. It asks hosted LeaseClear a question about lease terms and returns a grounded answer.

This is a thin stdio process. By default it calls the public LeaseClear API. Override LEASECLEAR_API_URL only if you run your own instance.

Install

Requires Python 3.12+.

uvx leaseclear-mcp

Or:

pip install leaseclear-mcp
leaseclear-mcp

That starts the MCP server on stdio.

Configure

Variable Required Meaning
LEASECLEAR_API_URL no LeaseClear API URL. Defaults to https://leaseclear-production.up.railway.app. Set this for a local or private instance.
LEASECLEAR_API_KEY no LeaseClear API key (POST /auth/api-key while logged in). Query-only: asks questions as that user. Omit to use the public demo corpus.

If the key is set, this server sends it on /query. If omitted, it uses /auth/demo (no account needed).

From a git checkout you can copy .env.example to .env. After pip / uvx, set overrides in the MCP host env block instead.

Cursor / Claude Desktop example

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

To use your own account (or a self-hosted API), add env:

{
  "mcpServers": {
    "lease-qa": {
      "command": "uvx",
      "args": ["leaseclear-mcp"],
      "env": {
        "LEASECLEAR_API_KEY": "lc_…"
      }
    }
  }
}

Tool: lease_qa

Arguments question (string) — one neutral question about lease terms
Metadata document_ids (list of UUIDs, optional) — which leases to query; not an LLM-visible argument
Returns { "answer": "..." } — LeaseClear’s grounded answer (or that the lease is silent)

If the host passes document_ids, the question is scoped to those leases. If omitted, LeaseClear searches all leases on the authenticated account. The model only chooses the question; the host chooses whether to scope.

Errors

Failures surface as MCP tool errors, including:

  • invalid document_ids in metadata
  • empty question
  • LeaseClear auth or query failures
  • LeaseClear unreachable

Development

git clone https://github.com/amadeuserras/leaseclear-mcp.git
cd leaseclear-mcp
uv sync
cp .env.example .env
uv run leaseclear-mcp
uv run ruff check .
uv run pyright

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured