TURFGAPOWN YOUR TURF. FIND THE GAP.
MCP docs

TurfGap MCP server reference

Everything an AI app or a developer needs to use the TurfGap MCP server: the address, how to sign in, every tool and its parameters, what costs credit, the limits and the errors. Also as plain Markdown for AI tools.

20

tools, from the live server

17

read data and cost no credit

5

protocol versions spoken

7 days

report links stay open

Version 0.4.0Updated November 30, 2026

The short version.

  1. Connect to https://turfgap.com/mcp with plain POST requests.
  2. Chat apps sign in with OAuth. Coding tools send your key as Authorization: Bearer.
  3. 17 of the 20 tools only read, for free. Three spend scan credit.
  4. Tools that spend credit show the cost first and run only with confirm: true.
  5. Report links in answers open without a sign-in for 7 days.
Connection detailsFrom the server card
Endpoint
https://turfgap.com/mcp
Transport
streamable-http
Server
turfgap 0.4.0
Newest protocol
2026-07-28
Sign-in
OAuth 2.1 or Bearer key
Tools
20

Open the server card

01Overview

One address for every AI app.

TurfGap is an MCP server. Any AI app or tool that speaks MCP connects to one address and gets the same 20 tools. It covers businesses and markets in the United States only.

ItemValue
Endpointhttps://turfgap.com/mcp
TransportStreamable HTTP (streamable-http): plain POST requests with a JSON-RPC 2.0 body. Answers come back as JSON. Other methods get 405.
Protocol versions2026-07-28 (stateless), 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05
Serverturfgap (TurfGap), version 0.4.0
Sign-inOAuth 2.1 sign-in from the app, or a personal key sent as Authorization: Bearer. See Authentication.
Server card/.well-known/mcp/server-card.json
This page as Markdown/docs/mcp.md

Two ways to talk to it

  • Older protocol (2024-11-05 to 2025-11-25). Open with initialize, then call tools/list and tools/call. ping works too. A notification gets an empty 202 answer. Up to 20 messages can go in one batch.
  • Stateless protocol (2026-07-28). No initialize. Every request carries _meta["io.modelcontextprotocol/protocolVersion"] and _meta["io.modelcontextprotocol/clientCapabilities"] (which may be {}), plus the headers MCP-Protocol-Version, Mcp-Method and, for tools/call, Mcp-Name. The methods are server/discover, tools/list and tools/call.
  • There is no session. Each request stands on its own, and the tool list is the same for every account, so an app may keep it for an hour.

What the server tells your AI

Every connection starts with these instructions from the server, word for word:

TurfGap maps Google Maps rankings onto real population data and checks how competitive a local market is. Start with list_scans, or get_balance to see which account you are connected to. get_scan gives the headline numbers; get_cells and get_rankings return the data cell by cell in small pages (follow next_offset); export_data returns the same data as CSV; get_report returns the finished report; compare_scans shows change between two scans. get_trend shows the whole history of repeat scans, and schedule_scan repeats a scan automatically (each run spends scan credit, so confirm with the user first). Reading tools are free. find_business costs a fraction of a cent. run_scan and rescan spend scan credit: always show the user the cost and get a yes before calling them with confirm: true, and never pass a daily limit by splitting a scan. Report links in the answers open without a sign-in for 7 days; give them to the user rather than fetching them. "Reach" means the share of residents living where the business ranks in the top 3. United States only.

02Authentication

Sign in from the app, or send a key.

Every request needs a key or a token. Chat apps sign you in and never see a key. Coding tools and scripts send your personal key.

Sign in from an AI app (OAuth)

  • The app sends you to TurfGap. You sign in with the code we email you and press Allow.
  • The app gets its own token for your account. It never sees a key or your sign-in code.
  • A token lasts 1 hour and the app renews it on its own. A connection that goes unused for 90 days ends, and you connect again.
  • For developers: OAuth 2.1 with PKCE (S256), scope turfgap. Discovery is at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. An app registers at /oauth/register or identifies itself with a client ID metadata document. A request with no working key or token gets 401 and a WWW-Authenticate header that points to the sign-in.

Use your personal key

  • Find it on your account page under MCP connection, with Show key and Copy key. Keys start with tg_.
  • Send it with every request: Authorization: Bearer YOUR_KEY.
  • Treat it like a password. Make a new key stops the old one at once, for every tool that had it.

