Skip to main content
Database connections are the foundation of MCP Studio. Every SQL-backed tool and dynamic resource requires a connection to query data from.

Supported Databases

DatabaseDefault PortCategory
PostgreSQL5432Relational
MySQL / MariaDB3306Relational
ClickHouse9000Analytical
SQLiteEmbedded
Cassandra / ScyllaDB9042NoSQL
Greenplum5432Analytical
Supabase5432Cloud
Snowflake443Cloud
Google BigQueryCloud

Creating a Connection

Navigate to Connections in the sidebar and click New Connection.

Form Fields

FieldRequiredDescription
NameYesDisplay name for the connection
Database TypeYesSelect from 9 supported types
HostYes*Hostname or IP address (*not required for cloud DBs)
PortYes*Port number (auto-filled based on db type)
DatabaseYesDatabase name to connect to
UsernameYesAuthentication username
PasswordYesAuthentication password (encrypted at rest)
SSL ModeNoSSL connection mode
Pool MinNoMinimum connection pool size
Pool MaxNoMaximum connection pool size
Extra ParamsNoAdditional parameters as JSON object
Cloud databases (BigQuery, Snowflake, Supabase) have different required fields — the form adapts automatically based on the selected database type.

SSL Modes

For PostgreSQL connections:
  • disable — No SSL
  • allow — Try non-SSL first, then SSL
  • prefer — Try SSL first, then non-SSL (default)
  • require — Require SSL, skip CA verification
  • verify-ca — Require SSL with CA verification
  • verify-full — Require SSL with full hostname verification

Testing Connection Health

After filling in the connection form, click the Test Connection button to verify connectivity before saving. The test will:
  1. Attempt to establish a connection using the provided credentials
  2. Execute a lightweight health-check query
  3. Report success or display the error message

Schema Explorer

Once a connection is saved and healthy, the schema explorer lets you browse the database structure:
  • Tables — lists all tables in the connected database
  • Columns — click a table to see its columns, data types, and nullability
This is useful when writing SQL queries for tools and resources.

Queue Settings

Each connection has individual queue settings to control concurrent query execution:
SettingRangeDefaultDescription
max_concurrent_queries1–2005Maximum simultaneous queries
queue_timeout_seconds1–30030How long a query waits in queue before timeout
queue_enabledbooleantrueEnable or disable query queueing
See Queue Management for details.

Editing and Deleting

  • Edit: Click a connection card to open it for editing. Modify any field and click Save.
  • Delete: Click the delete icon. Connections bound to tools or resources cannot be deleted until those references are removed.

See Also