Developers

Build on LenDb.

A free read API and MCP server for US mortgage loan officers. Start without a key. When you need more, a free key raises your limits.

What you get

Limits

API (/api/v1)MCP (/mcp)
No key (per IP)60/min, 1,200/hour30/min, 600/hour
Free key120/min and 10,000 calls a day per key, API and MCP combined. Days reset at 00:00 UTC.

Over a limit you get HTTP 429 with Retry-After. Keyed responses carry X-LenDb-Key-Prefix, RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset for the minute window, and X-LenDb-Daily-Limit and X-LenDb-Daily-Remaining for the day. Up to 5 active keys per account. Need more? Tell us.

Quick start

Without a key:

curl 'https://lendb.ai/api/v1/match?q=VA%20loan%20in%20San%20Diego'

With a key, send it as a bearer token. On /api/v1, ?api_key= still works but is deprecated (keys in URLs end up in logs and browser history); the MCP server accepts the header only.

curl -i 'https://lendb.ai/api/v1/match?q=duplex%20in%20Austin,%20self-employed' \
  -H 'Authorization: Bearer ldb_live_...'

Connect the MCP server

Claude Code

claude mcp add --transport http lendb https://lendb.ai/mcp \
  --header "Authorization: Bearer ldb_live_..."

Claude (claude.ai and Claude Desktop)

Add LenDb from Claude's Connectors Directory in one click. Or add a custom connector in Settings, Connectors, with the URL https://lendb.ai/mcp. No OAuth or key needed: it runs at the anonymous limits. Keys go in the Authorization header only (clients that can set headers, like Claude Code or Cursor), never in the URL.

ChatGPT

Add LenDb from ChatGPT's plugin directory in one click, then type @ in a new chat to use it. Or, at chatgpt.com/plugins, choose Add custom MCP server, enter the same URL with no authentication, and create it as a plugin.

Cursor

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "lendb": {
      "url": "https://lendb.ai/mcp",
      "headers": { "Authorization": "Bearer ldb_live_..." }
    }
  }
}

Any other MCP client: {"lendb": {"url": "https://lendb.ai/mcp"}}.

Agents can ask for a key

An agent can request a key for its person, who approves it by email. Nobody else sees the key: it is shown once to the person who approves, and handed once to the agent that asked.

  1. POST /api/v1/keys/request with {"email": "...", "use_case": "...", "name": "optional"}. The answer has a request_id, a one-time claim_secret and a poll_url.
  2. We email a link to that address. The person reviews the request, accepts the terms and approves it.
  3. The agent polls GET /api/v1/keys/request/{request_id} with Authorization: Bearer <claim_secret> every 10 seconds or slower, and receives the key once.
curl -X POST https://lendb.ai/api/v1/keys/request \
  -H 'content-type: application/json' \
  -d '{"email":"you@example.com","use_case":"Find VA loan officers for my clients","name":"my-agent"}'

Requests are limited per email address and per network, and expire after 24 hours.

Change on 2026-12-15: claim secrets no longer accepted in URLs. When an agent polls /api/v1/keys/request/{request_id}, send the claim secret as Authorization: Bearer <claim_secret>, or POST it as {"claim_secret": "..."}. Until December 15, 2026 the ?claim_secret= query parameter still works and those responses carry a Deprecation header; after that date it is ignored and the request answers 404. Secrets in URLs can end up in server logs, browser history and Referer headers, so we are closing that path. API keys are not affected by this change.

The rules, briefly

More for machines: llms.txt, the guide for bots, and the OpenAPI document.