# QueryBear > Secure read-only MCP server for PostgreSQL, MySQL, and SQLite. Give Claude, Cursor, ChatGPT, Codex, and Windsurf safe access to your production database. ## Docs - [ChatGPT](https://docs.querybear.com/clients/chatgpt.md): Connect ChatGPT to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. Add via Custom Connectors in developer mode. - [Claude Code](https://docs.querybear.com/clients/claude-code.md): Connect Claude Code to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. One-line CLI setup. - [Claude Desktop](https://docs.querybear.com/clients/claude-desktop.md): Connect Claude Desktop to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. Add as a Custom Connector. - [Codex](https://docs.querybear.com/clients/codex.md): Connect Codex CLI to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. Add to ~/.codex/config.toml. - [Cursor](https://docs.querybear.com/clients/cursor.md): Connect Cursor to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. Drop into .cursor/mcp.json. - [Windsurf](https://docs.querybear.com/clients/windsurf.md): Connect Windsurf to your PostgreSQL, MySQL, or SQLite database using QueryBear's secure MCP server. Add as a custom MCP server in settings. - [MySQL MCP Server](https://docs.querybear.com/databases/mysql.md): Connect MySQL or MariaDB to Claude, Cursor, ChatGPT, Codex, Windsurf, and Claude Desktop with QueryBear — a managed, secure, read-only MySQL MCP server. - [PostgreSQL MCP Server](https://docs.querybear.com/databases/postgres.md): Connect PostgreSQL to Claude, Cursor, ChatGPT, Codex, Windsurf, and Claude Desktop with QueryBear — a managed, secure, read-only Postgres MCP server. - [SQLite MCP Server](https://docs.querybear.com/databases/sqlite.md): Connect SQLite to Claude, Cursor, ChatGPT, Codex, Windsurf, and Claude Desktop with QueryBear — a secure, read-only SQLite MCP server. - [Access Control](https://docs.querybear.com/features/access-control.md): Control exactly which tables and columns each AI client can read, with enforced row limits and query timeouts — all configured per connection in QueryBear. - [Audit Trail](https://docs.querybear.com/features/audit-trail.md): Every query, schema fetch, and connection event QueryBear handles is logged with who ran it, when, and what came back — full visibility into AI database access. - [Custom Context](https://docs.querybear.com/features/custom-context.md): Annotate your tables and columns with plain-English descriptions so QueryBear's AI clients understand your domain and write the queries you actually mean. - [Memory](https://docs.querybear.com/features/memory.md): QueryBear learns from the queries run against your database over time — inferring conventions, common joins, and domain meaning — and keeps an internal workspace of notes so every query gets smarter. - [Schema Detection](https://docs.querybear.com/features/schema-detection.md): QueryBear auto-detects every table, column, and relationship the moment you connect a database — so your AI writes accurate SQL instead of hallucinating column names. - [Security Model](https://docs.querybear.com/features/security.md): How QueryBear's MCP gateway protects your PostgreSQL, MySQL, or SQLite database from misbehaving AI agents, prompt injection, and accidental data exfiltration. - [MySQL + ChatGPT](https://docs.querybear.com/guides/mysql-chatgpt.md): How to set up a secure MySQL MCP server for ChatGPT using QueryBear. Add as a Custom Connector in developer mode. Step-by-step with read-only user and example queries. - [MySQL + Claude Code](https://docs.querybear.com/guides/mysql-claude-code.md): How to set up a secure MySQL MCP server for Claude Code using QueryBear. Step-by-step setup with read-only user, one-line CLI install, and example queries. - [MySQL + Claude Desktop](https://docs.querybear.com/guides/mysql-claude-desktop.md): How to set up a secure MySQL MCP server for Claude Desktop using QueryBear. Add as a Custom Connector. Step-by-step with read-only user and example queries. - [MySQL + Codex](https://docs.querybear.com/guides/mysql-codex.md): How to set up a secure MySQL MCP server for OpenAI's Codex CLI using QueryBear. Add to ~/.codex/config.toml. Step-by-step with read-only user and example queries. - [MySQL + Cursor](https://docs.querybear.com/guides/mysql-cursor.md): How to set up a secure MySQL MCP server for Cursor using QueryBear. Drop into .cursor/mcp.json. Step-by-step with read-only user and example queries. - [MySQL + Windsurf](https://docs.querybear.com/guides/mysql-windsurf.md): How to set up a secure MySQL MCP server for Windsurf using QueryBear. Add as a custom MCP server in Windsurf settings. Step-by-step with read-only user and example queries. - [PostgreSQL + ChatGPT](https://docs.querybear.com/guides/postgres-chatgpt.md): How to set up a secure PostgreSQL MCP server for ChatGPT using QueryBear. Add as a Custom Connector in developer mode. Step-by-step with read-only role and example queries. - [PostgreSQL + Claude Code](https://docs.querybear.com/guides/postgres-claude-code.md): How to set up a secure PostgreSQL MCP server for Claude Code using QueryBear. Step-by-step setup with read-only role, one-line CLI install, and example queries. - [PostgreSQL + Claude Desktop](https://docs.querybear.com/guides/postgres-claude-desktop.md): How to set up a secure PostgreSQL MCP server for Claude Desktop using QueryBear. Add as a Custom Connector. Step-by-step with read-only role and example queries. - [PostgreSQL + Codex](https://docs.querybear.com/guides/postgres-codex.md): How to set up a secure PostgreSQL MCP server for OpenAI's Codex CLI using QueryBear. Add to ~/.codex/config.toml. Step-by-step with read-only role and example queries. - [PostgreSQL + Cursor](https://docs.querybear.com/guides/postgres-cursor.md): How to set up a secure PostgreSQL MCP server for Cursor using QueryBear. Drop into .cursor/mcp.json. Step-by-step setup with read-only role and example queries. - [PostgreSQL + Windsurf](https://docs.querybear.com/guides/postgres-windsurf.md): How to set up a secure PostgreSQL MCP server for Windsurf using QueryBear. Add as a custom MCP server in Windsurf settings. Step-by-step with read-only role and example queries. - [SQLite + ChatGPT](https://docs.querybear.com/guides/sqlite-chatgpt.md): How to set up a secure SQLite MCP server for ChatGPT using QueryBear. Add as a Custom Connector in developer mode. Step-by-step with file path and example queries. - [SQLite + Claude Code](https://docs.querybear.com/guides/sqlite-claude-code.md): How to set up a secure SQLite MCP server for Claude Code using QueryBear. Step-by-step setup with file path, one-line CLI install, and example queries. - [SQLite + Claude Desktop](https://docs.querybear.com/guides/sqlite-claude-desktop.md): How to set up a secure SQLite MCP server for Claude Desktop using QueryBear. Add as a Custom Connector. Step-by-step with file path and example queries. - [SQLite + Codex](https://docs.querybear.com/guides/sqlite-codex.md): How to set up a secure SQLite MCP server for OpenAI's Codex CLI using QueryBear. Add to ~/.codex/config.toml. Step-by-step with file path and example queries. - [SQLite + Cursor](https://docs.querybear.com/guides/sqlite-cursor.md): How to set up a secure SQLite MCP server for Cursor using QueryBear. Drop into .cursor/mcp.json. Step-by-step with file path and example queries. - [SQLite + Windsurf](https://docs.querybear.com/guides/sqlite-windsurf.md): How to set up a secure SQLite MCP server for Windsurf using QueryBear. Add as a custom MCP server in Windsurf settings. Step-by-step with file path and example queries. - [Introduction](https://docs.querybear.com/index.md): QueryBear is a secure, read-only MCP server that connects AI assistants like Claude, Cursor, and ChatGPT to your production PostgreSQL, MySQL, and SQLite databases. - [Amazon RDS MCP Server](https://docs.querybear.com/integrations/amazon-rds.md): Connect Amazon RDS for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Aurora MySQL MCP Server](https://docs.querybear.com/integrations/aurora-mysql.md): Connect Amazon Aurora MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [AWS Aurora (Postgres) MCP Server](https://docs.querybear.com/integrations/aws-aurora.md): Connect Amazon Aurora PostgreSQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Google Cloud SQL MCP Server](https://docs.querybear.com/integrations/cloud-sql.md): Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [CockroachDB MCP Server](https://docs.querybear.com/integrations/cockroachdb.md): Connect CockroachDB to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [libSQL MCP Server](https://docs.querybear.com/integrations/libsql.md): Connect a libSQL database to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [MariaDB MCP Server](https://docs.querybear.com/integrations/mariadb.md): Connect MariaDB to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Neon MCP Server](https://docs.querybear.com/integrations/neon.md): Connect Neon serverless Postgres to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [PlanetScale MCP Server](https://docs.querybear.com/integrations/planetscale.md): Connect PlanetScale serverless MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Railway Postgres MCP Server](https://docs.querybear.com/integrations/railway.md): Connect a Railway-hosted PostgreSQL database to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Supabase MCP Server](https://docs.querybear.com/integrations/supabase.md): Connect your Supabase Postgres database to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [TiDB MCP Server](https://docs.querybear.com/integrations/tidb.md): Connect TiDB / TiDB Cloud to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Timescale MCP Server](https://docs.querybear.com/integrations/timescale.md): Connect TimescaleDB / Timescale Cloud to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Turso MCP Server](https://docs.querybear.com/integrations/turso.md): Connect Turso (libSQL / SQLite) to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server. - [Quickstart](https://docs.querybear.com/quickstart.md): Connect a database to QueryBear and query it from Claude, Cursor, or any MCP-capable AI client in under 5 minutes. - [What is MCP?](https://docs.querybear.com/what-is-mcp.md): Model Context Protocol is the open standard that lets AI assistants like Claude, Cursor, and ChatGPT call external tools and read external data. QueryBear is an MCP server for databases.