Mireye Earth is a geospatial data API that returns provenance-tagged terrain, flood, and environmental data for any US coordinate. This quickstart walks you through asking a natural-language question, fetching specific fields by name, using a built-in preset, and wiring up the MCP server for Claude Desktop — using onlyDocumentation Index
Fetch the complete documentation index at: https://www.mireye.ai/llms.txt
Use this file to discover all available pages before exploring further.
curl and jq.
Pick a coordinate
Mireye Earth covers the United States only. The accepted envelope is You can substitute any US coordinate you like — the same steps apply.
lat ∈ [18, 72] and lng ∈ [-180, -65], which includes the lower 48 states, Alaska, Hawaii, and US territories. Coordinates outside this range return 400 coord_out_of_bounds.For this guide, use a point in lower Manhattan near City Hall:Ask a question
POST /v1/ask accepts a coordinate and a free-text question. Mireye selects the relevant fields, fetches them in parallel from federal sources, and writes a cited prose answer.answer is the prose, confidence summarizes the overall response, citations is the per-source audit trail, and fields_used lists the catalog fields the answer depends on./v1/ask takes 2–6 seconds on a warm server because it runs a two-model pipeline: a planner selects fields, then a synthesizer writes the answer. Use /v1/fetch when you know exactly which fields you need and want deterministic, lower-latency responses.Fetch raw fields
When you know which fields you want, call Response:Each field is a self-contained record with its value, unit, source agency, source URL, confidence, and fetch timestamp. The
POST /v1/fetch directly. Pass a fields array with the catalog field names you need.partial_failures array is empty here. If a source times out, that field moves to partial_failures with retryable: true — the rest of the call still returns 200 with the fields that succeeded.See the field catalog for the full list of 47 available field names.Use a preset
Presets expand into a curated set of fields for common workflows. Pass The Eight presets are available:
"preset" instead of "fields" to use one.flood_risk preset returns these six fields:terrain, flood_risk, wildfire_underwrite, land_cover, site_selection, building_lookup, utilities, and boundaries. Full field expansions are listed at POST /v1/fetch.Install the MCP server
The MCP server exposes the same Add the server to your Claude Desktop config. On macOS the file is at Restart Claude Desktop. Two tools appear under the plug icon:
ask and fetch operations as native tools in Claude Desktop, Cursor, and any MCP-aware agent.Install with uv:~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it is at %APPDATA%\Claude\claude_desktop_config.json.ask and fetch. You can then ask Claude something like:“What’s the elevation at 40.7128, -74.0060?”Claude calls the
ask tool, receives the cited answer, and surfaces the citation in chat.For Cursor and custom-agent setup, see MCP installation.What’s next
POST /v1/ask
Full schema for the natural-language endpoint, including the two-model planner and synthesizer pipeline.
POST /v1/fetch
Field names, presets, and
partial_failures semantics.MCP tools
How
ask and fetch behave as MCP tools from an agent’s perspective.Insurance use case
A worked underwriting flow with real field values and citations.