Skip to content
v2.7

Use Owbase in chat (MCP)

Connect Claude, Cursor or VS Code to an Owbase project to query and operate the database, users, storage, functions and sites by chatting.

Owbase has an MCP (Model Context Protocol) server hosted at https://mcp.owbase.dev/. Once connected to it, your AI chat operates the Owbase projects you authorize (up to 10): it reads and creates tables and rows, manages users and teams, uploads files, publishes functions and sites, and configures webhooks and tokens. You ask in plain language; the chat picks the right call.

The server exposes these tools to the chat:

Tool What for
owbase_get_context Shows the connected project, the mode (read or write), until when the connection is valid and a summary of what exists in it
owbase_list_projects Lists the projects of the connection, with the mode of each one (read only or read and write). With more than one project, the chat passes the id in project to the other tools
owbase_search_operations Looks up the right API operation (“create table”, “list users”)
owbase_read Runs a read operation (list, get, download, view logs). Changes nothing
owbase_write Runs an operation that changes the project (create, edit, delete, publish, execute). Only exists on read-and-write connections
owbase_docs Searches this documentation
owbase_tasks Lists the project’s import and export tasks, shows the report of one and generates the download link for its files. Read-only
owbase_export_table Exports a table to CSV or Excel and returns a download link. Only exists on read-and-write connections
owbase_analyze_import First step of importing a CSV: analyzes the file and shows the summary, without writing any row. Only exists on read-and-write connections
owbase_request_api_key Builds the console link for you to create an API key (for a server or CI), with name, scopes and validity already filled in. The secret never goes through the chat. It only builds the link
owbase_upload Reserves an upload URL for a large package or one that’s on your machine (a site’s .tar.gz, for example). Only exists on read-and-write connections
owbase_import Runs the analyzed import, or undoes, cancels or resumes a task. Writes or deletes rows. Only exists on read-and-write connections

The enabled services are TablesDB (database), Users, Teams, Storage, Functions, Sites, Webhooks and Tokens.

You need an Owbase account with access to the project (how to get access). The address is the same in every chat: https://mcp.owbase.dev/. If your chat asks for the path, https://mcp.owbase.dev/mcp also works.

In the terminal:

Terminal window
claude mcp add --transport http owbase https://mcp.owbase.dev/

Then, inside Claude Code, type /mcp, choose owbase and use Authenticate. The browser opens on Owbase’s authorization screen.

When you connect, the browser opens a page of the Owbase console (/connect-mcp). If you haven’t signed in yet, the console asks for the login and then returns to this screen. Check the following before authorizing:

  • Who is asking. The chat’s name appears at the top. Only a chat that identifies itself through a document published on its own vendor’s domain, such as Claude Code (through claude.ai), appears as Verified. Chats that register at connection time, such as Cursor and VS Code, appear as an unverified client, because that registration accepts any name; the same goes for Claude in the browser and in Desktop when it registers this way. This is expected, not an error. Only continue if you were the one who just requested the connection, in your own chat.
  • Where you go back to. The return address is highlighted. For Claude in the browser it’s claude.ai; for apps on your computer (Claude Code, Cursor, VS Code) it’s localhost or 127.0.0.1 (in Cursor on the web, www.cursor.com). If the address is anything else you don’t recognize, click Deny.
  • The projects. Check up to 10 projects, from one or several organizations (switching the organization keeps the ones already checked). If you only have one project, it comes checked.
  • The mode of each project. Read only is selected by default on each one. Read and write lets the chat change that project through the owbase_write tool and import and export data (see below).

Authorize creates the MCP · chat name key under the API keys of each checked project and sends you back to the chat. If the key of any project cannot be created, nothing is connected. Deny cancels the request.

On the authorization screen you can check up to 10 projects, from one or several organizations. Each checked project has its own mode (read only is selected by default): you can read production and write only to the test projects. The connection creates an MCP · chat name key in each project, and the chat only reaches the projects you checked.

  • owbase_list_projects lists the projects of the connection, with the mode of each one. The chat passes the project id in project to the other tools. With a single project, project is optional.
  • owbase_write shows up if any project is read and write; writing to a read-only project is refused, and that project’s key does not even have write permission.
  • Disconnecting: deleting a project’s key under API keys (or Revoke in that project’s AI tab) disconnects only that project; the connection keeps working in the others.
  • The 60 calls per minute limit applies to the whole connection. To add another project, connect again.

