Integrations
Cursor integration
One-click install — prospect and export verified leads without leaving your editor.
Integrations
One-click install — prospect and export verified leads without leaving your editor.
Integrations
One-click install — prospect and export verified leads without leaving your editor.
LeadMarina ships a remote MCP server that plugs into Cursor, the AI code editor. Cursor's Agent calls external tools over the Model Context Protocol: you register a server once in mcp.json, and the Agent uses its tools automatically when a prompt calls for them. LeadMarina exposes its tools this way — among them search_leads, get_search_results, enrich_domains, query_leads, export_leads, list_searches, get_balance, list_views, list_integrations, and four automation tools (list_automations, create_automation, update_automation, delete_automation). If you freelance or run a dev shop and prospect local businesses for web-design work, this puts lead sourcing in the same window as the code.
Two options.
One-click. If you're signed in to LeadMarina, an Add to Cursor button appears just above these instructions. Click it — Cursor opens an install dialog with the server name and URL prefilled; confirm, and Cursor writes the config for you.
Manual (the fallback for everyone). Add an entry to .cursor/mcp.json (this project) or ~/.cursor/mcp.json (all projects). Inside the top-level mcpServers object, add a server named leadmarina with one field:
"url": "https://leadmarina.com/api/mcp"The server speaks streamable HTTP, one of Cursor's three supported MCP transports. On first use, Cursor prompts you to sign in — LeadMarina implements OAuth 2.1 with dynamic client registration, so there is no client ID to configure. Prefer keys? Every LeadMarina plan, including free, issues bearer API keys; pass yours as a header instead by adding a second field to the same leadmarina entry:
"headers": { "Authorization": "Bearer ${env:LEADMARINA_API_KEY}" }Cursor interpolates ${env:NAME}, so the key stays out of the file. Once connected, open Cursor Settings → MCP: leadmarina should list its tools under Available Tools.
In the Agent pane, describe the leads you want — for example: "Check my LeadMarina balance, then find roofing companies in Austin, Dallas, and Houston."
The Agent calls get_balance, then search_leads — one search_leads call takes a niche and a single city, within your plan's daily city budget (the web app's bulk search covers many cities in one run) — and pulls results with get_search_results. By default, Cursor asks you to approve each tool call and lets you expand the arguments first, so you see exactly what will run before a lead is spent.
Already have target websites instead of a niche? enrich_domains takes up to 10 domains, delivers 1 lead per domain through the full verification pipeline, and returns a search_id you poll with get_search_results.
Each delivered lead is one fully verified business, built from public business listings data:
Metering is flat: 1 lead = 1 delivered fully-verified business. The free plan includes 100 leads; paid plans include 15,000, 65,000 or 240,000 per month, and Unlimited has no monthly quota at all — up to 210,000 leads a week. query_leads — filtering leads already delivered — is free and never touches the meter, so the Agent can re-slice a list as often as you like ("only businesses with a safe email and a mobile line"). That is the prospecting loop for a dev shop: search a niche, have the Agent shortlist businesses worth pitching, then use the same session to draft outreach or scaffold a demo site for the prospect.
export_leads sends any search's results to Close, GoHighLevel, Google Sheets, or a CSV, Excel, or JSON file — the whole search, or only the shortlist, when the Agent passes the same search_id and filters it gave query_leads.
Close and GoHighLevel exports match on a stable Google business identifier and update records in place, and so do Google Sheets exports into a spreadsheet LeadMarina created earlier. Re-exporting a search — or letting a scheduled repeat run — refreshes existing records instead of duplicating them, and never touches your notes, activities or own custom fields, or the rows, columns and formatting you added to a sheet. In GoHighLevel, tags are additive-only. A CSV, Excel or JSON file is a new file each time. This matters in Cursor specifically because Agent sessions are cheap to re-run: trigger the same search as often as you want without doubling your CRM.
Any LeadMarina search can repeat once, daily, weekly, monthly, or yearly, with any export destination. Scheduling runs on LeadMarina's side — no Cursor session needs to be open. A common setup: schedule a weekly niche search that exports to Close, then work the fresh leads from Cursor each Monday. There is also a REST API on every plan (bearer keys) if you'd rather script against LeadMarina directly from your repo.
${env:LEADMARINA_API_KEY}, or remove the header and use the OAuth sign-in flow instead.get_balance, list_searches, query_leads — and keep approval on search_leads and export_leads, since delivered leads meter your balance.list_searches returns previous searches; get_search_results retrieves any of them again — retrieval doesn't re-spend leads.The Agent can also search many cities in one call: "estimate roofers across Texas, then run it with a 2,000-lead cap." Six more tools run Advanced search — many keywords across many places in the US — and search_leads, query_leads and export_leads take a few more inputs:
find_places — where a search can run: the US and its territories for now. With no arguments: the US and its territories (Puerto Rico, Guam …) with their codes. With country "US": its states and their codes. With q (at least 2 characters): US places whose name contains it — a territory's with its code as country — with their codes and states, up to 50.estimate_advanced_search — what an advanced search would find and how long it would take, without starting it or spending anything: expected_leads, the low–high range it lands in most of the time, and the time, waits for the daily city budget included.run_advanced_search — start one: up to 20 keywords (each up to 100 characters, or { keyword, exact } to keep only businesses whose main Google category is that one) across the whole US (everywhere), whole states (regions) or single places — up to 25,000 regions and places, and keywords × places at most 50,000 searches. It runs in the background in batches; each business is charged once (1 lead) however many keywords or places find it, and it stops at lead_cap (100 to 1,000,000) if one is set. Estimate first and confirm with the user: it spends leads.list_advanced_searches and get_advanced_search — status (running, paused, completed or stopped — paused by itself when a Free account runs out of leads, which don't renew: upgrade, then resume it), leads so far and searches done of the total; one search's progress by keyword, its top places and the newest batch running now. finish_reason says why one finished: all_searched, lead_limit (its lead cap reached) or stopped.control_advanced_search — pause, resume or stop one; a pause or stop takes effect after the batches running now.query_leads and export_leads take campaign_id to read or send one advanced search's leads.search_leads takes country ("US", the default, or a US territory's code: "PR", "GU", "VI", "AS" or "MP"), max_leads (100 to 1,000,000) and exact_category; run_advanced_search takes the same country.Limits: up to 25 advanced searches running or paused at once, 40 new ones (or 250,000 searches) a day, and 5 start attempts a minute (refused ones count too). They use up to 80% of your plan's daily city budget, leaving the rest for your own searches; their batches don't count toward your searches per day, but each queued or running batch takes one of your searches-in-flight slots. Automations search US places only. Advanced search covers US places only for now.