Agent Tool Radar

Agent Tool Radar field guide

Choose MCP servers for databases around a specific investigation

A database Model Context Protocol (MCP) server gives an agent database-related capabilities; the exact tools and permissions depend on the implementation. Choose the database, environment and allowed operations before connecting credentials.

Distinguish platform access from database access

A hosted platform server may expose more than SQL: project metadata, logs, deployment features or service configuration can be part of the tool surface. A PostgreSQL-focused server may concentrate on schema inspection, query execution and performance analysis. Both may be called database MCP servers, but they represent different operational boundaries.

Supabase’s documentation supports project scoping, read-only configuration and feature-group selection. Its setup page notes that omitting a project selection can expose all projects available to the connection. Postgres MCP Pro documents restricted and unrestricted modes, with restricted mode using read-only transactions and execution-time constraints. These are documented options, not an independent security assessment.

Before selecting either approach, name the job: understand a schema, diagnose a query, prepare a migration or change data. Begin with the narrowest capability needed. A request to explain a report does not require an agent to deploy functions or modify production tables.

Distinguish platform access from database access
DecisionHosted-platform serverDatabase-focused server
Scope to inspectProject and enabled platform feature groupsDatabase, role and available SQL tools.
Typical contextSchema plus supported platform informationSchema, queries and supported query diagnostics.
Access boundaryPlatform authorization plus project configurationDatabase privileges plus server access mode.
Important questionWhich additional services can this connection change?Which operations can the connected role execute?

A worked case: a monthly report counts customers twice

A fictional support dashboard counts customers with open tickets. After a change, the count rises unexpectedly. The investigation does not initially need customer names, email addresses or full ticket text. It needs the relevant schema, join keys, filters and aggregate behavior.

Start by inspecting table relationships and the report query. A customer can have several open tickets, so joining customers to tickets may return several rows for one customer. Compare joined rows with distinct customer identifiers using an appropriately bounded query in a controlled environment. Confirm whether the report is intended to count customers or tickets before changing anything.

The SQL below is an original diagnostic example for a fictional schema. It limits the date interval but may still scan many rows on a large database; use an appropriate timeout and inspect the plan before executing expensive diagnostics. It shows an investigative comparison, not a migration or a recommendation to paste unknown SQL into production.

SELECT
  COUNT(*) AS joined_rows,
  COUNT(DISTINCT c.id) AS unique_customers
FROM customers AS c
JOIN tickets AS t ON t.customer_id = c.id
WHERE t.status = 'open'
  AND t.created_at >= DATE '2026-10-01'
  AND t.created_at < DATE '2026-11-01';

Use a narrow investigation sequence

Connect to the intended development database, sanitized snapshot or approved read replica. Inspect metadata before retrieving rows. Write down the hypothesis, choose a small query that can distinguish it and inspect only the fields needed. A LIMIT on returned rows does not necessarily bound database work, especially with joins, sorting or aggregation.

For the duplicate-count example, compare the aggregation logic with the product definition. If the definition is unique customers, a distinct aggregation or an existence-based query might be appropriate. The right expression still depends on indexes, filters, null behavior and the surrounding report. Do not choose an optimization merely because it looks shorter.

If a plan is needed, distinguish explaining a query from executing it. PostgreSQL EXPLAIN ANALYZE executes the statement. Use ordinary EXPLAIN first when execution is not authorized or the query may be expensive, and review the official PostgreSQL documentation before selecting diagnostic options.

A bounded database investigation
  1. Scope

    Select the environment, role and permitted tools.

  2. Inspect

    Read schema and query shape before row data.

  3. Compare

    Run a bounded diagnostic against a stated hypothesis.

  4. Propose

    Explain the change and verify it in the approved environment.

Read access can still expose sensitive data or consume resources; scope the investigation deliberately.

Treat server settings and database permissions as separate controls

A server’s read-only option is useful, but it should not be the only boundary you understand. Inspect the underlying database role, accessible schemas and function privileges. A connection string using an owner role gives a much wider potential capability than a purpose-built role. Keep credentials in approved secret storage and avoid exposing them in prompts, screenshots or repository configuration.

For sensitive data, prefer a sanitized environment or aggregate outputs that answer the question without returning unnecessary records. Database rows can contain untrusted text, including instructions that an agent must treat as data. Reading a support ticket should never turn its contents into authorization to run a new command.

If the task later requires a migration, make that a separate reviewed change with its own environment, rollback considerations and validation. Do not let an exploratory diagnosis silently expand into a production mutation. A working MCP connection proves connectivity, not permission to make every available change.

Troubleshoot the actual layer that failed

Authentication failures may concern platform login, a database password or a network route. Missing tables may indicate the wrong project, database or schema visibility. A denied query may be the intended result of restricted permissions. Identify the failing layer before broadening access; granting administrator privileges is not a general troubleshooting method.

When results look inconsistent, inspect timezone, transaction visibility, replica lag and the exact filtering rules. When a diagnostic times out, reduce the investigation or inspect its plan rather than repeatedly launching the same expensive query. Preserve the query and redacted error so the next person can reproduce the issue safely.

End with the environment investigated, the hypothesis supported by the observations and the proposed next action. State whether any data or schema changed. Keep conclusions proportionate: a duplicate join can explain one report without establishing that every dashboard metric is correct.

Documentation reviewed 2026-11-02 · Agent Tool Radar editorial. Source-based guidance; no independent benchmark implied.

Original sources