Reading and changing are separate tools. owbase_read only reads; every change (create, edit, delete, publish, execute) goes through owbase_write, which Owbase flags to the chat as a tool that changes and may delete data.

The chat app itself asks for your approval, not Owbase: Claude, Cursor and VS Code show the owbase_write call with its parameters and wait for you to allow it. Owbase doesn’t see the conversation: it relies on that approval from the app. So:

  • Don’t check “always allow” (or “allow in this conversation”) for owbase_write. That way every change passes before your eyes before it runs. For owbase_read, which only reads, allowing it permanently is safe.
  • Read the parameters before allowing: text in the project’s data (rows, files, logs) may try to convince the chat to do something else.
  • If you only want to query, connect in read only mode. In it, owbase_write doesn’t even appear to the chat, and the connection’s own key has no write permission: any attempt to change something is rejected by the server, even if you ask for it.

With the connection in Read and write, you ask the chat to import a CSV into a table or export a table, and you follow everything in the conversation. It’s the same service as the console (Import and export): the analysis reads the entire file before writing, the conversion rules and limits are the same, and the tasks appear in the console history.

  1. You give the CSV to the chat (paste the text or let it write it) and say which table it goes into.
  2. The chat calls owbase_analyze_import. It sends the text, analyzes the entire file and returns the summary: rows read, valid and with errors, what would be created, updated and skipped, errors by type with examples, relation values that don’t exist, the preview of the first 20 rows and the mapping used. No row is written in this step.
  3. The chat shows you the summary. If there are relations with missing values, it asks what to do with each one (create the missing ones, skip the rows or leave the relation empty).
  4. With your approval, it calls owbase_import, waits up to 45 seconds and shows the report. If the task is larger than that, it keeps running on the server and the chat follows it with owbase_tasks.

Without instructions, Owbase matches the file’s columns to the table’s by name. If the names differ, ask the chat to map them (for example, “the file’s Customer column goes to name”); it builds the mapping from the table’s schema. You can also ask for the mode (create only, update only, or create and update, with the key columns), the timezone of the dates, stopping at the first error, or clearing values when the cell comes in empty.

Rejected rows are saved in a file: ask the chat for the link (owbase_tasks) and fix the file.

Ask “export the customers table”. The chat calls owbase_export_table and returns the report with a download link valid for 24 hours. You can ask for only some columns, the format (CSV or Excel) and which field of the related table goes in place of the ID in relation columns. If the export takes more than 45 seconds, the chat receives the task ID and asks for the link when it finishes.

  • History and status (owbase_tasks): lists the tasks, shows the report of one and generates the link for the rejected rows, the missing relation values, the exported file and the rows the undo didn’t touch. Read only connections also have this tool: they see the history and status, but don’t create tasks.
  • Undo, cancel and resume (owbase_import): the same operations as in the console, with the same rules (undo is available up to 7 days after the import ends).

owbase_import writes and deletes rows, and Owbase flags it to the chat app as a tool that changes and may delete data. The same rules as in Writing apply: don’t check “always allow” for owbase_import, and read the analysis summary before allowing. owbase_analyze_import and owbase_export_table don’t change the tables’ rows, but they still create tasks in the project; the chat app may ask for your approval for them too.

The CSV goes in the request as text and is limited to 2 MB (2,097,152 bytes). Above that, nothing is sent: the chat returns the link to the console’s import wizard for that table, where the limit is the one in Import and export (50 MB). Excel files (.xlsx) also go through the console or the CLI.

Import and export need a permission that only Read and write connections created from this version on have. If your connection is older, the chat responds that it was created before import through chat; connect Owbase again (the same step as Connect, choosing Read and write) and delete the old key under API keys if you won’t use it anymore.

