# I need to query a database

> Ask Postgres, MySQL, MongoDB and other databases questions, run SQL and manage schemas from an agent.

The best fits to query a database on Agent Switchboard, as of 20 Nov 2026: AI for Database, Postgres MCP Pro and Neon MCP, of 62 tools that do it.

## Quick answers

- **Which official tools query a database?** Neon MCP, Aiven MCP Server and MongoDB MCP, among 29 that are official.
- **Which have a hosted MCP server?** Neon MCP, Aiven MCP Server and MongoDB MCP, among 23 that have one.
- **Which need no API key or sign-in?** Postgres MCP Pro, Tabularis and Cloudflare Computer, among 7 that need none.

## Best fits

1. [AI for Database](https://agentswitchboard.dev/agents/ai-for-database) (api, mcp): Natural Language Query: Runs plain-English questions against a connected PostgreSQL, MySQL, MongoDB or SQL Server database via POST…
2. [Postgres MCP Pro](https://agentswitchboard.dev/agents/postgres-mcp-pro) (mcp): SQL Execution: Runs queries against Postgres in restricted or unrestricted mode, returning typed result sets to the agent.
3. [Neon MCP](https://agentswitchboard.dev/agents/neon-mcp) (mcp · Official · hosted MCP server): Database Creation: Create new Neon serverless Postgres databases and branches directly from an AI agent via MCP
4. [Prisma MCP](https://agentswitchboard.dev/agents/prisma-mcp) (mcp): SQL and Schema: Introspects a database schema, runs SQL queries, and applies schema updates to a Prisma Postgres database.
5. [DeepSQL](https://agentswitchboard.dev/agents/deepsql) (mcp, cli): Query Optimization: Analyzes slow queries with execution plans and returns rewritten SQL plus the reasoning behind each change.
6. [Aiven MCP Server](https://agentswitchboard.dev/agents/aiven-mcp) (mcp · Official · hosted MCP server): PostgreSQL Operations: Runs SQL and manages schemas, indexes, extensions, and pgvector on Aiven-managed PostgreSQL.
7. [MongoDB MCP](https://agentswitchboard.dev/agents/mongodb-mcp) (mcp · Official · hosted MCP server): Database Query: Execute MongoDB find queries and aggregation pipelines against any collection via MCP tools
8. [Google MCP Toolbox](https://agentswitchboard.dev/agents/google-mcp-toolbox) (mcp, cli · Official): Multi-Database Query: Execute queries across BigQuery, Postgres, AlloyDB, Spanner, MySQL, Redis, and Neo4j from any MCP client.
9. [PlanetScale MCP](https://agentswitchboard.dev/agents/planetscale-mcp) (mcp): SQL Query Execution: Runs read-only SQL against a replica or primary, or write and DDL queries when the granted scope allows them.
10. [Tabularis](https://agentswitchboard.dev/agents/tabularis) (mcp): SSH tunnels: Connects to databases over SSH tunnels, using saved connection profiles with Keychain password storage.
11. [Oracle MCP Servers](https://agentswitchboard.dev/agents/oracle-mcp) (mcp · Official): Database Tools: Lists autonomous databases and connections across a tenancy and runs SQL through OCI Database Tools connections.
12. [StackQL](https://agentswitchboard.dev/agents/stackql) (cli, mcp): SQL Provisioning: Creates and changes resources with INSERT and other mutating SQL statements.

All 62, with filters: https://agentswitchboard.dev/browse?task=query-a-database

## For agents

- This task as JSON: https://agentswitchboard.dev/api/tasks/query-a-database
- One pick for your user's need, with the next step: https://agentswitchboard.dev/api/recommend?need=query%20a%20database (or the `recommend` MCP tool at https://agentswitchboard.dev/api/mcp)
- Every task: https://agentswitchboard.dev/tasks · the whole site: https://agentswitchboard.dev/llms.txt

Updated 20 Nov 2026 with the weekly drop. Ranked by how well each listing matches the task, never by payment. Page: https://agentswitchboard.dev/tasks/query-a-database