See and disconnect apps

  • Your account page lists every app that signed in and every tool that used your key, with the date each was last used. A tool that uses your key is recognized by the name it sends.
  • Disconnect ends an app's access at once. A disconnected key tool is refused until you press Allow again.
  • A browser sign-in does not count at /mcp. Every request needs the key or a token.

What an app can and cannot do

A connected app can:

  • See your saved scans, rankings and reports.
  • Look up businesses and area profiles.
  • Start scans with your scan credits, after showing you the cost.
  • Give you report links that work for 7 days.

It cannot:

  • See your payment details.
  • Change your email or sign in as you on the website.
  • See anyone else's scans.

03Connect your app

Paste the address, then sign in.

The address is the same everywhere: https://turfgap.com/mcp. The MCP connection page has the full steps for each app.

AppSteps
ClaudeOpen Settings, then Connectors, and add a custom connector. Paste the address, press Connect, sign in to TurfGap and press Allow.
ChatGPTOn the web, open chatgpt.com/plugins, press the plus button and choose "Add custom MCP server". Paste the address as the Server URL, choose OAuth, sign in and press Allow. As of November 2026 this needs a Pro, Business, Enterprise or Edu plan, and ChatGPT lets only Business and higher start scans.
GrokOpen grok.com/connectors, press "New Connector" and choose "Custom". Paste the address, sign in and press Allow. On a Grok Business team, an admin adds the connector first.
Coding tools and scriptsCopy the key from your account page and send it as Authorization: Bearer YOUR_KEY. This works for Claude Code, Cursor, VS Code, the Grok API and your own scripts.

In Claude Code, one command does it:

claude mcp add --transport http turfgap https://turfgap.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

04Tools reference

20 tools. Reading is free.

17 tools only read and cost no credit. Three spend scan credit and always show the cost first: run_scan, rescan and schedule_scan. This list is built from the server's own tool definitions, so it matches what tools/list returns.

ToolWhat it doesSpends credit
list_scansList saved scansNo
get_scanGet scan summaryNo
get_competitorsGet competitorsNo
compare_scansCompare two scansNo
get_trendGet trend across repeat scansNo
get_cellsGet map cellsNo
get_rankingsGet raw rankingsNo
get_reportGet the reportNo
export_dataExport scan dataNo
get_market_checkGet market checkNo
get_area_profileGet area profileNo
list_industriesList industriesNo
find_businessFind a businessNo
estimate_scanEstimate a scanNo
run_scanRun a scanYes
rescanRun a scan againYes
get_scan_statusGet scan statusNo
schedule_scanRepeat a scan on a scheduleYes
list_schedulesList scheduled scansNo
get_balanceGet balance and limitsNo

Reading scans

Find a scan, read its headline numbers, and follow a business over time.

list_scans

Read-only. No credit

List saved scans

Lists saved TurfGap scans, newest first, with id, business or area, keyword, radius and date. Start here to find a scan_id. Use search to narrow by business, area or keyword.

ParameterTypeRequiredDescriptionValues
searchstringNoOptional: only scans whose business, area or keyword contains this text.
typestringNoOptional: only business scans or only market scans.business, market
limitnumberNoDefault 25, max 100.Default 25
offsetnumberNoDefault 0.Default 0

get_scan

Read-only. No credit

Get scan summary

Headline results of one scan: reach (share of residents who see the business in Google Maps top 3), average rank, coverage, the top competitors and links to the report. For a market scan the figures describe the market leader.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.

get_competitors

Read-only. No credit

Get competitors

Every business seen in a scan, ranked by reach, with rank, rating, reviews and address. Use limit to shorten the list.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
limitnumberNoDefault 20, max 200.Default 20

compare_scans

Read-only. No credit

Compare two scans

What changed between two scans of the same business and keyword: reach, average rank and top-3 cells before and after, which cells improved or dropped, and how each competitor moved. Put the older scan first.

ParameterTypeRequiredDescriptionValues
older_scan_idstringYesThe earlier scan.
newer_scan_idstringYesThe later scan.

get_trend

Read-only. No credit

Get trend across repeat scans

How a business moved over time: reach, top-3 cells and average rank for every finished scan with the same business, keyword, radius and cell size as the scan given, oldest first, plus the change from first to last and whether the scan is set to repeat.

ParameterTypeRequiredDescriptionValues
scan_idstringYesAny scan in the series.

Scan data and exports

The data behind a scan, cell by cell, in small pages or as CSV text.

get_cells

