Authorization: Bearer <key>. A key in the URL (?user_api_key=) or in an X-API-Key header does not work on /mcp. See MCP Server for details.
In the examples below, SMARTLEAD_API_KEY is an environment variable holding your Smartlead API key. Set it in your shell (for example export SMARTLEAD_API_KEY=...) rather than pasting the key into a config file.
Claude (claude.ai and Claude Desktop)
Add Smartlead as a custom connector. Custom connectors work in claude.ai, Claude Desktop and Cowork, on Free, Pro, Max, Ultra, Team and Enterprise plans (Free plans are limited to one custom connector). Pro and Max plans- Go to Customize > Connectors.
- Click + Add, then Add custom connector.
- Name it
Smartleadand enter the URLhttps://mcp.smartlead.ai/mcp. Click Continue. - Under Authentication, choose a sign-in option (not “No sign in”). If Claude asks how to identify itself (OAuth client), choose Register automatically.
- Sign in to Smartlead and approve the connection.
Claude Code
With your API key in a header:$SMARTLEAD_API_KEY when you run the command, so the key is saved in your Claude Code configuration.
Or without a key, using OAuth: add the server, then sign in from the /mcp menu inside Claude Code (or run claude mcp login smartlead in your shell).
Cursor
Add this to~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Cursor reads ${env:SMARTLEAD_API_KEY} from your environment, so the key itself is not stored in the file.
mcp.json
OpenAI Codex (CLI and IDE extension)
The Codex CLI, the IDE extension and the ChatGPT desktop app share this configuration. Add this to~/.codex/config.toml (or a trusted project’s .codex/config.toml). Codex sends the value of the named environment variable as a bearer token.
config.toml
bearer_token_env_var and run codex mcp login smartlead.
Source: Codex docs: Model Context Protocol.
ChatGPT
Add Smartlead as a custom MCP server on ChatGPT on the web. Workspace admins may need to allow custom MCP servers first.- Go to ChatGPT Plugins.
- Select the plus button, then Add custom MCP server.
- Enter the name
Smartleadand, under Connection, the server URLhttps://mcp.smartlead.ai/mcp. - Choose OAuth for authentication.
- Review the risk warning, select I understand and want to continue, then Create as a plugin.
- Install the plugin, and sign in to Smartlead and approve the connection when asked. In a conversation, type
@and pick Smartlead.
Grok (xAI API)
The xAI Responses API can call remote MCP servers itself. Pass Smartlead as anmcp tool with your Smartlead API key in an Authorization header:
allowed_tools is optional. Without it, all 185 tools are loaded into the model’s context. Limiting the list keeps requests smaller and lets you allow only read-only tools. In the xAI Python SDK, the same fields are allowed_tool_names and extra_headers.
Source: xAI docs: Remote MCP Tools.
Other MCP clients
Any client that supports Streamable HTTP and either OAuth 2.1 (with dynamic client registration) or a customAuthorization header can connect with the URL above. Clients that only support the older HTTP+SSE transport can use the legacy SSE endpoint, but it puts your key in the URL.
Check that it works
Ask your app: “List my Smartlead campaigns.” It should callget_campaigns and show your campaigns. If you get an authentication error:
- 401 on
/mcp: the key is missing, wrong, or not sent asAuthorization: Bearer <key>. - OAuth sign-in loops: remove the connector and add it again, then approve the connection in Smartlead.
- No tools listed: make sure the URL ends in
/mcp, not/sse.
