Clay logo

LeadMagic has made more than one billion API calls with Clay and won The Unstoppable Wheel award.

Recap
LeadMagicDocs

Troubleshooting

Fix LeadMagic MCP connection problems, OAuth authentication errors, stale tool metadata, and client-specific issues in Cursor, Claude, and more.

Quick Diagnostics

Ask your AI assistant: "Check my LeadMagic credit balance."

If it returns your balance, your connection and authentication work. If not, use the sections below.

After a LeadMagic MCP update

LeadMagic ships improvements to the hosted MCP server at https://mcp.leadmagic.io/mcp. When we release fixes, you do not need to install a new npm package, bump a CLI version, or change your client config.

To pick up the latest server, reload the LeadMagic connector in your AI app's MCP settings (not a browser tab), then start a new chat: some clients cache tool lists and server instructions on the old conversation.

ClientWhat to do
CursorSettings → MCP → turn LeadMagic off and on, or restart Cursor after saving .cursor/mcp.json. Then open a new chat.
VS Code / CopilotCommand Palette → Developer: Reload Window, then start a new agent chat that uses LeadMagic.
Claude CodeRun /mcp, select LeadMagic and reconnect (or remove and re-add it); start a new conversation.
Claude.ai / Claude Desktop (connector)Customize → Connectors → LeadMagic → disconnect and reconnect; start a new chat.
ChatGPT (plugin)chatgpt.com/plugins → LeadMagic → reconnect; start a new chat.

If reload alone does not show updated tools, open the client's MCP / Connectors / Plugins settings → LeadMagic → sign in again. See Setup.

Ask: "Check my LeadMagic credit balance" (should work even at 0 credits). For bulk lists, prefer a staged file URL or the CSV upload widget: do not paste a giant CSV into a tool argument.

Confirm the hosted server version (support / operators):

You should see "ok": true and a current "version" (for example 2.12.21 or newer).

Connector listings in the Claude or ChatGPT app stores can lag behind the live server. Remote MCP at mcp.leadmagic.io updates as soon as we deploy; reloading the LeadMagic connector (then a new chat) is what matters for day-to-day use.

Connection Issues

Symptoms: AI assistant doesn't recognize LeadMagic tools, "no tools available," or server appears disconnected.

Solutions:

  1. Verify the URL in the setup guide. Claude apps and Claude Code use https://mcp.leadmagic.io/mcp/anthropic. Other supported clients use https://mcp.leadmagic.io/mcp for the full catalog or the URL for their focused connection.
  2. Restart your client: most MCP clients require a restart after config changes:
    • Cursor: Restart the application
    • VS Code: Run Developer: Reload Window
    • Claude Desktop: Fully quit and reopen
    • Devin Desktop (Windsurf): Restart the application
  3. Check JSON syntax: a missing comma or bracket in your config file will silently fail. Validate your JSON at jsonlint.com.
  4. Check the config file location: make sure you're editing the right file for your client (see setup guide).

Symptoms: Tools take a long time to respond or time out entirely.

Solutions:

  1. Check your internet connection: the MCP server runs at mcp.leadmagic.io and requires internet access.
  2. Try the health endpoint: run this in your terminal to verify the server is reachable:

You should see {"ok":true,"service":"lm-mcp",...}.

  1. Rate limits: the LeadMagic API has rate limits. If you're making many rapid requests, you may be temporarily throttled.

Tool input mistakes

Symptoms: Error like "Jurgen van Gael looks like a person's name, not a company" or empty job results when you meant a contact from people search.

Fix: Pass the employer in company_domain, such as "stripe.com" or the company you were researching. Do not pass a person's name or an MCP interface label such as "People Search".

Example: "Find open jobs at stripe.com"

For table-specific issues, including missing table tools, unavailable workspaces, stale row or column IDs, run approvals, and delayed enrichment results, see LeadMagic Tables workflows and the table tool reference.

Authentication Errors

Cause: Not signed in, expired OAuth session, or missing Authorization: Bearer on hosted MCP.

Solutions:

  1. Reconnect OAuth: MCP settings → LeadMagic → disconnect and sign in again (setup).
  2. Remove API key headers: hosted mcp.leadmagic.io does not use x-leadmagic-key; use URL-only config + OAuth.
  3. New chat: Claude.ai and ChatGPT connectors cache metadata per thread.
  4. Claude.ai "Couldn't reach server": see authentication and connection issues below.

The current OAuth grant is missing a required permission for LeadMagic MCP access or workspace selection. In your client's MCP or connector settings, disconnect LeadMagic and reconnect it. Complete browser sign-in, approve access, and choose your workspace if prompted.

In Claude, open Customize → Connectors → LeadMagic to reconnect. In Claude Code, use /mcp → LeadMagic. Start a new chat and ask, "Check my LeadMagic credit balance."

Cause: The workspace has no remaining credits. The tool reports that the workspace is out of credits.

Solutions:

  1. Check your balance at app.leadmagic.io.
  2. Purchase credits or set up auto top-up.
  3. See Credits & Pricing for plan options.

Client-Specific Issues

Cursor

Config not picked up:

  • Ensure the file is at .cursor/mcp.json (project) or ~/.cursor/mcp.json (global).
  • Restart Cursor after any config change.

Multiple configs:

  • Project-level config (.cursor/mcp.json) takes priority over global (~/.cursor/mcp.json).
  • If you have both, the project-level config wins.

Tool Errors

MCP tool errors are returned as isError: true with a message. Common causes:

  • Missing required parameters: check the tool reference for required fields.
  • Invalid parameter format: emails must be valid format, B2B profile URLs must be full HTTPS URLs (e.g., https://www.linkedin.com/in/username).
  • API rate limit: wait a moment and try again.

A not_found result means LeadMagic doesn't have data for that query. This is free: no credits are charged.

Tips to improve results:

  • Use domain instead of company_name for company lookups.
  • Use B2B profile URLs when available: they're the most reliable identifier.
  • For find_work_email, provide both first and last name plus the company domain.

FAQ

No. Hosted MCP does not use API keys. The server uses OAuth: you sign in once in your AI client, and each tool call uses a short-lived server credential. See authentication.

Yes: each person signs in with their own LeadMagic account via OAuth. Credits are consumed from the signed-in account, so team members on a shared organization account draw from the shared balance.

They use the same underlying API. The MCP server wraps each API endpoint as an MCP tool so AI assistants can call them directly. Credit costs are identical. If you need programmatic access from your own code, use the REST API directly.

No. The server uses Streamable HTTP transport only. There is no SSE endpoint. Some clients need the transport set explicitly: Cline needs "type": "streamableHttp", Gemini CLI needs httpUrl (not url), and VS Code needs "type": "http". See the setup guide or open the LeadMagic MCP setup guide.

Yes. Open LeadMagic in the ChatGPT Plugin Directory, click Install plugin, and sign in with LeadMagic. Start a new chat, select LeadMagic with @, and ask it to check your credit balance for free.

If Messages on iPhone shows Couldn't load connector, copy the directory link above and open it directly in Safari. The setup guide also covers optional custom MCP setup.

Still Need Help?