• DATA
  • LIST
  • HUMAN
  • CODE

How to retrieve database connection strings with your AI

Connect Coolify to your AI client once. After that, your agent can pull specific connection details for any database you manage.

Ask AI about this page

Short answer

How do I get my database connection strings using AI?

Your AI uses the Coolify MCP to scan your instances and pull the exact connection strings for PostgreSQL, MySQL, or Redis. You'll get the host, port, user, and password details you need immediately.

The outcomes.

Where the data lands.

The AI handles the lookup so you don't have to dig through the Coolify dashboard.

DATA

Connection strings

The AI pulls the full string including credentials. You get the exact format needed for your application code.

LIST

Database inventory

The agent identifies all active PostgreSQL, MySQL, and Redis instances. You get a clear view of what's running.

HUMAN

Manual verification

You decide which strings are safe to use in your environment. The AI provides the data, but you control the deployment.

CODE

Ready to paste

The AI formats the output so you can copy it directly into your .env files or config settings.

The workflow

What your AI does when the request arrives.

The AI moves from scanning your environment to extracting specific credentials.

  1. Scan instances

    The agent looks through your Coolify account to find all available database services.

    list_databases
  2. Identify target

    The AI matches your request to a specific PostgreSQL, MySQL, or Redis instance.

    list_databases
  3. Extract credentials

    The agent pulls the specific connection details for the selected database.

    get_database
  4. Format output

    The AI presents the connection string in a clean, usable format for your project.

    get_database

Try it

Copy these to start.

Use these prompts to trigger the Coolify MCP.

Starting points

Swap out the database names like 'production-redis' or 'main-postgres' to target specific instances.

Coolify Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_2OtVSYxP6F0y5CH4pZP2Y6H6N3UqbNzYtv86n8vS/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Coolify capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "coolify-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_2OtVSYxP6F0y5CH4pZP2Y6H6N3UqbNzYtv86n8vS/mcp"
    }
  }
}
Copy into chat04
  • List all my databases in Coolify.

  • What is the connection string for my production PostgreSQL instance?

  • Find the Redis connection details for my staging environment.

  • Give me the MySQL connection string for the user database.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Coolify once, then ask.

One connection link is all it takes. Your credentials stay encrypted, and you can immediately start asking your AI for database info.

Connect Coolify to your AI

FAQ

How this task behaves.

  • 01

    Can the AI change my database passwords?

    No. The AI can only read existing connection strings; it cannot modify your database settings or credentials.

  • 02

    Does the AI see all my Coolify data?

    The AI only sees the database information provided by the list and get tools. It cannot access other parts of your Coolify setup.

  • 03

    Can I use this to create new databases?

    No. This MCP is designed for retrieving connection information, not for creating or managing database instances.

  • 04

    Which database types are supported?

    The AI can retrieve strings for PostgreSQL, MySQL, and Redis instances.

  • 05

    Do I need to give the AI my Coolify login?

    No. You connect via Vinkius, which manages the connection securely so you don't have to share raw credentials with the AI.

  • More questions about Coolify? The Connector page answers them. See everything the Coolify Connector can do

Connect Coolify to Claude, Cursor, ChatGPT & more