Skip to content

Getting Started with AI Coding Agents

The quickest way to connect is inside PlaidCloud itself: open the avatar (user) menu and choose Connect Your AI, pick the client you use, and follow the steps it shows — including your workspace’s MCP server URL, already filled in. It’s available whenever your workspace has the AI entitlement enabled. The rest of this page, and the per-client pages that follow it, remain the reference — read on if you’re not in the web UI, or want the full picture of authentication and what the server exposes.

The Model Context Protocol is an open standard for letting AI agents talk to external tools and data. PlaidCloud runs an MCP server on every workspace that wraps the same core helpers the REST API uses — grouped by intent (find, describe, upsert, run, organize) so an agent can navigate the surface without loading 1,000+ low-level RPC method names.

The server lives at:

https://<your-workspace>.plaid.cloud/mcp

Replace <your-workspace> with your workspace subdomain (whatever you use to log into the PlaidCloud UI).

The catalog covers most of the day-to-day surface an agent needs:

  • Projects, workflows, steps — find/describe/upsert/run/organize, including step-level rerun and version history.
  • Tables, views, queries — schema introspection, query execution, exports, snapshots, branches. Views are the same ones you see in PlaidCloud, whether you created them in the table explorer or a workflow made them.
  • Dimensions — describe, find, upsert, version, manage nodes/aliases/properties.
  • Connections — find/upsert/test connections to external systems.
  • Lakehouse — branches, snapshots, optimize/vacuum operations.
  • Identity — members, groups, sessions, distros.
  • Documents, dashboards, UDFs, editors, agents, publishes — domain-specific tools.
  • Workflow migration — convert Alteryx (alteryx_convert), KNIME (knime_convert), Prophecy (prophecy_convert), and Savant (savant_convert) exports staged in Document into PlaidCloud workflows, and coordinate portfolio migration work.
  • PlaidCloud documentation — docs_search finds pages in the PlaidCloud documentation by keyword, and docs_fetch reads a page in full, so your agent can check how a feature works before it builds with it.
  • Workflow logs and run tracking — workflow_logs, workflow_run_status, workflow_job_track. workflow_describe with include=['run_insight'] shows where a run’s time went and which steps ran slower or faster than their own history; see Run Insight.
  • Data Foundation — project_describe(include=['foundation']) reads where a project stands and, with explain=, explains a figure of its statements, and project_upsert answers its questions: see Data Foundation for Agents.

Every tool returns a uniform envelope {ok, data, next_cursor?, total?}; failures use {ok: false, error: {code, retryable, message, hint?}}. Mutations accept dry_run=True for plan-without-write validation. A dry run of table_upsert, workflow_upsert, step_upsert, project_upsert, dimension_upsert, editor_upsert, udf_upsert, view_upsert, connection_upsert or reconciliation_upsert refuses what the real call would refuse: an update of something that doesn’t exist, or an out-of-date if_match. A dry run still writes nothing.

Tool results are the largest single consumer of an agent’s context, so the find and describe tools default to a modest slice and let you widen it:

  • Rows. A find returns 25 matches per page (step_find returns 50). A capped page sets next_cursor, and names the clipped list in truncated — either one means there is more to fetch, not that you have all of them. total always reports the full count. Raise limit or page with the cursor. A page holds at most 100 rows: a higher limit returns 100 with a next_cursor, and a limit below 1 is refused. The ERP find tools keep their own page sizes. workflow_logs returns a workflow’s log the same way, 25 entries per page.
  • Columns. Pass fields=['id', 'name', 'update_time'] to get only those columns back. A field name that appears on no record is an error listing the available fields, not a silent omission — so a typo fails loudly instead of quietly returning less than you asked for. Tools that offer curated sets also take field_set='minimal' | 'default' | 'full'; call mcp_introspect to see which parameters a given tool accepts.
  • Counts. count_only=True sizes a result set without fetching it.

An AI client accepts only so much in one reply, so the tools that return rows of data send a large result a page at a time instead of dropping what doesn’t fit:

  • query_run in sql and config modes returns up to max_rows rows a page, 1,000 by default. When more rows follow, the result names rows in truncated and sets next_cursor: call query_run again with the same arguments plus cursor=next_cursor for the next page. A cursor works only with the arguments that returned it. One query reads at most 10,000 rows, so truncated without next_cursor means it stopped there: narrow the query, or export the whole result with query_export_file. Each page follows on from the one before reliably only when the query has an ORDER BY on a unique key, or on every column it selects; without one, a page can repeat or skip rows.
  • query_data_read returns its aggregate groups and its column_values rows a page at a time the same way, with next_cursor passed back as cursor.
  • A page too large for one reply is cut short. The result keeps the leading rows and names the list in truncated. A tool with a cursor sets next_cursor to the rest and says about how many more calls the rest takes, or at least how many when the total isn’t known. A cut table preview has no next_cursor: it says to read the rest with query_run, or, where you may use it, to export it with query_export_file. Calls inside mcp_batch share one reply, so each call’s page is smaller; a call whose first row doesn’t fit in its share returns no rows and says to call the tool outside the batch.
  • query_data_read(action='table') is a preview, with no cursor. It returns up to limit rows, at most 500, and truncated is true when the table has more. Read the rest with query_run, or export it.
  • Numbers lose no digits. A decimal value comes back as a JSON number when one holds it exactly, and otherwise as text, such as "28650564.3715950179".