Read-only. No credit

Get map cells

Cell-by-cell data for a scan: residents, homes, daytime workers, income, home value, age of homes, owners vs renters, households with children, seniors, single-family share, the rank of the scanned business and who ranks first. Returned as a table: "columns" names the fields and each entry of "rows" is one cell in that order. Sorted by residents, most first; follow next_offset for more. cell_id matches get_rankings and export_data. Use for questions about specific neighborhoods.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
offsetnumberNoFirst cell to return. Default 0.Default 0
limitnumberNoCells per page. Default 40, max 150.Default 40
place_namesbooleanNoLook up the town or neighborhood name of each cell on this page (slower; at most 30 cells a page). Default false.Default false
business_namestringNoOptional: rank this business instead of the scanned one (exact name from get_competitors).

get_rankings

Read-only. No credit

Get raw rankings

The raw data points of a scan: for each cell, the businesses Google Maps returned in rank order, with place id, category, rating and reviews, plus the cell's residents and income. The results of each cell are rows in the order given by result_columns. Paged by cell: follow next_offset to walk through all cells. Use this to build your own analysis or data set. For the whole data set as one file, give the user the rankings_csv link from get_scan.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
offsetnumberNoFirst cell to return. Default 0.Default 0
limitnumberNoCells per page. Default 10, max 40.Default 10
depthnumberNoBusinesses per cell. Default 10, max 20.Default 10
all_cell_factsbooleanNoInclude every neighborhood fact for each cell (homes, home value, renters, children, seniors, workers), not just residents and income. Default false.Default false

get_report

Read-only. No credit

Get the report

The full structured report for a scan as CSV text with labeled sections (summary, headline, competitors, market check, easier areas, and optionally every cell), plus links to the PDF and the web report. Use it to write a client update or build your own report.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
include_cellsbooleanNoAlso include the per-cell table. Default false.Default false

export_data

Read-only. No credit

Export scan data

A data file from a scan as CSV text. kind "cells" is one row per cell (residents, income, rank, top three); "rankings" is one row per business per cell (the complete data set); "underserved" is the per-cell market check numbers. Paged by row: follow next_offset until it is null. For the complete rankings file in one piece, give the user the rankings_csv link from get_scan instead.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
kindstringYesWhich data file to return.cells, rankings, underserved
offsetnumberNoFirst data row. Default 0.Default 0
limitnumberNoRows per page. Default 60, max 250.Default 60

Market and area

How competitive a market is, and who lives in an area.

get_market_check

Read-only. No credit

Get market check

How competitive the market in a scan is: a Low to Very high verdict with its score, the facts behind it, the strongest competitors, the most underserved areas (most residents per nearby business), the same ranked by household income (residents times their income, per nearby business) with households earning $100k+, and the income brackets of the area. travel_miles is how far customers typically travel for this kind of business.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.
travel_milesnumberNoDefault 3.2, 3, 5, 8, 10, 15, 25. Default 3

get_area_profile

Read-only. No credit

Get area profile

Free profile of the area around a city within a radius: residents, homes, daytime workers, household income, home value, age of homes, owners vs renters, households with children, residents 65 and over, and single-family share. Does not use scan credit.

ParameterTypeRequiredDescriptionValues
citystringYes"City, ST"
radius_milesnumberNoDefault 5, max 50.Default 5

list_industries

Read-only. No credit

List industries

The industries TurfGap has ready for market scans. Optional search narrows the list.

ParameterTypeRequiredDescriptionValues
searchstringNoOptional: only items whose name contains this text.

Running and repeating scans

Find a business, see the cost, run or repeat a scan, and follow its progress. Tools that spend credit use the confirm step.

find_business

Read-only. No credit

Find a business

Looks up a business on Google Maps by name and city and returns candidates with place_id and coordinates, needed for a business scan. Costs a fraction of a cent per call.

ParameterTypeRequiredDescriptionValues
name_and_citystringYesFor example "Joe's Plumbing Vancouver WA".

estimate_scan

Read-only. No credit

Estimate a scan

Says how many cells a scan would cover and what it would cost, without running it. Give "city" plus "industry" for a market scan, or "business" plus "keyword" for a business scan.

