Local Logic MCP Server
For use cases, coverage and pricing, see the MCP product overview.
Description
The Local Logic MCP Server lets AI assistants and agents query Local Logic's location intelligence directly — neighborhood scores, demographics, points of interest, schools, commute times, and more — using natural language, through the open Model Context Protocol (MCP).
Once connected, tools like ChatGPT, Claude, Cursor, or other MCP-compatible clients can answer questions like "Which neighborhoods in Montreal are most similar to Little Italy?" or "What drives property values in this ZIP code?" by calling Local Logic data in real time — without building a custom integration to Local Logic's APIs.
Key characteristics:
- Hosted (remote) server. There is nothing to install or run locally. Local Logic hosts and operates the server; you connect your MCP client to a URL.
- Read-only. All tools retrieve data. The server cannot create, modify, or delete anything in your account or in Local Logic systems.
- US and Canada coverage. Same geographic coverage as the underlying Local Logic APIs. Some tools are US-only (noted in the tool reference).
Contact support@locallogic.co to enable MCP on your account and receive your MCP key, an OAuth client ID and secret, or both.
Server details
| Server URL | https://api.locallogic.co/mcp |
| Transport | Streamable HTTP, operating statelessly — each request is self-contained, so no Mcp-Session-Id handshake is required. Responses are server-sent-event framed; send Accept: application/json, text/event-stream. The deprecated HTTP+SSE transport (2024-11-05) is not supported, and the server does not emit progress notifications. |
| Authentication | An MCP key in an Authorization: MCP <key> header (developer tools and your own backend), or your Local Logic OAuth client ID and secret (Claude.ai, Claude Desktop, ChatGPT, etc.). The MCP key is separate from your API key; the client ID and secret are the same ones you use with the REST API. See Authentication. |
| Access | Access to specific MCP tools and geographic areas is based on your underlying access to Local Logic's API products. The permissions required for each tool are outlined below. |
Quickstart
You will need either an MCP key — a credential dedicated to this server, separate from your API key — or your Local Logic OAuth client ID and secret, the same ones you use with the REST API. Chat apps take the client ID and secret directly; other surfaces exchange them for an access token.
See Authentication to request one.
- Claude Code
- Cursor
- VS Code
- Codex CLI
- Claude
- ChatGPT
- Other clients
claude mcp add local-logic --transport http https://api.locallogic.co/mcp \
--header "Authorization: MCP $LOCAL_LOGIC_MCP_KEY"
To share the server with a project's collaborators instead, add it to a .mcp.json file at the root of the repository:
{
"mcpServers": {
"local-logic": {
"type": "http",
"url": "https://api.locallogic.co/mcp",
"headers": {
"Authorization": "MCP ${LOCAL_LOGIC_MCP_KEY}"
}
}
}
}
Claude Code expands ${LOCAL_LOGIC_MCP_KEY} from the environment at load time, so the key itself stays out of the file and the file is safe to commit.
Start a session and run /mcp to confirm the server is connected and its tools are listed.
Add the following to ~/.cursor/mcp.json (or your project's .cursor/mcp.json):
{
"mcpServers": {
"local-logic": {
"url": "https://api.locallogic.co/mcp",
"headers": {
"Authorization": "MCP <your-mcp-key>"
}
}
}
}
Add the server to .vscode/mcp.json in your workspace, or to your user profile's mcp.json to make it available everywhere:
{
"servers": {
"local-logic": {
"type": "http",
"url": "https://api.locallogic.co/mcp",
"headers": {
"Authorization": "MCP <your-mcp-key>"
}
}
}
}
The top-level key is servers, not mcpServers, and "type": "http" is required. Copying a Cursor or Claude Code config verbatim will not work.
To keep the key out of the file, declare an input and reference it from the header. VS Code prompts for the value the first time the server starts:
{
"inputs": [
{
"type": "promptString",
"id": "local-logic-mcp-key",
"description": "Local Logic MCP key",
"password": true
}
],
"servers": {
"local-logic": {
"type": "http",
"url": "https://api.locallogic.co/mcp",
"headers": {
"Authorization": "MCP ${input:local-logic-mcp-key}"
}
}
}
}
You can also scaffold the file from the Command Palette (Cmd/Ctrl+Shift+P) with MCP: Add Server.
Add the server to ~/.codex/config.toml:
[mcp_servers.local_logic]
url = "https://api.locallogic.co/mcp"
http_headers = { "Authorization" = "MCP <your-mcp-key>" }
To keep the key out of the file, use env_http_headers instead — it maps a header name to the name of an environment variable Codex reads at startup:
[mcp_servers.local_logic]
url = "https://api.locallogic.co/mcp"
env_http_headers = { "Authorization" = "LOCAL_LOGIC_MCP_AUTH" }
Set LOCAL_LOGIC_MCP_AUTH to the full header value, including the scheme: MCP <your-mcp-key>.
Codex applies configured headers before it attempts any OAuth flow of its own, so no further authentication setup is needed. Run codex mcp list to confirm the server is registered.
Connectors you add on claude.ai also appear in Claude Desktop.
For Team and Enterprise plans an Owner or Primary Owner must add the connector.
- Go to Admin settings → Connectors.
- Select Add custom connector.
- Name the connection and enter the server URL:
https://api.locallogic.co/mcp - Under Authentication select Sign in now. Under OAuth client, select Use your own OAuth client and enter your Local Logic client ID + secret.
- Select Add.
Individual team members then go to Settings → Connectors, find the connector labelled Custom, and select Connect. They do not need the client ID or secret. It's also possible to enable auto-connection so team members can use the MCP server without manually connecting.
Free, Pro, and Max plans — follow the same steps, under Settings → Connectors instead of Admin settings.
- Turn on Developer mode under Settings → Security and login.
- Connectors live under Settings → Plugins; click + to add one.
- Enter the URL (
https://api.locallogic.co/mcp) and set authentication to OAuth. - Under Advanced OAuth settings → Registration method, switch from CIMD to User-Defined OAuth Client, then paste the ID and secret.
- Select Create, then Sign in.
Pro users can connect servers with read/fetch permissions through developer mode, while on Business, Enterprise, and Edu, only a workspace admin or owner can add one. Since all of the Local Logic MCP tools are read-only, Pro works.
ChatGPT defaults to CIMD, which Local Logic does not yet support. If you leave it as selected, sign-in fails.
Any MCP-compatible client that supports remote servers over Streamable HTTP can connect using the server URL and the Authorization header above.
If your client only supports the older stdio transport, you can bridge to the remote server with mcp-remote:
{
"mcpServers": {
"local-logic": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://api.locallogic.co/mcp",
"--header", "Authorization: MCP <your-mcp-key>"
]
}
}
}
Verify the connection
Ask your assistant something simple, for example:
"Using Local Logic, what are the quality-of-life scores for the Plateau-Mont-Royal in Montreal?"
You should see the client call search_geographies followed by get_scores.
Many clients select MCP tools on their own. Naming Local Logic in the prompt, as above, removes any ambiguity while you are verifying the connection.
Authentication and authorization
The Local Logic MCP Server accepts two kinds of credentials: a dedicated MCP key, issued only for this server, or your OAuth client ID and secret, the same credentials used by the REST API’s client-credentials flow.
You can request either credential from support@locallogic.co; we provision it against your account. Neither the MCP key nor the OAuth client ID and secret used to fetch an access token expire.
| Credential | Use it with | What gets sent |
|---|---|---|
| MCP key | Claude Code, Cursor, VS Code, Codex CLI, OpenAI Responses API, direct HTTP | Authorization: MCP <key> |
| OAuth client ID + secret | Claude, ChatGPT, other chat apps | The app runs the OAuth flow and sends a Bearer token for you |
| OAuth access token | Anthropic Messages API | authorization_token (sent as Bearer) |
MCP key
An MCP key is not interchangeable with your Local Logic API key: each is only accepted at the endpoint it was issued for.
Supply the key in an Authorization request header:
Authorization: MCP <your-mcp-key>
MCP, not V3 or BearerEnter the value exactly as shown, including the space after MCP. Your Local Logic API key (the V3 <key> scheme used by the REST API and SDKs) is not accepted here — sending V3 <your-api-key> will fail authentication. Bearer is only for OAuth access tokens, never for an MCP key.
OAuth for chat apps
Chat apps such as Claude.ai, Claude Desktop, and ChatGPT connect with your Local Logic OAuth client ID and secret, the same credentials you use with the REST API if your contract includes direct API access.
Enter both the client ID and the secret when you add the connector; leaving either blank makes the connection fail. The app handles sign-in and token refresh for you: access tokens last 24 hours and are renewed automatically.
If you don’t have them yet, request them from support@locallogic.co.
One credential for your whole organization
The MCP server uses organization-level authentication. An administrator configures the connector once with your organization's MCP key or OAuth credentials, and everyone on the team can use it: team members may be connected automatically or connect manually, but never see or handle the credentials.
Because a single credential represents the whole organization, usage is attributed at the organization level rather than per individual user.
Entering the MCP key in your client
This example shows how to pass the MCP key to authenticate via direct HTTP. For more specific examples, see the Quickstart section.
curl https://api.locallogic.co/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: MCP $LOCAL_LOGIC_MCP_KEY" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
OpenAI and Anthropic APIs
If you are building your own product on OpenAI or Anthropic models, you can have the model provider connect to our server on your behalf, rather than configuring an MCP client yourself. Each provider takes a different credential, for reasons outside our control.
OpenAI Responses API
The mcp tool accepts arbitrary headers, so pass your MCP key directly:
{
"type": "mcp",
"server_label": "local_logic",
"server_url": "https://api.locallogic.co/mcp",
"headers": { "Authorization": "MCP <your-mcp-key>" },
"require_approval": "never"
}
OpenAI discards header values after each request and retains only the scheme and domain of server_url, so include the headers block every time you configure the MCP tool rather than treating it as stored configuration.
The headers field is documented in the Responses API reference rather than the prose guide, which mentions only authorization.
Anthropic Messages API
The MCP connector exposes a single authorization_token field and no custom headers. Anthropic sends that value to our server as Authorization: Bearer <authorization_token>, adding the Bearer prefix for you.
This is the one surface where neither your Local Logic API key nor your MCP key works: Anthropic always sends Bearer, and neither the V3 nor the MCP scheme can be expressed here. Use an access token from the client-credentials flow instead — POST https://api.locallogic.co/oauth/token with the same client_id and client_secret that are entered into the chat apps, then pass the returned access_token as authorization_token.
A server definition must be paired with an mcp_toolset entry in tools that references it by name. Sending mcp_servers on its own is a validation error:
{
"mcp_servers": [
{
"type": "url",
"url": "https://api.locallogic.co/mcp",
"name": "local_logic",
"authorization_token": "<your-access-token>"
}
],
"tools": [
{ "type": "mcp_toolset", "mcp_server_name": "local_logic" }
]
}
Send this with the anthropic-beta: mcp-client-2025-11-20 header. Check Anthropic's documentation for the current beta identifier before you build — this feature is in beta and an earlier version, mcp-client-2025-04-04, is already deprecated.
Pass the token on its own — do not prepend Bearer yourself, or the header arrives double-prefixed and authorization fails. Access tokens expire, so fetch a fresh one rather than storing it as static configuration; see Getting Started for the request shape, lifetime, and how client_id / client_secret are provisioned.
Permissions model
The MCP server is read-only by design: no tool can write, update, or delete data. Access to individual tools mirrors your API entitlements. If your contract only allows you access to data for South Carolina, data in Tennessee will not be returned.
MCP access is additive to your existing entitlements.
Tool reference
32 tools return data today, grouped below by product area. Coverage is US and Canada.
Tool availability also varies by contract entitlement — see Permissions model.
Geography lookup and search
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
search_geographies | Search for geographies by name (city, neighborhood, region) and return matches with IDs. | Geographies |
get_geographies | Return the named geographies containing a coordinate, from smallest to largest. | Geographies |
get_geography | Return details for a single geography by its geog_id. | Geographies |
get_location | Return the country and state/province for a coordinate. | Geographies |
list_neighborhoods_in_geography | List all active neighborhoods within a city or metro. | Geographies |
Scores, profiles, and measures
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_scores | Quality-of-life scores (0–5 scale) for a location. | Location Scores |
get_neighborhood_profile | Narrative profile of a neighborhood. | Profiles |
get_measures | 50+ fine-grained proximity and access measures for a coordinate. | Location Snapshot |
get_value_drivers | Top features driving property values in a neighborhood. | Value Drivers |
rank_neighborhoods_by_score | Top neighborhoods in a city or metro, ranked by a Local Logic score. | Location Scores |
Similar neighborhoods and matching
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_similar_neighborhoods | Neighborhoods most similar to a given geography, within the same metro (or 100 km). | Similar Neighborhoods |
get_affordable_alternatives | Similar neighborhoods enriched with scores and a housing profile, filtered for affordability. | Similar Neighborhoods Location Scores Profiles Market Stats |
get_neighborhood_comparison | Side-by-side comparison of two neighborhoods (scores, profile, demographics, POIs). | Location Scores Profiles Demographics POIs |
get_similar_neighborhoods_in_geography | Most similar neighborhoods within a destination city or metro. | Similar Neighborhoods |
get_similar_neighborhoods_by_commute | Similar neighborhoods within a commute-time limit. | Similar Neighborhoods |
get_cross_city_alternatives | Neighborhoods in a destination city most similar to an origin neighborhood. | Similar Neighborhoods |
Points of interest
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_enhanced_pois | POIs near a coordinate or within a geography, sorted by relevance. | POIs |
get_neighborhood_pois | POIs of requested types near a neighborhood, with walkability context. | POIs Location Scores |
get_poi_categories | Full list of available POI category identifiers. | POIs |
get_poi_brands | Full list of available POI brand identifiers (2,000+). | POIs |
get_poi_tags | Full list of available POI tag identifiers. | POIs |
Demographics and schools
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_demographics | Demographic data for a neighborhood or geography. | Demographics |
get_schools | Nearby primary and high schools for a neighborhood. | Schools |
Housing and market data — US only
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_market_stats | Real estate market statistics for a US geography. | Market Stats |
get_market_stats_status | Availability and last-updated timestamp for market statistics data. | Market Stats |
get_typical_home_price | Typical price of a specific kind of home in a US geography. | Market Stats |
get_housing_stock | Count-based summary of housing inventory in a US geography. | Market Stats |
get_housing_pool_snapshot | 3-year snapshot of the housing pool in a US geography. | Market Stats |
find_neighborhoods_by_budget | Find and rank neighborhoods by home price for a property type and area. | Market Stats |
Mobility and commute
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_transit_options | Transit context for a location in a single call — mobility scores, the transport section of the neighborhood profile, and nearby transit POIs. | Location Scores Profiles POIs |
get_commute_time | Travel time and distance between two coordinates. | included |
get_commute_time_named | Travel time between two named places — no coordinates needed. | included |
Risk
| Tool | What it does | Local Logic Dataset(s) |
|---|---|---|
get_climate_risk Coming soon | Climate risk data for a property location. | Climate Risk |
Prompts
Alongside its tools, the server ships four MCP prompts — reusable, multi-step templates your client can offer as slash commands or presets. Each one chains several tools into a finished piece of analysis.
| Prompt | Arguments | What it produces |
|---|---|---|
neighborhood_report | lat, lng | Full neighborhood report: scores, profile, demographics, and measures. |
compare_neighborhoods | two coordinates | Structured comparison of two locations. |
family_friendly_analysis | lat, lng | How family-friendly an area is: schools, daycares, parks, and demographics. |
investment_potential | geog_id | Real estate investment brief: value drivers, market stats, and comparables. |
Prompt support varies by client — in Claude Code they appear under /, while some clients do not surface prompts at all.
Example prompts
MCP works best when users phrase goals, not API calls. These examples exercise common tool combinations:
- "What are the quality-of-life scores for Ansley Park in Atlanta, and what does the neighborhood feel like?" —
search_geographies→get_scores→get_neighborhood_profile - "I love Montreal's Little Italy but it's out of budget. What else in the city is similar and cheaper?" —
search_geographies→get_affordable_alternatives - "How's the housing market in this Denver ZIP code — is it moving fast, and at what prices?" —
search_geographies→get_market_stats - "What drives property values in this neighborhood, and how does it compare to the one next door?" —
get_value_drivers→get_neighborhood_comparison - "Which grocery stores and cafés are within walking distance of this listing?" —
get_enhanced_pois - "How well-connected is Park Slope for someone without a car?" —
get_transit_options
Usage and rate limits
MCP tool usage limits are currently tied to per-dataset & per-location credits. Retrieving demographics data and scores for three locations will use 6 credits.
Customers are limited to 500 API queries per second, which will also apply to queries from MCP tools.
Security and data handling
- Read-only scope. No tool exposed by this server can modify data. Even if an AI agent behaves unexpectedly, its impact is limited to reading data within your existing permissions.
- Your permissions apply. Tool responses are limited to the products and regions in your contract.
- Data residency. The Local Logic MCP Server is hosted in AWS
us-east-1. - Prompt injection awareness. When using this server alongside other MCP servers or web-browsing tools, we recommend enabling human confirmation of tool calls in your client. Content retrieved from other sources should not be able to silently trigger tool calls against your data.
- Query logging. We do not train models on your queries. We do log tool usage to improve our products, prioritize data updates in areas with more queries, and support billing.
- Protect your client secret. Treat it like a password and keep it out of shared chats, tickets, and front-end code. If it's exposed, contact support@locallogic.co to rotate it. Your client secret also authenticates the REST API, so rotating it affects your REST integrations and every chat connector that uses it.
Troubleshooting
Authentication fails (401).
Check the Authorization header. It must be either MCP <your-mcp-key> or Bearer <access-token> with a token retrieved with your client ID and secret. Confirm the header name is Authorization. A common cause is sending your API key (V3 <key>) instead, which isn't accepted here. Access tokens expire, so if a Bearer token worked before, fetch a new one.
OAuth connection issues.
- Connection fails right after adding: the ID or secret was left blank, or your chat app is still set to CIMD.
invalid_client: re-paste both values and check for stray whitespace.- Worked before, fails now: disconnect and reconnect.
- Sign-in fails with a
redirect_urierror: Your chat app sent a callback URL our authorization server doesn't recognize. This usually means the app isn't one we support yet, or it has changed its callback URL. Email support@locallogic.co with the app name and the full callback URL from the error message, and we'll add it.
The connector saves but no tools appear. Confirm MCP is enabled on your account — MCP access is granted per contract. Contact support@locallogic.co if you are unsure.
My client doesn't support remote MCP servers.
Use the mcp-remote bridge shown under Other clients in the Quickstart, or upgrade to a client version with native Streamable HTTP support.
A tool returns an authorization or "not entitled" error.
Your API contract may not include that product. Note that several tools combine multiple products in one call — get_transit_options, for example, needs Location Scores, Profiles, and POIs — so a missing entitlement on any one of them fails the whole call. The tool reference lists the full set each tool requires. Contact support@locallogic.co to discuss access.
A tool listed in these docs isn't in my client's tool list. Check whether it is marked Coming soon in the tool reference. Those tools are documented ahead of release and are not callable yet.
The model isn't calling Local Logic tools at all. Verify the connector is enabled for the current conversation, then name it explicitly in your prompt (e.g., "Using Local Logic, …"). Most clients let you inspect available tools to confirm the connection is live.
Frequently asked questions
What is MCP?
The Model Context Protocol is an open standard that lets AI applications securely connect to external tools and data sources. Local Logic's MCP server exposes our location intelligence as tools that any MCP-compatible AI client can call.
Is this the same data as the REST API?
Yes — the MCP server is a layer over the same underlying data products. Endpoints available via MCP are marked with the Available via MCP 🔌 badge on their documentation pages; those with MCP support still in development are marked Coming soon via MCP 🔌.
Can the MCP server change anything in my account?
No. Every tool is read-only.
Why does the MCP server use a different key than my Local Logic API key?
Your Local Logic API key is designed to be used from a browser (via our SDKs), where it's visible to anyone inspecting network traffic on the page. That's an acceptable exposure for the SDK's own scoped use, but not a credential that should also unlock a general-purpose MCP server. Issuing a separate MCP key — one you configure only in trusted clients like Claude Code, Cursor, or your own backend, never in front-end code — keeps the two exposure surfaces independent. Request your MCP key from support@locallogic.co. Your OAuth client ID and secret, by contrast, work for both the REST API and the MCP server. They’re server-side credentials that never appear in browser traffic, so the same concern doesn’t apply.
Should I use an MCP key or OAuth?
Use an OAuth client ID and secret for chat apps (Claude.ai, Claude Desktop, ChatGPT, etc.). Use an MCP key for developer tools (Claude Code, Cursor, VS Code, Codex CLI), the OpenAI Responses API, and your own backend.
Can I use this with ChatGPT or other OpenAI models?
Yes. The ChatGPT app connects with an OAuth client ID and secret; see the ChatGPT tab in the Quickstart. For your own products, the OpenAI Responses API and Codex CLI accept an MCP key.
Which regions are covered?
The US and Canada, matching the underlying APIs.
How is MCP usage billed?
MCP usage is determined by a limit of monthly credits, where each credit represents data retrieved for a specific location or geography.