query_export_file saves the whole result of a read-only SQL query as one file and returns a link to download it:

  • Format. fmt is xlsx (Excel, the default) or csv. Both have a header row, and the CSV file is UTF-8 that Excel opens as UTF-8. An Excel worksheet holds 1,048,576 rows, header included, so a larger result is refused: export it as CSV instead.
  • Rows. The file holds only the rows you may read. Your row access applies, and the result says Rows limited by your access. when it narrowed the query.
  • Where it goes. The file is saved in your own Personal Temp Drive, a document account only you can open, and is deleted after about a day. Its name is the file_name you pass, or export, followed by the date and time and a short random suffix, so an export never replaces another file. From the name you pass, any folder part and the last extension are dropped, so Q3 report.xlsx becomes Q3 report. Then each run of characters other than letters (in any script), digits, spaces, _ and - becomes _, spaces and underscores are trimmed from both ends, and a name left empty becomes export.
  • The link. The result’s download_url works for 24 hours, and show_user is a ready-made link to give the person who asked.
  • Who can use it. It needs the same read permission as query_run, so a read-only Microsoft 365 Copilot user or Weave chat can use it; an LLM step on a connection whose Agent Access is Read-only (recommended) or Read & write can’t. It writes nothing but the file in your Personal Temp Drive.
  • When no Personal Temp Drive is available for you, the export is refused, and the message says to use query_run for a smaller result.

query_run and query_export_file run only SQL that reads, for everyone. A query that calls a function that runs SQL handed to it as text, such as query_to_xml, or one that reaches beyond the query, such as RESULT_SCAN on Snowflake or SLEEP on StarRocks, is refused, a project Architect’s included. See Row Access and Queries You Write Yourself.

The spec a tool takes, such as the one for project_upsert or workflow_upsert, accepts only the fields it lists. A field it doesn’t recognise is refused with an error that names the field, instead of being ignored and leaving you to find out later that it did nothing. Correct the name and send the request again. workflow_upsert takes a workflow’s description as memo, and accepts description as another name for it.

mcp_batch bundles several tool calls into one request. It takes at most 100 calls, runs a bounded number of them at a time when every call is to a read tool, and cannot be nested inside another mcp_batch or a recipe — list the calls in one flat batch instead, which costs no more to send. A batch over the limit is refused with a message naming it rather than being quietly trimmed; the limit bounds the work a single request may start, not the total you may do, so split a larger job across several batches.

A batch with a call to any other tool runs its calls one at a time, in order, and with stop_on_error it stops at the first failure. The result’s parallel says which way the batch ran.

The paginate_through_listing recipe stops after 200 pages however high a max_pages you pass it, and reports partial: true when it stops early. Between that and its max_items limit, a single paginate call always terminates.

A recipe refuses a params key it does not recognise, and the message lists the keys that recipe accepts — so a misspelled optional parameter fails loudly instead of being dropped, which would leave the call quietly answering a different question than the one you asked. Call mcp_recipes(name=...) for the keys a given recipe takes.

A large result whose rows all carry the same fields comes back column-oriented rather than as a list of objects, so the field names are sent once instead of once per row:

{"_fmt": "cols", "cols": ["id", "name"], "rows": [["a1", "Sales"], ["b2", "Costs"]]}

Row i is dict(zip(cols, rows[i])). Small results, and any result whose rows don’t share an identical set of fields, stay as ordinary arrays of objects — so both shapes appear, and code reading these responses directly should handle each. The envelope around it is unchanged, and no value is converted or rounded on the way. Agents are told about this shape when they connect and read it without any prompting from you; the saving is around 30% of the characters and around 15% of an agent’s reading budget on typical listing traffic, which is context left over for your actual question. (The two figures differ because repeated field names are cheap for a model to read — the character saving is always the larger of the two.)

For the live catalog, point your agent at the server and call mcp_introspect (no arguments) — that returns the current tool count, per-domain summaries, and parameter signatures. Use mcp_recipes for common multi-tool playbooks (paginating large lists, snapshot-then-modify, rerun a failed step, etc.).

Every upsert tool that sets labels, for tables, workflows, steps, projects, dimensions, views, editors, UDFs, connections and warehouses, takes two parameters: labels adds labels, and remove_labels removes them. Other labels on the object stay. Removals apply before additions, so one call can rename a label:

{"remove_labels": ["01"], "labels": ["001"]}

Removing a label the object doesn’t have does nothing.