ParameterTypeRequiredDescriptionValues
citystringNoFor a market scan: the city as "City, ST", for example "Vancouver, WA".
industrystringNoFor a market scan: the kind of business, for example "dentist". See list_industries.
businessobjectNoFor a business scan: one result from find_business. Fields: place_id (string), name (string), address (string), lat (number), lng (number).
keywordstringNoThe search phrase to rank for. Required for a business scan.
radius_milesnumberNoRadius of the area, 2 to 50. Default 5.Default 5
detailstringNoCell size. Default standard. Wide areas are made coarser automatically.very_coarse, coarse, standard, fine. Default standard
speedstringNostandard takes about 5 minutes and is cheapest; instant uses 4 scan credits per cell instead of 1.standard, instant

run_scan

Spends scan credit

Run a scan

Starts a scan. THIS SPENDS DATA CREDIT. Call once without confirm to see the cost, tell the user the cost, and only call again with confirm: true after they agree. Returns a scan_id; poll get_scan_status until it is done (standard speed takes about 5 minutes).

ParameterTypeRequiredDescriptionValues
citystringNoFor a market scan: the city as "City, ST", for example "Vancouver, WA".
industrystringNoFor a market scan: the kind of business, for example "dentist". See list_industries.
businessobjectNoFor a business scan: one result from find_business. Fields: place_id (string), name (string), address (string), lat (number), lng (number).
keywordstringNoThe search phrase to rank for. Required for a business scan.
radius_milesnumberNoRadius of the area, 2 to 50. Default 5.Default 5
detailstringNoCell size. Default standard. Wide areas are made coarser automatically.very_coarse, coarse, standard, fine. Default standard
speedstringNostandard takes about 5 minutes and is cheapest; instant uses 4 scan credits per cell instead of 1.standard, instant
confirmbooleanNoMust be true to actually run and spend credit.

rescan

Spends scan credit

Run a scan again

Repeats a saved scan with the same business or area, keyword, radius and cell size, using fresh Google Maps data, so the two can be compared with compare_scans. THIS SPENDS DATA CREDIT. Call once without confirm to see the cost, tell the user, and only call again with confirm: true after they agree.

ParameterTypeRequiredDescriptionValues
scan_idstringYesThe scan to repeat.
speedstringNostandard takes about 5 minutes and is cheapest; instant uses 4 scan credits per cell instead of 1. Default standard.standard, instant. Default standard
confirmbooleanNoMust be true to actually run and spend credit.

get_scan_status

Read-only. No credit

Get scan status

Progress of a running scan.

ParameterTypeRequiredDescriptionValues
scan_idstringYesId of a saved scan. list_scans gives the ids.

schedule_scan

Spends scan credit

Repeat a scan on a schedule

Sets a saved business scan to repeat on its own every week, every 2 weeks or every month with fresh Google Maps data, or stops it with every: "off". EVERY AUTOMATIC SCAN SPENDS SCAN CREDIT until it is stopped. Call once without confirm to see the cost of each run, tell the user, and only call again with confirm: true after they agree. Stopping needs no confirm.

ParameterTypeRequiredDescriptionValues
scan_idstringYesThe scan to repeat.
everystringYesHow often to repeat it, or off to stop.week, 2_weeks, month, off
confirmbooleanNoMust be true to turn a schedule on or change it.

list_schedules

Read-only. No credit

List scheduled scans

The scans this account has set to repeat: business, keyword, how often, when each runs next and what the last run did.

No parameters.

Account

Which account a connection belongs to, and what it has left.

get_balance

Read-only. No credit

Get balance and limits

Which account this connection belongs to, the scan credits left, whether the free scan is still available, and how many scan credits AI connections have used today. The owner account also gets its daily AI spending limit.

No parameters.

05Credits and limits

Reading is free. Scans cost credit.

Only run_scan, rescan and schedule_scan spend scan credit, and each one shows the cost before anything runs. Every other tool is free to call.

WhatCost
Reading and exportingFree. 17 of the 20 tools never use scan credit.
find_businessNo scan credit. A member account can look up 30 businesses a day, in the app and through AI together.
run_scan, rescan1 credit per cell at standard speed (about 5 minutes). 4 credits per cell at instant speed.
schedule_scanEach automatic run spends one credit per cell, until the schedule is stopped. A run is skipped when the account does not have enough credits.
The free scanEach account gets one free rank scan and one free market check, up to 5 miles at standard speed.
Repeats within 7 daysCells you already scanned for the same keyword in the last 7 days are not charged again. rescan always fetches fresh data, so it charges every cell.

The confirm step

