Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.
Cloud SQL is Google Cloud’s managed database service for PostgreSQL and MySQL. QueryBear connects over the standard wire protocol, giving your AI clients safe, read-only access through QueryBear’s security gateway.
Select your instance and note the Public IP address and port (5432 Postgres, 3306 MySQL).
Allow QueryBear’s IP
Cloud SQL restricts connections by Authorized networks:
Get QueryBear’s egress IP from the dashboard under Connections → Network.
In the Cloud SQL instance → Connections → Networking, add that IP under Authorized networks.
Enable Public IP if not already on.
Prefer not to expose a public IP? You can run the Cloud SQL Auth Proxy on a host you control and point QueryBear’s connector at the proxy. For most read-only analytics setups, an authorized-network public IP with SSL is simpler.
In the QueryBear dashboard → Connections → New connection, choose PostgreSQL or MySQL, enter the public IP, and set SSL mode require. Cloud SQL supports server-side TLS.
Cloud SQL-specific notes
Authorized networks: Connections fail silently if QueryBear’s IP isn’t allow-listed. This is the most common setup issue.
Read replicas: Cloud SQL read replicas have their own IPs — point QueryBear at a replica to isolate AI load.
SSL enforcement: If your instance requires SSL, QueryBear’s require mode satisfies it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"QueryBear","description":"Secure read-only MCP server for PostgreSQL, MySQL, and SQLite. Give Claude, Cursor, ChatGPT, Codex, and Windsurf safe access to your production database.","colors":{"primary":"#18181b","light":"#fafafa","dark":"#18181b"},"logo":{"light":"https://mintcdn.com/querybear/V0GcM1KiA8Q9Nek8/logo/light.svg?fit=max\u0026auto=format\u0026n=V0GcM1KiA8Q9Nek8\u0026q=85\u0026s=576a8439634e5a1c89f40ef56d19c527","dark":"https://mintcdn.com/querybear/V0GcM1KiA8Q9Nek8/logo/dark.svg?fit=max\u0026auto=format\u0026n=V0GcM1KiA8Q9Nek8\u0026q=85\u0026s=23452784483d672667a116c5c3b5580e"},"favicon":"https://mintcdn.com/querybear/mE5RTOG6kskXHeBT/favicon.svg?fit=max\u0026auto=format\u0026n=mE5RTOG6kskXHeBT\u0026q=85\u0026s=6fe890cd53fb2fe6aaafee92ba6772a4","navbar":{"links":[{"href":"https://querybear.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Get Started Free","href":"https://querybear.com/signup"}},"footer":{"socials":{"x":"https://x.com/spencerpauly","github":"https://github.com/spencerpauly/querybear"},"links":[{"header":"Product","items":[{"label":"Dashboard","href":"https://querybear.com/dashboard"},{"label":"Pricing","href":"https://querybear.com/"},{"label":"Blog","href":"https://querybear.com/blog"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"querybear","hasAudioNarration":false,"actualSubdomain":"querybear","customDomains":["docs.querybear.com"],"gitSource":{"type":"github","owner":"spencerpauly","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae958b3a79c9948d24c3027:success","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Setup Guides","count":18},{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"PostgreSQL providers","count":8},{"language":"default","tag":"AI Clients","count":6},{"language":"default","tag":"Features","count":6},{"language":"default","tag":"MySQL","count":6},{"language":"default","tag":"PostgreSQL","count":6},{"language":"default","tag":"SQLite","count":6},{"language":"default","tag":"MySQL providers","count":4},{"language":"default","tag":"Databases","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"integrations/cloud-sql","slug":"/integrations/cloud-sql","pageMetadata":{"title":"Google Cloud SQL MCP Server","description":"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.","href":"/integrations/cloud-sql"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://cloud.google.com/sql`,children:`Cloud SQL`}),` is Google Cloud’s managed database service for PostgreSQL and MySQL. QueryBear connects over the standard wire protocol, giving your AI clients safe, read-only access through QueryBear’s `,_jsx(_components.a,{href:`/features/security`,children:`security gateway`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`get-your-cloud-sql-connection-details`,children:`Get your Cloud SQL connection details`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open the `,_jsx(_components.a,{href:`https://console.cloud.google.com/sql/instances`,children:`Cloud SQL instances page`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Select your instance and note the `,_jsx(_components.strong,{children:`Public IP address`}),` and port (`,_jsx(_components.code,{children:`5432`}),` Postgres, `,_jsx(_components.code,{children:`3306`}),` MySQL).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`allow-querybear’s-ip`,children:`Allow QueryBear’s IP`}),`\n`,_jsxs(_components.p,{children:[`Cloud SQL restricts connections by `,_jsx(_components.strong,{children:`Authorized networks`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Get QueryBear’s egress IP from the dashboard under `,_jsx(_components.strong,{children:`Connections → Network`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`In the Cloud SQL instance → `,_jsx(_components.strong,{children:`Connections`}),` → `,_jsx(_components.strong,{children:`Networking`}),`, add that IP under `,_jsx(_components.strong,{children:`Authorized networks`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Enable `,_jsx(_components.strong,{children:`Public IP`}),` if not already on.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Prefer not to expose a public IP? You can run the Cloud SQL Auth Proxy on a host you control and point QueryBear’s connector at the proxy. For most read-only analytics setups, an authorized-network public IP with SSL is simpler.`})}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-read-only-user`,children:`Create a read-only user`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Postgres:`}),` `,_jsx(_components.a,{href:`/databases/postgres#create-a-read-only-postgres-role`,children:`read-only role SQL`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MySQL:`}),` `,_jsx(_components.a,{href:`/databases/mysql#create-a-read-only-mysql-user`,children:`read-only user SQL`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-the-connection-to-querybear`,children:`Add the connection to QueryBear`}),`\n`,_jsxs(_components.p,{children:[`In the `,_jsx(_components.a,{href:`https://querybear.com/dashboard`,children:`QueryBear dashboard`}),` → `,_jsx(_components.strong,{children:`Connections`}),` → `,_jsx(_components.strong,{children:`New connection`}),`, choose `,_jsx(_components.strong,{children:`PostgreSQL`}),` or `,_jsx(_components.strong,{children:`MySQL`}),`, enter the public IP, and set `,_jsxs(_components.strong,{children:[`SSL mode `,_jsx(_components.code,{children:`require`})]}),`. Cloud SQL supports server-side TLS.`]}),`\n`,_jsx(Heading,{level:`2`,id:`cloud-sql-specific-notes`,children:`Cloud SQL-specific notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authorized networks:`}),` Connections fail silently if QueryBear’s IP isn’t allow-listed. This is the most common setup issue.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Read replicas:`}),` Cloud SQL read replicas have their own IPs — point QueryBear at a replica to isolate AI load.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`SSL enforcement:`}),` If your instance requires SSL, QueryBear’s `,_jsx(_components.code,{children:`require`}),` mode satisfies it.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-to-your-ai-client`,children:`Connect to your AI client`}),`\n`,_jsxs(_components.p,{children:[`Postgres: `,_jsx(_components.a,{href:`/guides/postgres-claude-code`,children:`Claude Code`}),` · `,_jsx(_components.a,{href:`/guides/postgres-cursor`,children:`Cursor`}),` · `,_jsx(_components.a,{href:`/guides/postgres-chatgpt`,children:`ChatGPT`}),`\nMySQL: `,_jsx(_components.a,{href:`/guides/mysql-claude-code`,children:`Claude Code`}),` · `,_jsx(_components.a,{href:`/guides/mysql-cursor`,children:`Cursor`}),` · `,_jsx(_components.a,{href:`/guides/mysql-chatgpt`,children:`ChatGPT`})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/databases/postgres`,children:`PostgreSQL MCP server`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/databases/mysql`,children:`MySQL MCP server`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/features/security`,children:`Security model`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Google Cloud SQL MCP Server","description":"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.","href":"/integrations/cloud-sql"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get your Cloud SQL connection details","slug":"get-your-cloud-sql-connection-details","depth":2,"children":[]},{"title":"Allow QueryBear’s IP","slug":"allow-querybear’s-ip","depth":2,"children":[]},{"title":"Create a read-only user","slug":"create-a-read-only-user","depth":2,"children":[]},{"title":"Add the connection to QueryBear","slug":"add-the-connection-to-querybear","depth":2,"children":[]},{"title":"Cloud SQL-specific notes","slug":"cloud-sql-specific-notes","depth":2,"children":[]},{"title":"Connect to your AI client","slug":"connect-to-your-ai-client","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"querybear","siteName":"QueryBear","title":"Google Cloud SQL MCP Server - QueryBear","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-28T14:28:42.621Z","originalFileLocation":"integrations/cloud-sql.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\">\u003cmeta data-mint-head name=\"application-name\" content=\"QueryBear\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Google Cloud SQL MCP Server - QueryBear\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"QueryBear\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.querybear.com/integrations/cloud-sql\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://querybear.mintlify.site/_mintlify/api/og/v2?division=PostgreSQL+providers\u0026amp;title=Google+Cloud+SQL+MCP+Server\u0026amp;description=Connect+Google+Cloud+SQL+for+PostgreSQL+or+MySQL+to+Claude%2C+Cursor%2C+ChatGPT%2C+Codex%2C+and+Windsurf+with+QueryBear+%E2%80%94+a+secure%2C+read-only+MCP+server.\u0026amp;theme=a6c3c4293f34af3c5752ca9c\u0026amp;signature=2b7ea88d23000bd05cf27ebd0355f819c8abce3f4973c2dfcc33e409eb625f1a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Google Cloud SQL MCP Server - QueryBear\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://querybear.mintlify.site/_mintlify/api/og/v2?division=PostgreSQL+providers\u0026amp;title=Google+Cloud+SQL+MCP+Server\u0026amp;description=Connect+Google+Cloud+SQL+for+PostgreSQL+or+MySQL+to+Claude%2C+Cursor%2C+ChatGPT%2C+Codex%2C+and+Windsurf+with+QueryBear+%E2%80%94+a+secure%2C+read-only+MCP+server.\u0026amp;theme=a6c3c4293f34af3c5752ca9c\u0026amp;signature=2b7ea88d23000bd05cf27ebd0355f819c8abce3f4973c2dfcc33e409eb625f1a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/querybear/9LYMFB3s1LKSlYMS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"QueryBear\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.querybear.com/integrations/cloud-sql\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/cloud-sql.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.querybear.com/#organization\",\"name\":\"QueryBear\",\"url\":\"https://docs.querybear.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/querybear/V0GcM1KiA8Q9Nek8/logo/light.svg?fit=max\u0026auto=format\u0026n=V0GcM1KiA8Q9Nek8\u0026q=85\u0026s=576a8439634e5a1c89f40ef56d19c527\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.querybear.com#website\",\"name\":\"QueryBear\",\"url\":\"https://docs.querybear.com\",\"publisher\":{\"@id\":\"https://docs.querybear.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.querybear.com/integrations/cloud-sql#webpage\",\"url\":\"https://docs.querybear.com/integrations/cloud-sql\",\"name\":\"Google Cloud SQL MCP Server\",\"description\":\"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\",\"dateModified\":\"2026-05-28T14:28:42.621Z\",\"isPartOf\":{\"@id\":\"https://docs.querybear.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.querybear.com/integrations/cloud-sql#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.querybear.com/integrations/cloud-sql#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.querybear.com/integrations/neon\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL providers\",\"item\":\"https://docs.querybear.com/integrations/neon\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Google Cloud SQL MCP Server\",\"item\":\"https://docs.querybear.com/integrations/cloud-sql\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.querybear.com/integrations/cloud-sql#article\",\"headline\":\"Google Cloud SQL MCP Server\",\"name\":\"Google Cloud SQL MCP Server\",\"description\":\"Connect Google Cloud SQL for PostgreSQL or MySQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.\",\"url\":\"https://docs.querybear.com/integrations/cloud-sql\",\"mainEntityOfPage\":{\"@id\":\"https://docs.querybear.com/integrations/cloud-sql#webpage\"},\"dateModified\":\"2026-05-28T14:28:42.621Z\",\"publisher\":{\"@id\":\"https://docs.querybear.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.querybear.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"QueryBear\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"QueryBear\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/cloud-sql.md","siteName":"QueryBear","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/index"},{"title":"What is MCP?","href":"/what-is-mcp"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Features","pages":[{"title":"Security Model","href":"/features/security"},{"title":"Access Control","href":"/features/access-control"},{"title":"Schema Detection","href":"/features/schema-detection"},{"title":"Custom Context","href":"/features/custom-context"},{"title":"Memory","href":"/features/memory"},{"title":"Audit Trail","href":"/features/audit-trail"}]},{"group":"Databases","pages":[{"title":"PostgreSQL MCP Server","href":"/databases/postgres"},{"title":"MySQL MCP Server","href":"/databases/mysql"},{"title":"SQLite MCP Server","href":"/databases/sqlite"}]},{"group":"Integrations","pages":[{"group":"PostgreSQL providers","pages":[{"title":"Neon MCP Server","href":"/integrations/neon"},{"title":"Supabase MCP Server","href":"/integrations/supabase"},{"title":"Amazon RDS MCP Server","href":"/integrations/amazon-rds"},{"title":"AWS Aurora (Postgres) MCP Server","description":"Connect Amazon Aurora PostgreSQL to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.","href":"/integrations/aws-aurora"},{"title":"Google Cloud SQL MCP Server","href":"/integrations/cloud-sql"},{"title":"Timescale MCP Server","description":"Connect TimescaleDB / Timescale Cloud to Claude, Cursor, ChatGPT, Codex, and Windsurf with QueryBear — a secure, read-only MCP server.","href":"/integrations/timescale"},{"title":"CockroachDB MCP Server","href":"/integrations/cockroachdb"},{"title":"Railway Postgres MCP Server","href":"/integrations/railway"}]},{"group":"MySQL providers","pages":[{"title":"PlanetScale MCP Server","href":"/integrations/planetscale"},{"title":"MariaDB MCP Server","href":"/integrations/mariadb"},{"title":"Aurora MySQL MCP Server","href":"/integrations/aurora-mysql"},{"title":"TiDB MCP Server","href":"/integrations/tidb"}]},{"group":"SQLite providers","pages":[{"title":"Turso MCP Server","href":"/integrations/turso"},{"title":"libSQL MCP Server","href":"/integrations/libsql"}]}]},{"group":"AI Clients","pages":[{"title":"Claude Code","href":"/clients/claude-code"},{"title":"Claude Desktop","href":"/clients/claude-desktop"},{"title":"Cursor","href":"/clients/cursor"},{"title":"Codex","href":"/clients/codex"},{"title":"Windsurf","href":"/clients/windsurf"},{"title":"ChatGPT","href":"/clients/chatgpt"}]},{"group":"Setup Guides","pages":[{"group":"PostgreSQL","pages":[{"title":"PostgreSQL + Claude Code","href":"/guides/postgres-claude-code"},{"title":"PostgreSQL + Claude Desktop","href":"/guides/postgres-claude-desktop"},{"title":"PostgreSQL + Cursor","href":"/guides/postgres-cursor"},{"title":"PostgreSQL + Codex","href":"/guides/postgres-codex"},{"title":"PostgreSQL + Windsurf","href":"/guides/postgres-windsurf"},{"title":"PostgreSQL + ChatGPT","href":"/guides/postgres-chatgpt"}]},{"group":"MySQL","pages":[{"title":"MySQL + Claude Code","href":"/guides/mysql-claude-code"},{"title":"MySQL + Claude Desktop","href":"/guides/mysql-claude-desktop"},{"title":"MySQL + Cursor","href":"/guides/mysql-cursor"},{"title":"MySQL + Codex","href":"/guides/mysql-codex"},{"title":"MySQL + Windsurf","href":"/guides/mysql-windsurf"},{"title":"MySQL + ChatGPT","href":"/guides/mysql-chatgpt"}]},{"group":"SQLite","pages":[{"title":"SQLite + Claude Code","href":"/guides/sqlite-claude-code"},{"title":"SQLite + Claude Desktop","href":"/guides/sqlite-claude-desktop"},{"title":"SQLite + Cursor","href":"/guides/sqlite-cursor"},{"title":"SQLite + Codex","href":"/guides/sqlite-codex"},{"title":"SQLite + Windsurf","href":"/guides/sqlite-windsurf"},{"title":"SQLite + ChatGPT","href":"/guides/sqlite-chatgpt"}]}]}]},"basePath":"","title":"Google Cloud SQL MCP Server - QueryBear","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}