Developers

Run LocalICP from your code and AI agents.

Create a campaign with one request. Get leads back through the API, MCP or a signed webhook.

# create a campaign
POST /api/v1/campaigns
Authorization: Bearer gmk_…
{
"prompt": "25 HVAC contractors in Phoenix",
"target_count": 25
}
campaign.completedSample
Leads23
Sonoran Air & HeatPhoenix, AZ
Credits94
Three ways in

Build on LocalICP.

The same campaigns and credits, started from your code, your AI client or your server.

From estimate to export

Send your gmk_ API key as a bearer token; create one in Settings → Developers. The base URL and every route are in the docs.

Drafts and estimates are free. Running a campaign spends credits.

Weighing Google’s Places API instead? What it costs per business.

Read the API docs
Campaign flowREST
POST Estimate/campaigns/estimate
POST Create/campaigns
POST Run/campaigns/{id}/run
GET Results/campaigns/{id}/results
GET Export/campaigns/{id}/export

Google Maps MCP server

Your AI client can plan and run Google Maps campaigns and bulk runs, then search the leads and their reviews. It quotes the cost first and asks before it spends.

Connect a compatible MCP client to the server URL and authenticate with a LocalICP API key or OAuth.

Setup steps are available for Claude Code, Codex CLI and Gemini CLI.

See client setup
MCP tools18 tools
Campaigns
plan_campaignestimate_campaignrun_campaignget_campaignlist_campaignsget_campaign_leadscancel_campaignrename_campaign
Bulk runs
create_bulk_runrun_bulk_runget_bulk_runlist_bulk_runscancel_bulk_runrename_bulk_run
Leads and account
search_leadsget_leadget_lead_reviewsget_account
Serverhttps://mcp.localicp.com/mcp

Know when a run finishes

Receive completion and failure events for campaigns and bulk runs, plus enrichment completion. Verify each request with the HMAC signature and raw body.

Failed deliveries retry up to 8 times. Use the event ID to deduplicate deliveries.

See events and verification
Webhook deliverySigned
campaign.completed23 leads
Credits used94
Signature headerX-LocalICP-Signature-V1: t=…,v1=…
Plans and limits

API access starts on Growth.

Compare plans
FreeNo API

Campaigns and exports in the app

Growth5req/s a key

10 a workspace. REST API, MCP server and webhooks

Agency10req/s a key

25 a workspace. Everything in Growth, for more clients

Agents read the rules from /agents.md: get an estimate, then wait for a clear yes before spending credits.

Let your agent
run the campaign.

Connect Claude Code, Codex CLI or another MCP client. It estimates first, asks before it spends, then reads the leads.