MCP server
The localweave MCP server
Let an AI assistant answer “where do we rank on the north side?” from your real data, without a password and, unless you allow it, without the power to change anything.
How a connection is authorised
The MCP server never sees a password and holds no long-lived credential. It accepts either an access token from signing in to the localweave-mcp app (OAuth code flow with PKCE) or a token minted for it by a first-party service such as the web app.
For every request it exchanges that token at the token service for a short-lived API token. The exchange checks the signature, the person’s membership in the org, the scope policy and the actor chain, and the API records that chain on every audit entry.
Read-only unless you ask
A sign-in gets read scopes only. Writes (starting a run, generating Next Actions, drafting a review reply) need a write scope requested explicitly, and never more than the person’s role allows. Tool lists follow scopes: a client sees only the tools its scopes allow.
Nothing deletes data, and a review reply is only ever a draft that a person sends from the app.
Safe with untrusted text
Location names, review text, AI answers, competitor names and cited URLs are written by people or third parties. The server wraps every such string as untrusted text, cuts strings at 2,000 characters, refuses results over 64 KB, and redacts anything shaped like a token or webhook secret.
Tools
- 01
locations_list
read:locations. Lists the locations (business sites) of the connected org, oldest first.
- 02
locations_get
read:locations. One location: address, categories, contact details, opening hours.
- 03
position_reports_list
read:reports. Position Tracker reports (tracked keywords per location) of one location.
- 04
position_runs_list
read:reports. Runs of one Position Tracker report with their status and summary metrics.
- 05
position_reports_run
write:reports. Queues a new run of a Position Tracker report.
- 06
area_grid_reports_list
read:reports. Area Grid reports (keyword ranked across a grid of map points) of one location.
- 07
area_grid_runs_list
read:reports. Runs of one Area Grid report: status, average rank, share of top-3 points.
- 08
area_grid_get
read:reports. One Area Grid run and one page of its grid cells (row, column, coordinates, rank).
- 09
area_grid_compare
read:reports. Compares an Area Grid run with an earlier run (default: the previous run).
- 10
ai_presence_reports_list
read:reports. AI Presence reports (prompts asked to AI assistants) of one location.
- 11
ai_presence_runs_list
read:reports. Runs of one AI Presence report with their visibility metrics.
- 12
ai_presence_summary
read:reports. One AI Presence run: visibility score, mention rate, share of voice, average position.
- 13
ai_presence_prompts
read:reports. The prompts an AI Presence report asks.
- 14
ai_presence_competitors
read:reports. Businesses mentioned in the answers of one AI Presence run, with position and sentiment.
- 15
ai_presence_sources
read:reports. Web sources cited by the answers of one AI Presence run.
- 16
reviews_list
read:locations. Reviews of one location (Reputation): rating, text, sentiment, response.
- 17
reviews_draft_reply
write:locations. Saves a draft reply to a review. Nothing is published.
- 18
insights_list
read:reports. Next Actions (prioritised recommendations) generated for one location.
- 19
insights_generate
write:reports. Queues Next Actions generation for one location.
- 20
quota_get
read:reports. This month’s quota per metered bucket: limit, used, remaining.