The LoneScale MCP server can be added to Claude as a custom connector. Connection uses OAuth 2.0 — Claude will pop up a LoneScale consent screen where you paste your API key, then Claude stores the access token and reuses it for every tool call.Documentation Index
Fetch the complete documentation index at: https://docs.lonescale.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A LoneScale API key — copy it from Dashboard → Integrations → Public API.
- A Claude account on a plan that supports custom connectors (currently Claude.ai web + Claude Desktop).
Get my API key
Add the connector
Open Claude settings
In Claude.ai → Settings → Connectors (or Claude Desktop → Settings → Connectors), click Add custom connector.
Authorize
Claude redirects you to the LoneScale consent screen. Paste your API key and click Authorize. You’ll be sent back to Claude, and the connector status flips to Connected.
Try it
Start a new chat and ask Claude something like “Search LoneScale for the company at stripe.com”. You should see Claude call
public-api-companies-search and return the result. Head to Examples for more.OAuth flow under the hood
For client implementers (or anyone curious), here’s what happens during the consent flow:- Claude discovers the server’s auth metadata via:
GET /.well-known/oauth-protected-resource(RFC 9728)GET /.well-known/oauth-authorization-server(RFC 8414)
- Claude dynamically registers itself via
POST /register(RFC 7591). It receives aclient_idscoped to itsredirect_uri(https://claude.com/api/mcp/auth_callback). - Claude opens
/authorize?client_id=…&redirect_uri=…&code_challenge=…&code_challenge_method=S256in your browser. You see the LoneScale consent screen and paste your API key. - LoneScale verifies the API key, issues a one-time
code, and redirects back to Claude with?code=…&state=…. - Claude exchanges the code at
POST /tokenwith the PKCEcode_verifier. The response contains anaccess_tokenthat Claude attaches asAuthorization: Bearer …to every subsequent/mcpcall.
Disconnect
To revoke access, open Settings → Connectors in Claude and click Disconnect on the LoneScale row. Your API key itself stays valid — rotate it in the LoneScale dashboard if you want to invalidate it everywhere.Other clients
The same server works with any MCP-aware client that supports Streamable HTTP + OAuth, including:- Cursor — add it under Settings → MCP → Add custom server.
- Custom agents built with the Anthropic SDK via the
mcp-remoteadapter.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
401 Unauthorized after authorizing | API key was rotated or revoked | Reconnect with a fresh key |
| Consent screen says “Unknown client_id” | Stale connector entry | Remove the connector and add it again |
| Tool calls hang on async jobs | Webhook delay | Claude will poll get-job-result; results usually arrive within 60s for enrichment, a few minutes for sourcing |
| Need help | — | Email happy@lonescale.com |

