Skip to main content
The LeadMagic MCP server uses OAuth. Add 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 from mcp.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

1

Add the MCP server

Use https://mcp.leadmagic.io/mcp as the server URL in your AI client.
2

Authorize

Complete the LeadMagic sign-in flow when your AI client prompts you.
3

Test the connection

Ask your AI assistant to check your LeadMagic credits.

Discovery metadata

URL
https://mcp.leadmagic.io/.well-known/oauth-protected-resource
URL
https://mcp.leadmagic.io/.well-known/oauth-authorization-server
URL
https://mcp.leadmagic.io/mcp

Security Best Practices

OAuth client secrets are shown once when generated. If a secret is exposed, rotate it before using the integration.
Prefer clients that can complete OAuth for remote MCP servers. Avoid static token or header configurations unless your workspace explicitly requires them.
If an OAuth client or token is exposed, revoke or rotate it from your LeadMagic app settings.
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

Test your authentication by asking your AI assistant to “check my LeadMagic credits.” The check_credit_balance tool is free and confirms your connection is working.

Next Steps

Setup Guide

Configure your MCP client.

Credits & Pricing

Understand credit costs and manage your balance.