Back to Leads
Documentation

MCP Server Setup Guide

Connect the Leads Intelligence MCP server to your AI assistant for conversational lead management.

Leads Intelligence MCP Server

Connect to your AI assistant for conversational lead management, enrichment orchestration, and contractor matching.

Subscription Requirements

ClientFree AccountPro/MaxTeam/Enterprise
Claude.ai (Web)NoYesYes
Claude DesktopYes (local only)YesYes
Claude Code (CLI)YesYesYes
Cursor IDEYesYesN/A
Continue (VSCode)YesYesN/A

Claude.ai (Web Client)

Requirements: Claude Pro ($20/mo), Max ($100/mo), Team, or Enterprise subscription

Note: As of May 2025, MCP Integrations are available to Pro users. Previously this was Max-only.

Setup Steps

  1. Go to claude.ai and sign in
  2. Click your profile icon → Settings
  3. Navigate to Integrations (left sidebar)
  4. Click + Add Custom Integration
  5. Enter:
    • Name: Leads Intelligence
    • URL: Your hosted MCP server URL (see Hosting Options below)
  6. Click Save

Hosting Options for Web Client

The Claude.ai web client requires a publicly accessible URL for your MCP server:

OptionDifficultyCost
FastMCP CloudEasyFree tier available
Cloudflare TunnelMediumFree
Self-hosted with HTTPSAdvancedVaries

Claude Desktop App

Requirements: Free account works for local servers

macOS Setup

  1. Download Claude Desktop
  2. Open the config file:
    open ~/Library/Application\ Support/Claude/claude_desktop_config.json
  3. Add the MCP server configuration:
    {
      "mcpServers": {
        "leads": {
          "command": "uvx",
          "args": ["--from", "git+https://git.supported.systems/qube/leads.git", "leads-mcp"],
          "env": {
            "SKIP_AUTH": "true",
            "DATABASE_URL": "postgresql+asyncpg://user:pass@host:5432/leads_viewer"
          }
        }
      }
    }
  4. Restart Claude Desktop

Windows Setup

  1. Download Claude Desktop
  2. Open the config file at %APPDATA%\Claude\claude_desktop_config.json
  3. Add the same configuration as above
  4. Restart Claude Desktop

Claude Code (CLI)

Requirements: Works with any Anthropic API key

Quick Setup

# Add the MCP server
claude mcp add leads \
  -e SKIP_AUTH=true \
  -e "DATABASE_URL=postgresql+asyncpg://user:pass@localhost:5432/leads_viewer" \
  -- uvx --from /path/to/leads-viewer leads-mcp

# Or if installed globally
claude mcp add leads -- uvx leads-mcp

Verify Installation

# List MCP servers
claude mcp list

# Check server status (inside Claude Code)
/mcp

Cursor IDE

Requirements: Works with free Cursor account

Setup Steps

  1. Open Cursor Settings (Cmd+, or Ctrl+,)
  2. Search for “MCP” in settings
  3. Click Edit in settings.json
  4. Add:
    {
      "mcpServers": {
        "leads": {
          "command": "uvx",
          "args": ["--from", "/path/to/leads-viewer", "leads-mcp"],
          "env": {
            "SKIP_AUTH": "true",
            "DATABASE_URL": "postgresql+asyncpg://..."
          }
        }
      }
    }
  5. Restart Cursor

Continue (VSCode Extension)

Requirements: Works with free VSCode

Setup Steps

  1. Install the Continue extension
  2. Open Continue config: ~/.continue/config.json
  3. Add to the mcpServers section:
    {
      "mcpServers": [
        {
          "name": "leads",
          "command": "uvx",
          "args": ["--from", "/path/to/leads-viewer", "leads-mcp"],
          "env": {
            "SKIP_AUTH": "true",
            "DATABASE_URL": "postgresql+asyncpg://..."
          }
        }
      ]
    }
  4. Reload VSCode

Environment Variables

VariableRequiredDescription
DATABASE_URLYesPostgreSQL connection string (asyncpg format)
SKIP_AUTHNoSet to true to bypass Keycloak authentication
KEYCLOAK_TOKENNoKeycloak access token for authenticated access
LEADS_TOKENNoAlternative token variable name
TRACERFY_API_KEYNoFor skip trace enrichment features

Database URL Format

postgresql+asyncpg://username:password@hostname:port/database_name

Available Tools

Once connected, you’ll have access to:

Lead Management

Enrichment

Contractor Matching

Live Data Resources


Troubleshooting

”MCP server not found”

”Authentication failed”

”Connection refused”

Need help?

Contact your administrator or check the GitHub Issues for support.