Cette page n’est pas encore traduite. Vous lisez la version anglaise.

Use MapDove with AI agents

Give your own AI agents MapDove's places, markets and site analyses: the hosted MCP server, the Ask API, the REST API, self-hosted installs, the Claude Desktop extension and the Claude Code plugin. Packages for npm and PyPI are coming soon.

MapDove’s data and analyses are available to AI agents in several forms. All of them reach the same read-only tools; pick the one that fits where your agent runs. If you just want to chat with MapDove from Claude, ChatGPT, Cursor or VS Code, Connect MapDove to AI assistants is all you need.

You’re building Use Sign-in
Any MCP client or agent framework with remote MCP servers the hosted server https://api.mapdove.com/mcp your account (OAuth) or an API key
An app that wants answers, not tool calls the Ask API POST /api/v1/agent/ask API key (Pro, Business, Enterprise)
Your own tools for an agent the REST API over HTTP API key
A self-hosted MapDove install /mcp on your install’s API address that install’s account or API key
Claude Desktop, with an API key the MapDove extension (.mcpb) API key
Claude Code, with ready-made workflows the MapDove plugin your account (OAuth)

API keys are created under Settings → API keys (ms_live_…; API access is included on Pro, Business and Enterprise). Keep a key on your machine or server, never in a public web page.

The source of everything on this page that runs on your side (the extension, the plugin and the packages that are coming soon) is public and MIT-licensed at github.com/mapdove/developers, where issues are welcome.

What every agent should know

  • Visit figures are modeled estimates, built from open data, not measurements or counts of people.
  • The site check’s nearby_visits is the sum of modeled visits to the places near the site (one person visiting several places counts more than once): modeled visits to nearby places, not foot traffic or a head count.
  • The site check’s verdict and confidence come from a fixed rule. Agents should report them as returned.
  • MapDove has no zoning, ownership, parcel price or lease data. Those checks always come back not_covered; the tools tell the model never to estimate them.
  • Every tool is read-only: an agent can look things up and run analyses, never change your projects, alerts, members or billing.

The hosted MCP server

https://api.mapdove.com/mcp (Streamable HTTP) has 31 tools: the 29 of MapDove’s in-app assistant plus search and fetch. Agent frameworks with MCP support can connect to it directly, with OAuth (every plan) or with an API key header:

POST https://api.mapdove.com/mcp
Authorization: Bearer ms_live_…

Setup for each assistant, the OAuth details and the full tool list are on Connect MapDove to AI assistants.

The Ask API

POST https://api.mapdove.com/api/v1/agent/ask sends a plain-language question and answers with MapDove’s assistant: its text plus the tool results behind it. It takes an API key only (a browser session gets 403).

curl https://api.mapdove.com/api/v1/agent/ask \
  -H "Authorization: Bearer $MAPDOVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "question": "Which coffee brands lead Austin by modeled visits?", "city": "austin" }'

The body is { question, conversation_id?, city?, locale?, stream? } (question 1–4,000 characters). The answer:

{ "conversation_id": "uuid",
  "answer": "[Cafe A](place:7) leads the Austin market with ~41,000 modeled visits …",   // Markdown
  "stop_reason": "end_turn",                        // or "max_tokens"
  "tools": [ { "id": "call_1", "name": "rankings", "input": { … }, "ok": true, "result_summary": [ … ] } ],
  "sources": { "dataset": "open", "note": "Places © OpenStreetMap contributors (ODbL); …", "places": [7],
               "brands": ["starbucks"], "app_url": "https://app.mapdove.com" },
  "usage": { "messages_used": 1, "analyses_used": 0, "assistant_messages": { "used": 42, "limit": 300 } } }
  • Pass the conversation_id back to ask a follow-up in the same conversation (up to 40 questions); only the key that started a conversation can continue or delete it (DELETE /api/v1/agent/conversations/:id).
  • With "stream": true the answer comes as server-sent events: conversation, then tool_start and tool_result as each tool runs, then text and done. Prefer it for long questions: a turn can take up to 150 seconds.
  • Each ask uses one assistant message, plus one analysis per site analysis it runs. It doesn’t count toward your plan’s API calls. When no answer comes out, the message is given back.
  • Per-key rate limits: Pro 20 asks a minute, Business 60, Enterprise unlimited. The Ask API isn’t available on Free (402).
  • The answer is sanitized before it leaves MapDove: only links to MapDove are kept, and it is cut to 4,000 characters. Place and brand names are open map data: treat them as untrusted text in your own app.

The REST API

Any agent framework can call the REST API with an API key and plain HTTP: wrap the endpoints your agent needs (places, markets, rankings, site analyses) as tools. Every request counts toward the plan’s monthly API calls. The official client libraries for JavaScript and Python are coming soon to npm and PyPI; they can already be installed from the public source.

Self-hosted MapDove

A MapDove installation you run yourself serves the same MCP server at /mcp on its own API address (a local development install: http://localhost:8088/mcp). Connect your client to that address with an account or an API key of that installation. The Claude Desktop extension below can point at it too (its API URL setting).

Claude Desktop extension

The MapDove extension installs in one click and needs nothing else: download mapdove-0.3.0.mcpb (all versions: the releases page), open it, and Claude Desktop asks for your API key (stored as a secret). It runs a small process inside Claude Desktop that forwards every call to the hosted server, so it has the same 31 tools. Prefer OAuth sign-in on any plan and no install? Add https://api.mapdove.com/mcp as a custom connector instead.

Claude Code plugin

The plugin connects Claude Code to the hosted server and adds three skills: /mapdove:site-check, /mapdove:market-brief and /mapdove:compare-sites.

/plugin marketplace add mapdove/developers
/plugin install mapdove@mapdove

Then run /mcp, pick plugin:mapdove:mapdove and sign in to MapDove in the browser (every plan, Free included).

Coming soon

These are built and their source is in the public repository, but they aren’t published yet. This page will give the install commands once they are.

  • Local MCP package (@mapdove/mcp on npm): a small process on your computer that forwards every call to the hosted server with your API key, over stdio (for MCP clients that only start local servers) or localhost HTTP.
  • LangChain toolkits for Python and JavaScript, and a toolkit for the OpenAI Agents SDK: nine MapDove tools (search, rankings, market overview, trade area, Huff forecast, site check and more) ready to hand to an agent.
  • Client libraries @mapdove/sdk (npm) and mapdove (PyPI). Until then they install from source: see Client libraries.
  • MCP Registry listing, so clients that browse the official registry can find MapDove.

Until then, the hosted server, the Ask API and the REST API above give agents everything these packages do.

Usage and billing

  • With an API key, every tool call counts as one API call of your plan, like the REST API. Site analyses (site_check, huff_forecast, site_suitability, score_sites, catchment, workforce_area, area_analysis, tenant_gaps) also use one analysis of the monthly allowance.
  • Signed in with OAuth (hosted server, Claude Code plugin), calls count like using the app: browsing is free and site analyses use your workspace’s monthly analyses.
  • Your plan’s history window applies, and workspace owners can turn off third-party AI access under Settings → Organization → AI connectors.

Privacy

The extension and the plugin talk only to the MapDove API. They send your API key or sign-in and each tool call’s arguments (place names, slugs, coordinates, dates) to MapDove, store nothing and send no telemetry. Your prompts stay with your model provider. Ask API questions are answered by MapDove’s assistant and go to MapDove’s AI model provider like the in-app assistant’s; a conversation is deleted when you delete it or revoke its key. See the Privacy Policy.