DocsAI Assistant (MCP)Connect with Claude Code

Connect with Claude Code

Connect Lead Distro AI to Claude Code, the command-line tool for developers. Install Claude Code, run one command to add the connector, then approve it in your browser with one-click sign-in. Includes prerequisites.

Last updated:

This path is for people who are comfortable using a terminal. If that is not you, use the Claude.ai or desktop app guide instead. It does the same thing with no install and no terminal.

Claude Code is Anthropic's command-line tool. If you already use it, connecting Lead Distro AI takes one command and a browser approval.

Step 1 — Install Claude Code

A terminal is a text window where you type commands. Every computer already has one built in — no extra download needed.

On a Mac or Linux computer:

Open the Terminal app. On a Mac: press Command + Space, type Terminal, and press Enter.

curl -fsSL https://claude.ai/install.sh | bash

On a Windows computer:

Open PowerShell. Press the Windows key, type PowerShell, and press Enter. Note: Windows also needs WSL (Windows Subsystem for Linux) or Git for Windows installed. If you see errors after running the command, check Anthropic's Claude Code setup guide.

irm https://claude.ai/install.ps1 | iex

Prefer npm? If you already have Node.js 18 or later, you can also run: npm install -g @anthropic-ai/claude-code

After installing, check that it worked by running:

claude doctor

If Claude Code prompts you to install Git or Node.js and you would rather not, the native installer above avoids both. Or just use the Claude.ai or desktop app path, which needs nothing installed.

Step 2 — Connect Lead Distro AI

Run this command to add the connector. No API key needed — you sign in through your browser.

claude mcp add --transport http leaddistro https://mcp.leaddistro.ai/mcp

After running that command, open Claude Code and type /mcp. You will see a Lead Distro AI entry — click Authorize and sign in through your browser. If your account has more than one organization, pick which one the assistant should manage. You will not need to authorize again unless you disconnect.

Step 3 — Confirm it works

Restart Claude Code so the new tools load, then type this and press Enter:

List my Lead Distro campaigns and tell me what I can do.

Want to use an API key instead of browser sign-in (for example, on a server with no browser)? See Connect with an API key.

Frequently Asked Questions

What is a terminal?
A terminal (also called a command line or shell) is a text window built into every computer where you type short commands. On a Mac it is called Terminal. On Windows it is called PowerShell. You do not need to know how to code to use it — you are just pasting one command at a time.
How do I know if the install worked?
After you run the install command, type claude doctor and press Enter. If it prints a version number and a green checkmark, you are good. If you see an error, the most common fix is to close the terminal, open a new one, and try again.
Do I have to install Node.js?
Not if you use the native installer (the curl or PowerShell command above). Node.js 18 or later is only required if you choose the npm install method instead.
What does /mcp do?
Inside Claude Code, typing /mcp opens the connection manager. After you add Lead Distro AI, use it to run the Authorize step and to check the connection status.
I'm not a developer. Should I use this?
Probably not. The Claude.ai or desktop app path is easier and does the exact same thing with no install. Use that unless you specifically want Claude Code.

If you have any questions, send us an email at support@leaddistro.ai