LendMCP troubleshooting

What each error means and how to clear it.

Endpoint

https://mcp.lendapi.com/mcp

Quick index

SymptomSection
401 on every callAuthentication errors
403 on some callsAuthentication errors
406 Not AcceptableNot Acceptable
405 on a browser visitVisiting the endpoint in a browser
Derived variable fails on sandboxSandbox authoring
Connection died after weeks idleLong break
Client suddenly disconnectedRevoked key
Cannot find the key the connection createdWhere the dedicated key lives
Workflow will not publishWorkflow ground rules

Authentication errors

401 with a WWW-Authenticate challenge

The request carried no credential, or an OAuth access token has expired.

  • OAuth clients: this is normal and invisible — the challenge is exactly what tells the client
    to refresh its token or start the sign-in flow. If it surfaces to you, reconnect the connector.
  • Header clients: the Authorization header is missing or malformed. It must be
    Authorization: Bearer <token>.

{"error": "Invalid or expired API token", "status": 401}

LendAPI rejected the credential. Usual causes, in order of likelihood:

  1. The API key was switched off in Admin Portal → Settings → Developer Settings → API
    settings
    . Check the Status toggle on the key.
  2. The token is wrong — a truncated copy, a stale value, or whitespace pasted along with it.
  3. You are using a sandbox token (test_) against data that only exists in Live, or the reverse.
    The prefix decides the environment, and there is no cross-over.

{"error": "Token does not have access to this resource", "status": 403}

The credential is valid, but its tenant cannot reach that resource. Usually one of:

  • The record belongs to another tenant. Confirm you connected the tenant you meant to.
  • The record exists in the other environment. A Live connection cannot see sandbox applications
    and vice versa.
  • The tenant's plan does not cover the feature.

"Your plan does not include API access"

Seen on the consent screen. API access comes with an active paid plan, and the dedicated MCP key
cannot be created without one. Check the plan, then reconnect.

"No API token provided"

The client connected but sent no credential. For header clients, re-check the header
configuration; for OAuth clients, reconnect the connector.


Not Acceptable

406 Not Acceptable means your client sent an explicit Accept header that excludes what
LendMCP returns. Responses are plain application/json.

This does not happen with normal MCP clients, and it does not happen with a wildcard Accept: */* or a missing Accept header — both are handled. You will only see it if something in your
stack sets an Accept header to a specific non-JSON type, such as text/html. Fix the header, or
remove it.

Visiting the endpoint in a browser

Opening https://mcp.lendapi.com/mcp in a browser shows a short landing page, not an
application. That is expected — the endpoint is an MCP endpoint, not a website.

A non-browser GET gets 405 with Allow: POST, DELETE. Also expected: LendMCP runs stateless
and offers no server-to-client listening stream, so GET has nothing to deliver. All MCP traffic
is POST.

If you are testing connectivity by hand, POST an initialize request instead — see
other clients. There is
also an unauthenticated health check at /health that returns a small JSON status object.


Workflow authoring fails on a sandbox connection

Symptom. Reads work, and so do most writes, but variables_create_derived fails with
"Derived variables can only be created with a live mode key."

Cause. Derived variables are the one Live-only write: LendAPI recomputes derived levels on
the Live database. Simple variables, outcomes, decision trees, products and pages author in
either environment.

Fix. Create the derived variable in Live:

  • OAuth clients: a sign-in connection holds both keys; pass environment: "live" on that
    one call.
  • Header clients: a token reaches one environment, so use one that starts with live_.

If every authoring call fails instead, the connection has no key for the environment you asked
for (a header connection reaches exactly one); the error says which. Sign in through OAuth to get
Live and Sandbox under one consent.


The connection stopped working after a long break

Symptom. An OAuth connection that used to work now asks you to sign in again, or fails
authentication.

Cause. Refresh tokens last 90 days and slide forward on every use. A connection in regular
use never expires; one that sits completely idle for more than 90 days does.

Fix. Reconnect the connector and approve again. Nothing is lost, and the tenant's dedicated
MCP key is reused rather than replaced.

To avoid it on a connection you rarely use, run one prompt through it every couple of months, or
switch that client to a machine token, which does not expire on idleness.


A revoked key disconnected my client

Symptom. Every tool started returning Invalid or expired API token, with no change on the
client side.

Cause. The API key behind the connection was switched off. For OAuth connections that is the
dedicated LendAPI MCP (Live) · <email> or LendAPI MCP (Sandbox) · <email> key of the user who
approved the connection; for header connections it is
whichever key you configured. Revocation takes effect immediately for every client using that
key.

Fix.

  • If the revocation was intentional, the client is correctly cut off. Remove the connector.
  • If it was not, switch the key back on in Admin Portal → API settings. Turning it back on
    does not restore existing OAuth sessions — reconnect the client.
  • If a teammate revoked it, note that MCP connections use their own dedicated key, so an
    unrelated integration should never have caused this. Check who changed what before
    re-enabling.

Where the dedicated key lives

Admin Portal → Settings → Developer Settings → API settings, in the API Keys table.

EnvironmentKey name
LiveLendAPI MCP (Live) · <email>
SandboxLendAPI MCP (Sandbox) · <email>

One per user: it is created automatically the first time that user approves an OAuth connection
for that environment, and reused after that. From this table you can reveal the key, copy it, or
switch it off. Switching it off is the fastest way to disconnect every MCP client on that
environment at once.

If you do not see it, no one has completed an OAuth connection for that environment yet — or the
tenant's plan blocked its creation.


Other things that come up

The tool list is empty

The client connected but never authenticated. LendMCP requires a credential before it will list
tools. Complete the OAuth flow or add the Authorization header.

A tool I read about is missing

Confirm the connector is enabled for the current conversation, and that the tool is not toggled
off in the connector's tool list. Some clients need the connector re-enabled after an update.

Responses are cut off or the conversation slows down

Provider results, particularly credit reports, are large. Ask for summaries, use
app_get_data with a category filter, and pass include_tree=false to products_get when you
only need names and configuration.

"Could not reach the LendAPI backend"

A network-level failure between LendMCP and LendAPI. Retry; if it persists, contact support.

429 responses

You are hitting the rate limit. Back off and honor the Retry-After header. Ask for fewer, more
targeted calls rather than sweeping reads.

A run reports a decision-engine error

The workflow is fine — the decision engine could not be reached for that run. Retry the run.

"No New changes Detected" when submitting a version

Not an error. The draft is identical to the current version, so no new version was created.


Still stuck

Have this ready when you contact LendAPI support:

  • the client you are connecting from (claude.ai, Claude Desktop, Claude Code, ChatGPT, other),
  • the authentication method (OAuth or header token),
  • the environment (Live or Sandbox),
  • the tool name and the exact error text,
  • roughly when it happened.

Never send the token itself.

See also

Still stuck?

Email [email protected] with your tenant name, your client, the time of the problem, the tool
name and the error text. Never send API keys or tokens.


Did this page help you?