MCP server
Let an AI assistant plan, run and read campaigns over the Model Context Protocol. It uses the same API key, plan limits and credits as the REST API.
Connect
Server URL
https://mcp.localicp.com/mcp
Authentication
Send an API key as a bearer token. Clients that sign in instead use OAuth: dynamic client registration and the authorization code flow with PKCE (S256), with refresh-token rotation and revocation.
Authorization: Bearer YOUR_API_KEY
Plans
API keys are part of the Growth and Agency plans. Create a key in Settings
Add it to a CLI
One command each. Every one was run against the server and showed it connected. Replace YOUR_API_KEY with your key.
Claude Code
claude mcp add --transport http --scope user \ localicp https://mcp.localicp.com/mcp \ --header "Authorization: Bearer YOUR_API_KEY"
Codex CLI
export LOCALICP_API_KEY=YOUR_API_KEY codex mcp add localicp \ --url https://mcp.localicp.com/mcp \ --bearer-token-env-var LOCALICP_API_KEY
Gemini CLI
gemini mcp add --transport http --scope user \ localicp https://mcp.localicp.com/mcp \ --header "Authorization: Bearer YOUR_API_KEY"
Tools
18 tools in three groups. An assistant is told to show the estimate and ask before it runs anything that spends credits.
| Tool | What it does | Credits |
|---|---|---|
| Campaigns | ||
| plan_campaign | Turn a plain-language request into a campaign draft with its fields, qualifier, target and cost. | No credits |
| estimate_campaign | Quote a saved campaign, optionally at a new target count. | No credits |
| run_campaign | Start a drafted campaign. It runs in the background. | Spends credits |
| get_campaign | A campaign's status, live progress, lead count, usage and any shortfall. | |
| list_campaigns | The account's campaigns, newest first, with filters and paging. | |
| get_campaign_leads | One page of a campaign's results, with where each field came from. | |
| cancel_campaign | Stop a running campaign. Leads found so far are kept. | |
| rename_campaign | Give a campaign a new name. | |
| Bulk runs | ||
| create_bulk_run | Create a draft bulk run from a list of Google Maps searches, with its budget and estimate. | No credits |
| run_bulk_run | Start a draft bulk run. It runs in the background. | Spends credits |
| get_bulk_run | A bulk run's status, queries done, results so far and budget. | |
| list_bulk_runs | The account's bulk runs, newest first. | |
| cancel_bulk_run | Stop a running bulk run. Results found so far are kept. | |
| rename_bulk_run | Give a bulk run a new name; its leads are relabelled too. | |
| Leads and account | ||
| search_leads | Search every lead across campaigns and bulk runs, deduplicated, with filters and paging. | |
| get_lead | Everything about one lead: contacts, verified emails, decision makers, signals, pitches and photos. | |
| get_lead_reviews | Saved Google reviews for one lead, when the campaign collected them. | |
| get_account | The account's email, plan and credit balance. | |