Productivity & Projects · Databases & Storage

NocoDB MCP

Manage NocoDB bases, tables, fields, views, records, automations, interfaces, documents and agents through NocoDB's hosted MCP server.

Tools

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

  • Restore from trash

    Put one trashed item back. Takes the trash entry `id` from listTrash — not the id of the table or record itself. Restoring records can collide with the table as it stands now — a unique value since taken, a linked row since gone. With neither flag set the call refuses and names the conflicts; `force` restores anyway and nulls the offending cells (lossy); `partial` restores the rows that are clean and leaves the rest in trash. The two are mutually exclusive, and both are ignored for anything that is not a record.

  • Restore records

    Put deleted records back into a table by row id — the inverse of deleteRecords, for rows still inside the retention window. Only tables on a NocoDB-managed source keep deleted rows; an external source deletes for good and this refuses. Restoring records can collide with the table as it stands now — a unique value since taken, a linked row since gone. With neither flag set the call refuses and names the conflicts; `force` restores anyway and nulls the offending cells (lossy); `partial` restores the rows that are clean and leaves the rest in trash. The two are mutually exclusive, and both are ignored for anything that is not a record.

  • Restore script

    Restore a script from the base trash. Button fields detached by the delete are not re-attached. If a live script already holds the same title, the restored one is renamed "Restored <title>" — the response returns its actual id and title, so use those rather than looking it up by the name you deleted.

  • Send agent message

    Send a message to an agent. The turn runs asynchronously: this returns the session (a new one when `sessionId` is omitted). For a coding agent this starts or continues a coding session on its default repo; use startCodingSession to pick the repo, branch, issue or PR. Poll getAgentSession until `turn` is not `running`, then read the reply with listAgentMessages.

  • Set date dependency

    Create or update a table's date dependency rule. Fields left out keep their current value on an existing rule. The fields are type-checked against the table: start and end must be Date or DateTime, duration must be Duration or Number, and the dependency field must be a link field. Passing `ganttViewId` writes that view's own rule instead of the table default, and needs the Gantt entitlement as well.

  • Set default agent repo

    Make a repo the coding agent's default, where sessions and triggers start unless they name another. Returns the agent's repos.

  • Set display field

    Make a field the table's display value — the one shown when the row is referenced from a link, a picker or an expanded record. Every table has exactly one, so this moves it rather than adding one. Only text, number, date/time, duration, autonumber and formula fields can take it — not LongText, selects, links or attachments.

  • Set form field conditions

    Replace the "show on conditions" of one form field, so it only renders when the given conditions hold. Passing an empty list clears them and the field is always shown.

  • Set permission

    Create or replace a permission grant on a table or field. A grant is either role-based (grantedType "role" + grantedRole) or subject-based (grantedType "user" + subjects) — never both; "nobody" denies everyone

  • Set rls policy conditions

    Replace all conditions of a policy. Answers with {list: [{id, ...condition, order}]} — the stored conditions, not raw filter rows. A policy whose conditions contain a UI-authored group is refused. Passing an empty list clears them. A policy with no conditions grants every row only when it is the sole policy matching a user; matched alongside any other policy it is skipped and widens nothing. Give a policy explicit conditions unless you have confirmed it stands alone.

  • Set rls policy subjects

    Replace the set of subjects a policy applies to. Not valid for a default policy, which always covers everyone

  • Set row color by select

    Colour every row by one SingleSelect field, using the colours its options already carry. Change an option colour with updateField, not here. Refuses if the view is already on condition colouring — call clearRowColoring first.

  • Share document

    Publish a document page as a public, unauthenticated read-only link that anyone with the URL can open — no NocoDB account needed. Idempotent: on an already-shared page it returns the existing link, so it doubles as the way to change `includeSubtree`. A first share defaults to includeSubtree=true, which publishes every sub-page too, including ones you have not read — the response reports how many. Refused on a page carrying custom visibility permissions.

  • Share view

    Create a public share link for a view, or reconfigure the existing one. Calling this on an already-shared view keeps the same URL and only applies the settings passed.

  • Start coding session

    Start a coding session: the agent works on one of its repos on its own machine. Starts from the repo's start branch unless `source` names a branch, issue or pull request. Runs asynchronously: poll getAgentSession until `turn` is not `running`, then read listAgentMessages and getCodingSessionDiff.

  • Stop agent session

    Stop the turn an agent session is running. The session, and a coding session's checkout, stay; send another message to carry on. You may stop a session you started; Creators and above may stop anyone's coding session. A chat run started by a trigger cannot be stopped, except a personal agent's, by its owner.

  • Submit feedback

    Report a NocoDB bug, missing capability, confusing behavior or docs gap to the NocoDB team. Call it when a tool errors unexpectedly, returns results that disagree with another tool, or cannot do what the user needs, or when the user asks to send feedback. No need to ask the user first: call once per issue, passing the requestId from the error as evidence, then tell the user what you reported. It changes no data and fixes nothing, so do not retry it. Describe problems in schema terms (tables, fields, tool names), never record values or personal data.

  • Submit form

    Submit an interface form page: creates one record through the form, with the form's rules — the same as a respondent pressing Submit. `fields` is keyed by field id or name (getFormSchema). A field you leave out takes the form's `default_value`. Refused, with nothing saved: a key the form does not show or you cannot edit, a value for a field the form's visibility rules hide, a missing required field, a failed validator, and update-action forms. Values: text and numbers as is; SingleSelect an option title, MultiSelect an array of titles (`options` lists what the form offers); Checkbox a boolean; Date/DateTime ISO 8601; a link field a record id, `{ id }`, or an array of them for a many-record link — ids from listFormLinkCandidates. Attachment fields cannot be filled from here. Returns the created record, limited to the fields the form shows. To create a record through a link field's add form and link it to an existing record, pass the add form's page as `pageId` and the host record in `linkTo`.

  • Test agent channel

    Check an agent channel's connection to its platform, without sending a message.

  • Unlink records

    Remove specific links from records in this table through a link field. Links not named are kept. A link the record does not have is named in `warnings`; other links still unlink. Reports per-record ok/error — one bad record does not fail the rest.

PreviousPage 10 / 12Next