# Leadfeeder — how to use (mcp.ai)

Connect your Leadfeeder account and use 6 tools for analytics straight from your AI agent. Connect with your own API key. Leadfeeder identifies companies visiting your website and converts them into high-value leads.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_leadfeeder?ms=1787295720000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `leadfeeder_get_account`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/leadfeeder`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/leadfeeder/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/leadfeeder/get/account` — Tool to retrieve the details of a specific account by ID. Use when you need to get information about a particular Leadfeeder account.
  - body: { id: string }
- `POST https://api.mcp.ai/api/leadfeeder/get/accounts` — Tool to retrieve a list of accounts the user has access to. Use when you need to discover all available Leadfeeder accounts after authentication.
- `POST https://api.mcp.ai/api/leadfeeder/get/all/visits` — Tool to retrieve all visits for a specific lead. Use when you need detailed visit history for a lead, optionally filtered by date range.
  - body: { lead_id: string, end_date?: string, page_size?: integer, account_id: string, start_date?: string }
- `POST https://api.mcp.ai/api/leadfeeder/get/company/info/by/ip` — Tool to retrieve company information based on an IP address. Use when you need to enrich an IP and obtain its company profile. Returns 404 if no match is found.
  - body: { ip: string }
- `POST https://api.mcp.ai/api/leadfeeder/get/custom/feeds` — Retrieve all custom feeds configured for a Leadfeeder account. Custom feeds are saved filter configurations that help organize and segment company visits. Returns an empty list for accounts without pr
  - body: { account_id: string }
- `POST https://api.mcp.ai/api/leadfeeder/get/tracking/script` — Tool to retrieve the website tracking script for a given account. Use when you need to obtain the JavaScript tracking code to be inserted on webpages for visitor tracking.
  - body: { account_id: integer }

## Example prompts
- "What can I do in Leadfeeder?"
- "Show me a summary of my Leadfeeder account"

## More
- Page: https://mcp.ai/leadfeeder
- Agent spec (llms.txt): https://mcp.ai/leadfeeder/llms.txt
- Postman collection: https://mcp.ai/leadfeeder/postman.json
