Developer Tools

Felt MCP

Create, style, query and share Felt maps, layers, annotations and print pages through Felt's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Prepare file upload

    Returns a presigned upload slot for adding a file to Felt as a new layer on the map. The layer is created once you POST the file bytes to the returned slot — this tool alone does nothing visible until the upload completes. Requires code execution (shell / HTTP client) to complete. Supported formats: CSV, TSV, Excel, GeoJSON, Shapefile ZIP, KML, KMZ, GPX, MBTiles, FlatGeobuf, GeoPackage, DXF, DWG, GeoTIFF, and any other raster format that GDAL supports. Felt will reproject data into the correct coordinate system if spatial referencing is defined in the format metadata: DON'T reproject. Felt detects and geocodes addresses and common location columns (lat/lon, admin boundaries, H3, WKT) automatically. `location_columns` is optional and Felt's detection is preferred: set it only when you know which column of a tabular file holds the location and its name doesn't say so; when unsure, omit it. When narrating progress to the user, describe this as "uploading to Felt" — never as uploading to S3 or naming any backend storage service. Felt's storage is an implementation detail; some customers also connect their own S3 buckets to Felt and naming the backend confuses where their data is going. Use this when: you can execute code (shell, HTTP client) and need to upload a local file — large or binary files, or text files you'd rather not inline. This is the paved road for file uploads. Don't use this when: the file is at a public URL (use `add_url_to_map`), the content is small text already inline in your conversation (use `upload_contents_to_map`), or you cannot execute code. Without code execution, direct the user to their map's URL (from `get_map_properties` / `list_maps`) and ask them to drag-and-drop the file into the Felt web app — do not call this tool. Provide `replace_layer_id` to refresh an existing file-backed layer with the uploaded bytes instead of creating a new one. Omit it to create a new layer. How to use the returned slot: Build a multipart POST using every entry in `upload.form_fields` exactly as returned — don't reorder, modify, or re-sign. Add one more part named `upload.file_field_name` with the file bytes and filename `upload.filename_to_send`. POST to `upload.url`. Treat `upload.expected_status` (204) as success; any other status means the slot is bad — don't retry, call `prepare_file_upload` again for a fresh slot. On 204, call `poll_layer_processing_status` with the returned `map_id` and `layer_id` to confirm processing. After a `replace_layer_id` refresh, also pass `waiting_for: "refresh"`: the layer keeps reporting `completed` while it serves its previous data. Trust the HTTP status of your upload POST to know whether the bytes landed. If the POST returned 2xx, poll until `completed` or `failed`. If the POST returned 4xx/5xx, the slot is bad — request a new one via `prepare_file_upload`.

  • Refresh data source layer

    Refresh a data-source-backed layer in place. Re-runs its stored query or re-reads its backing table. Use this when: the user wants the latest data for a layer backed by a connected data source. Processing is asynchronous; use the returned `map_id` and `layer_id` to poll the layer's processing status.

  • Refresh url layer

    Refresh a URL-backed layer in place by re-fetching its stored URL. Use this when: the user wants the latest data for a layer originally imported from a URL. Processing is asynchronous; use the returned `map_id` and `layer_id` to poll the layer's processing status.

  • Set layer group interaction

    Set how a layer group's layers are toggled in the legend. Options: - default: a checkbox list — each layer toggles independently. - slider: a slider that steps through layers, one visible at a time (best for ordered series like time steps or scenarios). - single_select: a radio/dropdown — exactly one layer visible at a time. - multi_select: checkboxes where any combination of layers can be visible. Layer group ids come from list_map_layers. slider, single_select, and multi_select require a group with at least two layers. Switching to slider or single_select leaves only the top layer visible; switching to default or multi_select makes every layer visible.

  • Set map sharing

    Change this map's sharing. Provide at least one field; all requested changes apply together or not at all. Call get_map_sharing first — most maps are already link-viewable.

  • Set visibility

    Show and/or hide layers, layer groups, and legend items (categories or class breaks). Layer and layer group ids come from list_map_layers; legend item ids come from inspect_layer — treat legend item ids as opaque strings and pass them back verbatim. Hiding a legend item also filters that category out of the layer's data; hiding every legend item of a layer hides the whole layer.

  • Update layer component

    Partially update a component on a layer. Only the provided fields will be updated. `data` is replaced as a whole when provided, `config` fields are merged, and `"selection": null` inside config clears a selection. An attribute in `data` is named by the column's `storage_name` from inspect_layer (never its `display_name`), or on a raster layer by a band `id` such as `band:1`. A component's type is immutable — delete and recreate to change it.

  • Update layer group properties

    Update a layer group's name, caption, or legend settings. Only the provided fields change. Only works on real layer groups, not on standalone layers.

  • Update layer properties

    Update a layer's properties. Can set any combination of: FSL style, name, caption. Only the provided fields are changed; omitted fields are left as-is.

  • Update map properties

    Update a map's own properties. Provide only the fields you want to change; everything else is left alone.

  • Update print layout

    Rename a workspace layout, or replace its contents with a print page's (`page_id`). Every workspace member's layout picker changes, so only when the user asks. Built-in layouts can't change.

  • Update print page

    Rename a print page, move it in the map's page list, or change its paper size, orientation, units, file format or resolution. A size or orientation change rescales everything on the page to fit, as the editor does. Edit what is on the page with `upsert_print_items`.

  • Upload contents to map

    Add Geo data to the map as a new layer by including its contents inline as raw text (no file upload). Supported formats: CSV, TSV, GeoJSON, KML, GPX. Use this when: the content is already inline in your conversation (e.g., the user dragged a small CSV into Claude) and you cannot run a shell command. Don't use this when: you have code execution (prefer `prepare_file_upload` — bytes flow directly to Felt without passing through conversation context), the file is at a public URL (use `add_url_to_map`), or the content is a larger or binary file (use `prepare_file_upload`). ## Check the size before calling You retype every byte of `contents` yourself, so a large paste costs minutes of generation and can exhaust your output budget part-way through, which kills the turn and produces no layer at all. Judge the size of the data before you call. Above roughly 200 rows or 20 KB of text, use `prepare_file_upload` instead — it sends the bytes directly without passing them through your output. Never call this tool with a shortened, sampled, or partial copy of the data. When you are unsure whether it is too big, prefer `prepare_file_upload`. ## Felt infers location from the contents — you do not need coordinates Felt works through these in order and stops at the first that resolves for most rows: 1. Geometry literals — a WKT, WKB, EWKB, or GeoJSON column (named `wkt`, `wkb`, `geojson`, `geometry`, `geom`, `the_geom`, `geography`, `shape`, or `location`), or a coordinate pair: `longitude`/`latitude`, `lng`/`lat`, `lon`/`lat`, `long`/`lat`, or `x`/`y`, including prefixed and suffixed variants like `pickup_lon`/`pickup_lat`. 2. Addresses, which Felt geocodes — either one full-address column, or separate street / city / region / country / postal-code columns. 3. Well-known entities, matched by name or code — countries (name, ISO2, ISO3); admin-1 regions (name, local name, ISO 3166-2); US states (name, USPS abbreviation, FIPS); US counties, CBSAs, census tracts, and block groups (name and/or FIPS GEOID); US ZIP codes and ZCTAs; Eurostat NUTS 1/2/3 and LAU (name and id); Australian postal areas; and IANA time zone names. 4. H3 cell ids. Pass the location column through as-is — never convert an address or an entity name to coordinates yourself, and never drop a column you think Felt can't read. Guessing coordinates produces a layer that looks authoritative and is wrong; Felt's geocoder and entity matcher are the correct answer. Name location columns for what they hold (`county_fips`, `zip`, `country`, `h3`, `lat`/`lon`). Detection reads column names as well as values, so a well-named column matches far more reliably. Entity matching needs most values in the column to resolve, so keep the rows in one consistent form rather than mixing, say, county names with state names. `location_columns` is optional, and Felt's detection is preferred over your guess. Set it only when you know which column holds the location and its name doesn't say so — `site` holding street addresses, `Lati`/`Longi`, `geo` holding county FIPS codes. When unsure, omit it and let Felt detect. ## When the user supplied the text, pass it through verbatim The column guidance above applies only to data you are composing yourself. When the user pasted or typed the data, set `format` to what they actually gave you — `tsv` for tab-separated text, `csv` for comma-separated — and copy the text through unchanged. Never convert between formats, re-delimit columns, rename or reorder columns, or reflow rows. If a location column's name hides what it holds and you know which column it is, you may point at it with `location_columns` instead of renaming it. Write the data exactly once, as this argument. Restating the rows in your reasoning or drafting them as a table first doubles the cost and can exhaust the turn before the upload begins. Provide `replace_layer_id` to refresh that uploaded layer with the supplied contents instead of creating a new one. Does not work on layers backed by a connected data source. Omit it to create a new layer. Processing is asynchronous; call `poll_layer_processing_status` with the returned `map_id` and `layer_id` to confirm completion. After a `replace_layer_id` refresh, also pass `waiting_for: "refresh"`: the layer keeps reporting `completed` while it serves its previous data.

  • Upsert annotations

    Create or update lightweight markup annotations on a map — pins, notes, sketched shapes and lines. Supported types: `Place` (pin), `Rectangle`, `Polygon` (arbitrary outline), `Circle`, `Text`, `Note` (callout), `Link` (clickable preview that opens a URL), `Line` (polyline, or a route along roads or paths with `routeMode`). Each annotation is an independent item. Coordinates are `[latitude, longitude]`. To create: omit `id` and supply `type` + the type's required fields. To update: supply `id` AND `type` (always required) plus any fields you want to change; fields you omit are preserved. The response returns a `results` list in the same order as your input, each entry with an `id` and `status` (`"created"` or `"updated"`), so you can zip it against what you sent. Annotations are markup, not data — for circling, labelling, sketching and pointing things out. If the geometry comes from a query or a file, traces a real boundary, or runs to more than a handful of shapes, create a layer instead.

  • Upsert print items

    Add items to a print page or edit existing ones. Omit `id` and give a `type` to add one; give an existing `id` to edit it, and fields left out keep their values. Call `get_print_item_guidance` first for each type's fields and how to lay them out. Returns the whole page; check `warnings`, and fix what it reports.