The view tools work with the views you see in PlaidCloud:

  • view_find lists views, and view_describe returns one by ID or name.
  • view_upsert creates a view or updates one in place. An update keeps the view’s ID and labels, and you can change only its labels without sending the query again.
  • view_organize deletes, renames, duplicates and moves views.
  • Write query parameters as %(name)s placeholders.

Views share the table folder tree, so use table_organize to manage their folders.

Once your data is in PlaidCloud, your agent is steered to build each transformation from native table steps — Table Extract, the join steps, Table Melt, Table Union All and Table Lookup — rather than from Extract SQL. A native step fills in your variables in its filters and expressions, and PlaidCloud generates its SQL for your project’s warehouse. An Extract SQL step sends its query to the warehouse as written: it fills in no variables, and its SQL is written for one warehouse.

Your agent can try a Table Extract configuration with query_run(mode='config') — the configuration it would save with step_upsert — and see its rows before saving the step. When it does save an Extract SQL step, step_upsert returns a prefer_native_steps entry in config_warnings naming the native steps to use instead, and describe_step_operation carries the same note. Extract SQL stays available for what no native step can express.

The server ships a small set of starters for the tasks people ask for by name. A client that supports MCP prompts lists them and offers them as a menu — check your client’s documentation for where it puts them — so you pick the task rather than describe the sequence of tool calls it takes:

Starter What you give it
Import a CSV file into a table The file, and optionally the project, the folder holding it, and a name for the new table
Explain a cost change The results table, and optionally the project and the two periods
Debug a failed workflow The workflow, and optionally the project
Explore project data What you are looking for, and optionally the project

Each one is a starting message, not a command: your agent reads it and then drives the tools itself, so you can edit it or carry the conversation on from there.

Importing a File Without Knowing the Object Model

Section titled “Importing a File Without Knowing the Object Model”

The import starter saves the most work, because the naive route needs four tools in the right order — find the document account, browse to the file, create the target table, then run the import — and a wrong guess at any of them ends the flow several calls in.

It reads delimited text — CSV, TSV and the like. An Excel workbook or a Parquet file is rejected rather than misread; bring those in with the matching import step in a workflow instead.

Instead, the bulk_import_csv playbook takes the account by name and the file by name or path:

mcp_recipe_run(name='bulk_import_csv', params={
'project_id': '<project>',
'document_path': 'sales_2026.csv',
'document_account': 'Demo Data',
})

It resolves the account to its identifier, locates the file, creates the table with the columns and types read from the file itself, and loads it — so you supply neither an account id nor a column specification. table_name defaults to the file name without its extension, and table_path to the project root.

Give the folder when you know it — 'document_path': 'raw/sales_2026.csv' — and the search is confined to it. A file named in a folder is only matched in that folder: a same-named file further down is offered as a choice rather than imported in its place.

Where an argument is ambiguous, the result asks instead of guessing:

{
"needs_choice": "document_account",
"question": "More than one document account is named 'Archive'. Which one?",
"candidates": [{"id": "...", "name": "Archive"}, {"id": "...", "name": "Archive"}]
}

Show the candidates to the person you are helping, then call the playbook again with their answer, passing the candidate back exactly as it was given. When the file cannot be found, the reply lists the nearest names instead and reports how many files it searched, so “not there” can be told apart from “not where I looked”.

PlaidCloud’s MCP server accepts two authentication paths:

  1. OAuth 2.1 + PKCE via Dynamic Client Registration (DCR). This is what Claude.ai’s custom-connector UI uses, and it’s also the default for Claude Code’s MCP bridge. The client registers itself and redirects you to PlaidCloud’s Keycloak login. After you sign in, PlaidCloud shows an Application Access Request page naming the application and the redirect URI it will send credentials to — approve it once per authorization to get your token. This is a security control, not a formality: check that the application name and redirect URI match the client you’re actually connecting, and don’t approve a request you didn’t start.
  2. Static Bearer token in an Authorization header. For agent runtimes that don’t have a usable browser redirect or that want a long-lived token in a config file. PlaidCloud exposes a helper page to mint one for you (see below).

Open this URL in a browser tab where you’re already signed into PlaidCloud:

https://<your-workspace>.plaid.cloud/mcp/setup/token

The page returns a JSON snippet ready to paste into your agent’s MCP config. Each workspace has its own snippet.

The token’s lifespan is governed by your Keycloak realm’s access-token-lifespan policy (typically a few hours to a day). To refresh, reload the same URL — your browser session re-mints the token automatically.

The rest of this section walks through setup for specific AI agent clients:

  • Claude Code — Anthropic’s coding agent (CLI, VSCode extension, JetBrains plugin).
  • Claude Desktop and Claude.ai — the consumer Claude app (desktop) and web (claude.ai) using “Custom Connectors.”
  • Cursor — the AI-native code editor.
  • GitHub Copilot — Copilot agent mode in VSCode.
  • Google Gemini CLI — gemini-cli and Gemini Code Assist.
  • ChatGPT — current support status and recommended workaround.
  • Grok — connecting Grok’s custom connectors.
  • Troubleshooting — common errors and how to fix them.