A tool that spends credit never spends on the first call. Without confirm: true it only reports the cost. The server cannot hear your yes, so the asking is up to the AI app. What it can spend is capped by the credits on the account.

  1. Call run_scan, rescan or schedule_scan without confirm. Nothing runs. The answer has not_started: true (not_scheduled: true for a schedule), the credits needed and a next_step.
  2. Tell the user the cost and wait for a yes.
  3. Call again with the same arguments and confirm: true. The answer has started: true and the new scan_id (or scheduled: true and the next date for a schedule).
  4. Call get_scan_status until status is done, then read the scan with get_scan or get_market_check.

Stopping a schedule with every: "off" needs no confirm. The first answer from run_scan looks like this (the numbers are an example):

{
  "not_started": true,
  "would_scan": "Example Plumbing",
  "cells": 44,
  "scan_credits_needed": 44,
  "scan_credits_left": 1000,
  "next_step": "Tell the user this cost. If they agree, call run_scan again with the same arguments and confirm: true."
}

Daily limits

  • Member accounts have no separate daily cap for AI connections. A connection can spend the scan credits on the account, and scans stop when they run out. get_balance shows the credits left and what AI connections used today.
  • The TurfGap owner account works on a daily dollar limit for AI connections instead, set on its account page (up to $100 a day).
  • Requests: up to 240 a minute per account, and 6,000 a day for a member account. Past that the server answers 429 with Retry-After: 60.

Paging

Big answers come in pages. Pass offset and limit. Each answer gives next_offset, which is null on the last page.

ToolDefault pageLargest pagePages with offset
list_scans25100Yes
get_competitors20200No, one list
get_cells40150Yes
get_rankings1040Yes
export_data60250Yes

Answers from get_scan, get_market_check and get_report include links to the web report, the PDF, the CSV report and the full rankings CSV. They open without a sign-in and stop working after 7 days. Anyone who has a link can see that report, so give links only to people who should see it. Your AI should hand them to you rather than fetch them.

06Errors

Plain words, so your AI can fix it.

Errors say what went wrong in plain words. An AI can read the message, fix the call and try again.

  • A tool that cannot do the job still answers normally, with isError: true and one text item that starts with "Could not do that:". Read the message and fix the arguments.
  • A request the server cannot accept gets a JSON-RPC error with a code, and an HTTP status.

Tool errors

MessageWhat to do
Finding the scan
No scan with that id. Call list_scans to see the ids.Call list_scans and use a scan_id from it.
This scan has no results yet.Wait until get_scan_status says done.
No business by that exact name in this scan. Check get_competitors.Copy the exact name from get_competitors.
The wrong kind of scan
Market checks need a scan run in TurfGap; imported scans do not carry business locations.Use a scan run in TurfGap, not an imported one.
Market data needs a scan run in TurfGap.The same, from export_data with the underserved kind. Use a scan run in TurfGap.
Imported scans cannot be run again.Start a new scan with run_scan.
Trends are for business scans. A market scan has no single business to follow.Use get_market_check for a market scan.
Only business scans can be repeated on a schedule.Repeat a market scan by hand with rescan.
Missing or wrong arguments
Give an industry (for example "dentist") for a market scan.Add industry. list_industries has the ready list.
Give either "city" (for a market scan) or "business" with place_id, name, lat and lng from find_business.Give city and industry, or a business from find_business.
Give the keyword to rank for, for example "plumber vancouver wa".Add keyword.
every must be week, 2_weeks, month or off.Use one of those values.
Unknown kind.kind must be cells, rankings or underserved.
Type the area as City, ST or as a five-digit ZIP code. For example: Vancouver, WA or 98661. TurfGap covers the United States only.Write city as "City, ST". A five-digit ZIP code also works.
Credits and limits
This scan needs {n} scan credits and you have {m}. Add credits on your billing page.Add credits on the billing page, or lower the radius or detail.
Your free scan covers up to 5 miles at standard detail and the 5-minute speed. ...Lower radius_miles to 5 or less at standard speed, or add credits.
A free scan has already been used for this business. This scan needs {n} scan credits.Add credits, or scan with credits you have.
You have reached today's limit for business lookups. Pick from your recent businesses or try again tomorrow.Reuse a place_id you already have, or try tomorrow.
Scanning is paused for a short while. Please try again later.Try again later. No credit was spent.
This scan would pass today's AI spending limit of ... (owner account only)Raise the limit on the account page, or run the scan in the app.

Request errors