The connection’s extra permission exists only so Owbase can create the temporary key for the import or export task (Temporary keys). The chat doesn’t create, list or delete API keys: Owbase rejects with 403 any request from a chat key to the project’s key routes. For a server or CI key, see API key for a server or CI.

API responses go through a filter before reaching the chat: hashes and password parameters of your app’s users, session, login-token and JWT secrets, MFA recovery codes, tokens from login providers (Google, GitHub…) and the webhook signing secret are removed, and the chat receives a notice of which fields were left out. If you need one of them, get it in the console.

The chat sends files from the content it writes itself in the conversation (text or base64), up to 5 MB per call. This is for uploading a file to Storage or publishing a function or a site from files the chat generates: Owbase builds the package from them.

For a large package, or one that’s already on your machine (a site’s dist folder, for example), the chat uses owbase_upload: it gets an upload URL valid for 15 minutes and for a single file of up to 50 MB, runs curl -T package.tar.gz '<url>' on your machine and uses the upload in the deployment (code: {"upload": "<id>"}). Nothing goes through the conversation except the address and the id. The URL only works for the connection that requested it.

A newly created site only opens once it has an address and, if the page calls the project’s API from the browser, once its origin is registered:

  1. The chat creates the site (sitesCreate) and uploads the code (sitesCreateDeployment, with owbase_upload if the package is large).
  2. The <name>.sites.owbase.dev address is a separate rule: the chat creates it with proxyCreateSiteRule. The name is unique on the platform. Through this rule, the chat refuses any address outside sites.owbase.dev; custom domains have their own tools (see Custom domain).
  3. For the page to talk to the project, the chat registers the address as a web platform (projectCreateWebPlatform). Without it, the browser gets general_unknown_origin (403).
  4. sitesGet shows the site’s addresses.

Each step that changes something is an owbase_write call, which the chat app asks you to approve.

The chat doesn’t create API keys. When a server or CI needs to read the project, it calls owbase_request_api_key with the smallest set of scopes (rows.read, for example) and a short validity, and hands you the console link. You check the scopes, click Create key and store the secret, which shows once and never goes into the conversation.

  • The connection is valid for 90 days; after that, the chat asks for a new login (the same step as connecting).
  • To disconnect immediately, delete the MCP · chat name key under the project’s API keys (keys created by chats carry the MCP badge). From then on, the chat loses access.
  • Each new login creates a new key, and the previous ones stay, so the same chat’s connection on another computer isn’t dropped. All expire in 90 days; delete the ones you no longer use (Last used shows which).
  • Disconnecting from the chat (removing the server or revoking access) ends the connection, but doesn’t delete the key: it stays in the list until it expires or you delete it.
  • 60 calls per minute per connection. Beyond that, the chat receives a notice to wait.
  • Files up to 5 MB per call; packages through owbase_upload, up to 50 MB per upload (5 pending uploads per connection).
  • Import CSV up to 2 MB per call; each data tool waits for the task for up to 45 seconds.
  • 90-day connection, with up to 10 projects.

The API’s own limits (file size, queries, functions) still apply: see Limits.

Left out on purpose: GraphQL, migrations, deployment from a Git repository, messaging (email, SMS and push), creating projects or organizations, and managing API keys (the chat only builds the link for you to create the key). For those, use the console.

“The connection request has expired.” The request is valid for a few minutes and only once. Go back to the chat and connect again.

“Unverified client.” Appears for chats Owbase doesn’t know yet (Cursor, VS Code and others). Check the name and the return address; if you were the one who just asked, you can authorize.

The chat says the connection was created before import through chat. Connect Owbase again, choosing Read and write (see Old connections).

The chat says the connection is “read only” (or can’t find owbase_write). That was the mode chosen at authorization. Connect again and select Read and write; delete the old key if you don’t want both.

The chat asks for permission on every change. That’s expected: it’s your approval of each change to the project (see Writing).

Got a 401 after deleting the key. Expected: without the key, the chat loses access. The first call reports that the key was deleted; connect Owbase again in the chat.

The browser doesn’t return to the chat. Check that the chat that requested the connection is still open; in Claude Code, the return goes to your computer (localhost). If the request expired, connect again.

Was this page helpful?