MCP SERVER
Using MapLogics from Claude, ChatGPT and other AI apps
MapLogics runs a Model Context Protocol server, so an AI app can ask the same questions your code asks the API: is this address served, who owns it, and why. The answers come from your published territories and rules, not from a model, so the AI app gets the answer your website and your CRM get. You connect it by signing in to MapLogics; no key to copy.
- Server URL
https://api.maplogics.com/mcp- Sign-in
- OAuth 2.1 with dynamic client registration. Your AI app finds it from the URL and opens the MapLogics sign-in for you.
- Transport
- Streamable HTTP with JSON responses. Protocol versions 2025-06-18 and 2025-03-26. No session is kept, so there is nothing to reconnect.
Claude
In claude.ai, open Settings, then Connectors, and choose Add custom connector. Name it MapLogics, paste https://api.maplogics.com/mcp as the URL, and press Connect. Claude opens the MapLogics sign-in; approve it and the tools appear in your chats. Connectors you add on claude.ai are also available in Claude Desktop when you are signed in to the same account.
Claude Code
Add the server, then run /mcp inside Claude Code and choose MapLogics to sign in through your browser.
Terminalbash
claude mcp add --transport http maplogics https://api.maplogics.com/mcpChatGPT
In ChatGPT, turn on developer mode under Settings, Apps, Advanced settings, then create an app (ChatGPT may call it a connector) with https://api.maplogics.com/mcp as the server URL and OAuth as the authentication. ChatGPT opens the MapLogics sign-in; approve it and MapLogics is available in your chats. ChatGPT renames its menus from time to time, so if these names have moved, look for the place to add an MCP server by URL.
Other AI apps and editors
Any client that speaks Streamable HTTP and supports MCP sign-in works the same way: give it the URL, and it opens the MapLogics sign-in the first time it connects. In VS Code and Cursor that is a block like this one (the field holding the URL is called url orserverUrl depending on the client). In Copilot Studio, add a tool, choose Model Context Protocol, paste the URL and pick OAuth 2.0 with dynamic discovery.
MCP client configjson
{
"mcpServers": {
"maplogics": {
"type": "http",
"url": "https://api.maplogics.com/mcp"
}
}
}A machine-readable description of the server, with every tool and how to authenticate, is athttps://api.maplogics.com/.well-known/mcp/server-card.json.
What you approve when you connect
Connecting opens a MapLogics page in your browser. Sign in the way you normally do (password, emailed link, or your organization's single sign-on), pick the organization the AI app should work in, and choose what it may do.
- Read
- Check addresses, read territories, locations, usage and past decisions, and ask what-if questions. It cannot change anything.
- Read and draft changes
- Everything in Read, plus preparing changes for a person to review: territories and rules in the draft, and new locations. It can never publish. Only offered if your role lets you edit the draft yourself.
- It acts as you, within your role. If your role changes, the connection changes with it on the next request. A connection never has more access than you do.
- Every change has your name on it. Draft changes an AI app makes are recorded in the audit log under your name, with the app named beside it.
- Disconnect any time. In the MapLogics app, open Settings and find Connected AI clients. Disconnecting ends the connection at once; the AI app's next request is refused and it has to ask you to sign in again. To change from Read to drafts, or back, disconnect and connect again, choosing the other option.
- Owners and admins decide whether AI apps are allowed. Under Settings, AI clients, they can see every AI app members have connected, disconnect any of them, or turn off Allow AI clients to connect, which disconnects them all and stops new ones.
Tools
Eighteen tools. Only check_address and check_coordinate make decisions. The rest read your configuration, your usage and your decision log, try a change without saving it, or (with draft access) prepare a change for a person to publish. Each tool returns a short text answer for the model and the full structured result alongside it, described by an output schema. Lists are paged, and territory shapes are summarized rather than returned.
| Tool | Access needed | Counts as a decision | What it does |
|---|---|---|---|
check_address | Readkey: resolve | Yes | Whether an address is served, the territory it falls in and the location that handles it. Takes one line of text or separate fields; separate fields geocode more reliably. |
check_coordinate | Readkey: resolve | Yes | The same answer for a longitude and latitude. Nothing is geocoded, so the answer is exactly reproducible. |
explain_decision | Readkey: config:read | No | Why an earlier decision came out the way it did, in plain sentences, citing every rule that acted. Takes the request id the two checks return. |
list_territories | Readkey: config:read | No | Your territories, published or draft, with their layer, the location handling each, the owner, and the ZIP codes or areas each was built from. Paged. |
get_territory | Readkey: config:read | No | One territory in detail: location, owner, how it was built, the rules that name it, and a summary of its shape (envelope, vertex count, approximate area). |
list_locations | Readkey: config:read | No | Your locations with the services each performs, whether hours are set, and the published territories each one serves. Paged. |
check_zip_coverage | Readkey: config:read | No | Up to 25 ZIP codes: which are covered and by which territory, which are split, which are partly or wholly uncovered, and which are not known ZIP areas. Estimated from Census ZIP outlines. |
get_usage | Readkey: config:read | No | Decisions this month and the stored limits for your plan (territories, locations, keys and so on), with which are near or over. |
recent_decisions | Readkey: config:read | No | The latest real decisions with outcome, reason code, time, territory and location. Filter by outcome. Addresses are not stored, so none are shown. |
simulate_addresses | Readkey: config:read | No | Up to 10 addresses or points tried against the draft, the live configuration or a named version. Records no decision. Uses the daily simulation allowance. |
compare_versions | Readkey: config:read | No | Territories and rules added, removed or changed between two versions. Defaults to what publishing the draft would change. |
territory_at | Readkey: config:read | No | Which version was live at a past moment, who published it and why, and who had a given address or point then. |
preview_change | Readkey: config:read | No | A change nobody has made yet (move ZIP codes, disable a rule, change a rule priority, reassign or disable a territory), checked against your saved test cases and any points you give. Lists what would land differently. Saves nothing. |
create_territory_from_zips | Read and draft changeskey: config:write | No | A new territory in the draft from up to 40 ZIP codes, with an optional location and owner. Reports ZIP codes that could not be found and any overlap with other territories. |
create_territory_from_areas | Read and draft changeskey: config:write | No | The same from up to 12 counties or states, by name or FIPS code. An ambiguous name is reported, not guessed. |
assign_territory | Read and draft changeskey: config:write | No | Change or clear the location handling a territory in the draft. Sets the owner only on a territory that is not published yet, because an owner is not part of a draft. |
update_rule | Read and draft changeskey: config:write | No | Turn a rule in the draft on or off, change its priority, or replace its condition. Cannot create rules. |
add_locations | Read and draft changeskey: config:write | No | Up to 10 new locations with an address or a point and the services each offers. Adds only; never edits or archives one. |
An AI app only sees the tools its access allows: with Read, the five draft tools are not listed. If one is called anyway, the answer says draft access was not granted and how to reconnect with it.
Nothing an AI app does is live until a person publishes
No tool publishes, submits for review, schedules, rolls back, discards or deletes. The server refuses any request outside the list the tools need, so this does not depend on how a tool is written.
- Territories and rules go into the draft.
create_territory_from_zips,create_territory_from_areas,assign_territoryandupdate_rulechange the unpublished draft. If no draft is open, one is started from what is published. Each answer ends with a link where a person reviews and publishes it in the app, with your approval and reason settings applying as usual. - Locations are the exception, and still not live. Locations are shared by every version rather than kept in a draft, so
add_locationssaves them to your locations straight away. A new location takes no work until a published territory or rule sends work to it, so nothing changes for customers until someone publishes a draft that uses it. The tool only adds; it never edits or archives an existing location. - Someone else's edit is not overwritten. If a person saved the same territory a moment earlier, the change is refused and the AI app is told to read it again.
Things to ask
These use the Richmond, Virginia example network you get from Load the example on the Overview page in the app. With your own territories, swap in your own addresses, ZIP codes and location names.
- Do we serve 2 E Main St, Richmond, VA 23219? Which location takes it?
- Why did that address go to that location?
- Which of these ZIP codes do we cover: 23219, 23060, 23112, 23111, 20500?
- List our territories and the location that handles each one.
- Show me our recent decisions where nobody served the address.
- Compare the draft with what is published.
- What would change if Mechanicsville gave ZIP 23111 to Richmond Central? Do not change anything.
- Draft a new territory from ZIP codes 23233 and 23238 and assign it to Glen Allen. Do not publish it.
The last one needs Read and draft changes. Publish something first: until a configuration is published there is nothing to decide against, and every check says so.
Limits
- No monthly cap on any plan. Each
check_addressandcheck_coordinatecall is one decision, recorded in your decision log and counted in your usage exactly like a call to/v1/resolve. An AI app that checks the same address twice has made two decisions. No other tool makes a decision. - Per-second rate limits. Your plan's limit on decisions a second applies to AI apps as it does to the API. Each connected AI app also has its own limit of about five requests a second, with short bursts of up to 20, so one busy app cannot use up your organization's whole allowance. Going over returns a message saying how long to wait, not a charge.
- Simulations have a daily allowance.
simulate_addresses,territory_atwith a place, and the points you givepreview_changeare decided without being recorded. AI apps and API keys share 500 of these a day per organization, reset at midnight UTC, so simulation stays a way to check a configuration rather than a free way to decide addresses in bulk. Saved test cases do not count, and simulating in the app does not use it. Simulation needs a plan that includes it. - Sizes per call. Up to 25 ZIP codes in a coverage check, 10 addresses in a simulation, 40 ZIP codes or 12 counties or states in a new territory, and 10 new locations at a time. Lists come back in pages of up to 100 (50 for decisions).
- Staying signed in. The AI app renews its access by itself every hour. A connection that goes unused for 30 days asks you to sign in again.
Connecting with an API key instead
For your own servers, and for voice and chat platforms that can only send a fixed header (Retell and Synthflow, for example), send an API key in the Authorization header. It is the same key the API takes. Create one in the app under Settings, API keys, with only the scopes the agent needs: resolve for address checks, config:read for the read tools (which includes unpublished drafts and the decision log), and config:write only for an agent you want preparing draft changes. A key without a scope a tool needs gets an answer naming the scope. If you are setting up a phone or chat receptionist, theAI receptionist guide has a ready-made tool.
Claude Code with a keybash
claude mcp add --transport http maplogics https://api.maplogics.com/mcp \
--header "Authorization: Bearer ml_live_..."MCP client config with a keyjson
{
"mcpServers": {
"maplogics": {
"type": "http",
"url": "https://api.maplogics.com/mcp",
"headers": { "Authorization": "Bearer ml_live_..." }
}
}
}- Test keys work here, trial included. An
ml_test_key answers from your published configuration through the same code as a live key and is not counted in your usage. Start an agent on a test key. - Browsers. Server-side clients send no Origin header and are not affected. A request from a web page is accepted only when its origin is on your organization's allowed origins list, the same list the API checks, which is what stops a leaked live key being used from somebody else's page.
What goes over the wire
JSON-RPC over a POST, if you are writing a client or want to see a call by hand. A real client sends initialize first; the server keeps no session, so a single call works on its own too. A request with no credential gets a 401 whose WWW-Authenticateheader points at the sign-in metadata.
Requestbash
curl https://api.maplogics.com/mcp \
-H "Authorization: Bearer ml_test_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "check_address",
"arguments": { "address": "2 E Main St, Richmond, VA 23219" }
}
}'Responsejson
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [{
"type": "text",
"text": "Served. Territory: Richmond Central. Handled by: Richmond Central.\n..."
}],
"structuredContent": {
"request_id": "req_9039f987",
"status": "resolved",
"serviceable": true,
"territory": { "id": "trr_...", "name": "Richmond Central" },
"location": { "id": "loc_...", "name": "Richmond Central" },
"reason_code": "PRIMARY_ELIGIBLE_TERRITORY",
"message": "...",
"outputs": {},
"ruleset_version": "cfg_01M0X5..."
}
}
}A refusal from the resolver, such as a rate limit or an address no geocoder could find, comes back as a result with isError set and the reason in the text, so the agent can read it. Malformed arguments and unknown tools are JSON-RPC errors instead.
Getting help
Email hello@maplogics.com with the request id from the tool result. It finds the exact decision in your log. The reason codes in the API reference say what each outcome means and what to change. What an AI app can see and what we keep about the connection is in the privacy policy.