Portabase Logo
Portabase DashboardMCP Server

MCP Tools Reference

Complete reference for all tools exposed by the Portabase MCP server.

The Portabase MCP server exposes 12 tools grouped into three categories: Agents, Databases, and Backups.


Agents

list_agents

List all agents accessible to the authenticated user.

Parameters: none

Returns: Array of agent objects.


get_agent

Get details for a specific agent, including its associated databases.

ParameterTypeRequiredDescription
idstringYesAgent ID

Returns: Agent object with associated databases.


create_agent

Create a new agent, optionally scoped to an organization.

ParameterTypeRequiredDescription
namestringYesAgent name (min 1 character)
organizationIdstring (UUID)NoOrganization ID to scope the agent to

Returns: Created agent object.


delete_agent

Delete an agent by ID.

ParameterTypeRequiredDescription
idstringYesAgent ID

Returns: Confirmation message.


get_agent_key

Get the edge key for an agent. This key is used by the agent binary to authenticate with Portabase.

ParameterTypeRequiredDescription
idstringYesAgent ID

Returns: Object containing the edge key.

The edge key grants the agent access to your Portabase instance. Treat it like a password and never expose it in logs or version control.


Databases

list_databases

List all databases accessible to the authenticated user.

Parameters: none

Returns: Array of database objects.


get_database

Get details for a specific database.

ParameterTypeRequiredDescription
idstringYesDatabase ID

Returns: Database object.


get_database_status

Get the current status of a database, including the latest backup and restoration state.

ParameterTypeRequiredDescription
idstringYesDatabase ID

Returns: Status object with backup and restore state.


Backups

list_backups

List all backups for a specific database, ordered by most recent first.

ParameterTypeRequiredDescription
databaseIdstringYesDatabase ID

Returns: Array of backup objects.


get_backup

Get details for a specific backup, including its storage locations.

ParameterTypeRequiredDescription
databaseIdstringYesDatabase ID
backupIdstringYesBackup ID

Returns: Backup object with storages array. Use the id values from storages as backupStorageId in trigger_restore.


trigger_backup

Trigger an immediate backup for a database.

ParameterTypeRequiredDescription
databaseIdstringYesDatabase ID

Returns: Backup job object.

Returns 409 Conflict if a backup is already running for this database.


trigger_restore

Trigger a database restore from a specific backup storage. Use get_backup to find available backupStorageId values.

ParameterTypeRequiredDescription
databaseIdstringYesDatabase ID
backupIdstring (UUID)YesBackup ID
backupStorageIdstring (UUID)YesBackup storage ID (from get_backup storages list)

Returns: Restore job object.

Returns 409 Conflict if a restore is already running for this database.

Last updated on

On this page