# Upload a file from Claude or ChatGPT

MAIA's MCP connector takes a file you attach in Claude, ChatGPT, or another MCP client, and brings its rows into a MAIA project. MAIA matches the rows to parcels or adds them as a map layer or a table, the same way an upload in the web app does.

Updated: 2026-10-08. Source: https://maia-analytics.com/docs/mcp/upload-a-file

## What you end with

You attach a file in the chat and say where its rows go.

> **You ask:** Bring the places in this file into a new MAIA project in San Francisco County.

Your client does the rest. There is no MAIA page to open. When the import finishes, your client reports:

- the link to the project
- how many rows MAIA imported
- how many rows it skipped because they are outside the project's selected counties
- for addresses, how many rows matched a parcel and how many did not

## Before you start

You need the MAIA connector connected and signed in. See [Connect](https://maia-analytics.com/docs/mcp/connect). For a CSV or GeoJSON file, MAIA needs no other setting.

Your client sends the file in one of two ways. MAIA picks the way from the file.

| The file | How it reaches MAIA | What you need |
| --- | --- | --- |
| CSV or GeoJSON, up to 100,000 characters | Your client reads the rows and passes them to MAIA in a tool call | Nothing more, in any client |
| Any other format, or a larger file | Your client sends the file to a one-use upload link | A client that can send a file over HTTPS to `api.maia-analytics.com` |

Claude Code can send a file to an upload link with no setup. Claude on the web and in the desktop app can, after you allow MAIA's domain once, as below. ChatGPT cannot, so in ChatGPT bring in a CSV or GeoJSON file, or save the file as CSV first.

### Allow MAIA's domain in Claude

You need this step only for a file that goes to an upload link. Claude sends that file from its code sandbox. By default, the sandbox reaches only package-manager domains, so Claude cannot reach MAIA until you allow it.

On a Pro or Max plan:

1. Open **Settings**, then **Capabilities**.
2. Under **Code execution and file creation**, make sure code execution is on, and keep **Allow network egress** on.
3. Under **Additional allowed domains**, enter `api.maia-analytics.com` and choose **Add**.

> **Note:** On a Claude Team or Enterprise plan, a workspace admin adds `api.maia-analytics.com` to the organization's allowed domains. Code execution must be on.

If you skip this step, the upload is blocked. Claude tells you which domain to allow and where. Add it, and Claude can try again with the same link.

## Bring a file in

1. Attach the file in the chat.
2. Say where the rows go: a project you can edit, or a new project in a county you name.
3. Wait for the report. Address rows are matched in the background, and your client checks on them until they finish.

Rows outside the project's selected counties are skipped. A new project made from a file covers one county. For a list that spans counties, bring it into a project that already covers them, or split it by county.

## What MAIA does with the file

MAIA picks the route from the file itself, the same way it does for an upload in the web app.

| The file holds | You get |
| --- | --- |
| Street addresses | Your rows matched to parcels |
| Coordinates or shapes | A map layer of your own features |
| Anything else | A table the agent can read and join |

How MAIA reads a file and matches its addresses is on the [File upload](https://maia-analytics.com/docs/capabilities/file-upload) page.

## Formats and limits

Through an upload link, the formats and the limits are the same as for an upload in the web app: CSV, TSV, Excel (`.xlsx`), Parquet, GeoJSON, KML, KMZ, GeoPackage, and zipped Shapefile. Rows passed in a tool call must be CSV or GeoJSON text, up to 100,000 characters.

| Limit | Value |
| --- | --- |
| Rows passed in a tool call | 100,000 characters of CSV or GeoJSON |
| File size, through an upload link | 25 MB |
| Rows, matched to parcels by address | 1,000 |
| Rows, as a map layer or a table | 10,000 |

A file with more rows than the limit does not fail. Your client can ask MAIA to import only the first rows that fit. See [File formats](https://maia-analytics.com/docs/reference/file-formats) and [Limits](https://maia-analytics.com/docs/reference/limits).

## How the upload works

- **Rows in a tool call.** Your client reads the attached file and passes its rows to MAIA as text. They go through the same import as a file upload. Each call imports once, into the project or the county your client names.
- **An upload link.** Your client asks MAIA for a link, then sends the file to it from its own code environment. The file does not pass through the chat's tool calls. A link works once, expires after 10 minutes, and works only for you, for the project or the county it was made for.

## Troubleshooting

| What you see | Likely cause | What to do |
| --- | --- | --- |
| Claude says the upload was blocked | The file went to an upload link, and `api.maia-analytics.com` is not an allowed domain | [Allow MAIA's domain](https://maia-analytics.com/docs/mcp/upload-a-file#allow-domain), then ask Claude to try again. For a CSV, you can also ask Claude to pass the rows in the chat instead |
| Claude cannot run code | Code execution is off, and the file needs an upload link | Turn it on under **Settings**, then **Capabilities** |
| The file is too large to pass in the chat | It holds more than 100,000 characters | Split it into smaller files, or use a client that can send a file to an upload link |
| Fewer rows than in the file | Rows outside the project's selected counties were skipped | Check the skipped count and the target project's selected counties. Use a project that covers the rows' counties, or split the file by county |
| Addresses left unmatched | MAIA found no single parcel for them | See [How matching works](https://maia-analytics.com/docs/capabilities/file-upload#how-matching-works) |
| The link has expired | More than 10 minutes passed, or the link was used | Ask your client to start the upload again |

## Tools

Three tools carry an upload. Your client calls them for you.

| Tool | What it does |
| --- | --- |
| [`import_rows`](https://maia-analytics.com/docs/mcp/tools#import-rows) | Imports rows passed as CSV or GeoJSON text into a project, or into a new project in a county |
| [`get_upload_link`](https://maia-analytics.com/docs/mcp/tools#get-upload-link) | Gets a one-use upload link for a project, or for a new project in a county |
| [`get_import`](https://maia-analytics.com/docs/mcp/tools#get-import) | Reports an address import: its progress, then the matched and unmatched rows |

## Related

- [File upload](https://maia-analytics.com/docs/capabilities/file-upload) covers uploads in the web app.
- [Runs and approvals](https://maia-analytics.com/docs/mcp/runs-and-approvals) covers what to ask MAIA once your rows are in.