HTTPCodeMessageWhat to do
401-32001Sign in to TurfGap to use this connection. ...Send the key as Authorization: Bearer, or let the app sign you in.
401-32001That key or token is wrong or has expired. ...Connect the app again, or copy the current key from the account page.
401noneThis tool was disconnected on the TurfGap account page. ...Press Allow again on the account page, or use a new key.
403-32000Origin not allowed.Call from a server, a desktop app or a script, not from a web page on another site.
405-32000Use POST.Send every request as POST.
429-32029Too many requests. Wait a minute and try again.Wait 60 seconds, as the Retry-After header says.
400-32700Parse errorSend valid JSON.
400-32600Invalid request, or Too many requests in one batch (limit 20).Send JSON-RPC 2.0 with a method. Keep batches to 20 messages.
200 or 404-32601Method not found: ...Use initialize, ping, tools/list or tools/call, or server/discover on the stateless protocol.
200 or 400-32602Unknown tool: ...Call tools/list for the tool names.
400-32022Unsupported protocol versionUse a version from data.supported in the error.
400-32020Header mismatch: ...On 2026-07-28, send MCP-Protocol-Version, Mcp-Method and Mcp-Name headers that match the body.
400-32602Invalid params: every request must carry _meta[...]On 2026-07-28, add the protocol version and client capabilities to _meta.

The older protocol answers an unknown method or tool with HTTP 200 and the error in the body. The stateless protocol uses 404 and 400.

07Plain data endpoint

The same data, without MCP.

Scripts that do not speak MCP can read the same data over ordinary web requests. Send the same key or token in the Authorization: Bearer header.

Address (GET)Returns
/api/v1/scansYour saved scans, as JSON.
/api/v1/scans/{id}One scan in full, as JSON.
/api/v1/scans/{id}/rankings.csvEvery ranking in every cell: one row per business per cell.
/api/v1/scans/{id}/cells.csvOne row per cell: residents, neighborhood facts, the rank and the top three.
/api/v1/scans/{id}/cells.geojsonThe cells as map shapes (GeoJSON) with the same facts, for mapping software.
/api/v1/scans/{id}/report.csvThe structured report.
/api/v1/scans/{id}/report.pdfThe PDF report.
/api/v1/scans/{id}/marketThe market check, as JSON.
  • A request without a working key or token gets 401. An address that does not exist gets 404 and a list of the ones that do.
  • The report links from the MCP tools open the PDF, the CSV report, the rankings CSV and the cells CSV without a key, for 7 days.
curl -s https://turfgap.com/api/v1/scans \
  -H "Authorization: Bearer YOUR_KEY"

08Example requests

Ask in plain words, or call it raw.

In a chat app, ask in your own words and your AI picks the tools. In your own code, send JSON-RPC.

Things to ask your AI

  • "Pull every ranking from my last scan and build a spreadsheet of who wins each neighborhood."
  • "Run a market scan for dentists within five miles of Camas, WA. Tell me the cost first."
  • "Compare this week's scan with last week's and write the client update with the cells we lost."

A raw tools/call request

This calls list_scans for the two newest scans. No initialize is needed first.

curl -s https://turfgap.com/mcp \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "list_scans",
      "arguments": {
        "limit": 2
      }
    }
  }'

The answer carries the data twice: as JSON text in content, and as an object in structuredContent. Shortened, with example values:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"scans_total\":12,\"offset\":0,\"next_offset\":2,\"scans\":[...]}"
      }
    ],
    "structuredContent": {
      "scans_total": 12,
      "offset": 0,
      "next_offset": 2,
      "scans": [
        {
          "scan_id": "mx12ab34cd56",
          "type": "business scan",
          "business_or_area": "Example Plumbing",
          "keyword": "plumber vancouver wa",
          "radius_miles": 5,
          "cells": 44,
          "status": "done",
          "scanned_on": "2026-11-30"
        },
        "..."
      ]
    },
    "isError": false
  }
}

The same call on the stateless protocol (2026-07-28)

curl -s https://turfgap.com/mcp \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/call" \
  -H "Mcp-Name: list_scans" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "list_scans",
      "arguments": {
        "limit": 2
      },
      "_meta": {
        "io.modelcontextprotocol/protocolVersion": "2026-07-28",
        "io.modelcontextprotocol/clientCapabilities": {}
      }
    }
  }'

Its answer has the same result, plus resultType and the server's name and version in _meta.

Try TurfGap first

Run a free scan, then connect your AI.