https://mcp.leadmagic.io/mcp in a compatible AI client, then sign in when the client opens the LeadMagic authorization flow.
How Authentication Works
Your AI client discovers the protected resource metadata frommcp.leadmagic.io, sends you through LeadMagic sign-in, and receives an access token for MCP tool calls.
OAuth sign-in
Your client sends you through a LeadMagic authorization flow.
Bearer tokens
MCP requests use OAuth bearer tokens rather than copied API keys.
Credit-Based
Each tool call deducts credits from your account balance.
Connect
Discovery metadata
https://mcp.leadmagic.io/.well-known/oauth-protected-resourcehttps://mcp.leadmagic.io/.well-known/oauth-authorization-serverhttps://mcp.leadmagic.io/mcpSecurity Best Practices
Do not paste OAuth secrets into docs or chat
Do not paste OAuth secrets into docs or chat
OAuth client secrets are shown once when generated. If a secret is exposed, rotate it before using the integration.
Use the OAuth flow when available
Use the OAuth flow when available
Prefer clients that can complete OAuth for remote MCP servers. Avoid static token or header configurations unless your workspace explicitly requires them.
Revoke access if compromised
Revoke access if compromised
If an OAuth client or token is exposed, revoke or rotate it from your LeadMagic app settings.
Monitor usage
Monitor usage
Check your credit consumption regularly. Use
check_credit_balance for balance checks, get_account_analytics for usage and rate-limit headroom, or visit your dashboard.Authentication Errors
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Missing or invalid bearer token | Reconnect the MCP server and complete OAuth sign-in |
403 Forbidden | No credits remaining | Purchase credits or check your balance |
invalid_token | Token expired or revoked | Reauthorize the MCP connection |
Next Steps
Setup Guide
Configure your MCP client.
Credits & Pricing
Understand credit costs and manage your balance.