Skip to content

SSL/TLS Error for queries #6

Open

Description

@arberrexhepi

Edit: I should add, great work with this server, very insightful, well done!

Original:

The error message FATAL: SSL/TLS required (SQLSTATE 28000) is coming from the PostgreSQL server itself, rejecting a non-SSL connection attempt.
What needs to be fixed:
The render_query_render_postgres tool in your MCP Burst server needs to ensure that when it makes requests to the Render API endpoint for database queries, it either:

Passes SSL/TLS parameters in the API request (if the Render API supports it)
The Render API backend needs to be configured to always use SSL when connecting to PostgreSQL

This is likely a limitation or bug in how the Render API's query endpoint connects to databases.

Or am I doing this wrong..?

Activity

  1. aaijazi commented on Oct 22, 2025

    @aaijazi
    Contributor

    Hi,

    Thanks for the feedback! Can you share some more context of what you were trying to do when it failed? Render-managed Postgres should generally always use SSL, so not quite sure what went wrong here. More detailed logs or reproduction steps would be very helpful!

  2. deep-randhawa commented on Jan 20, 2026

    @deep-randhawa

    I ran into this same issue today and wanted to share reproduction details that might help.

    Environment

    • MCP Server Version: Latest (installed via Claude Code)
    • MCP Host: Claude Code CLI
    • Database: Render Postgres (Pro plan, PostgreSQL 17, Ohio region)
    • Database has a configured IP allowlist (not open to 0.0.0.0/0)

    Steps to Reproduce

    1. Configure Render MCP server with valid API credentials
    2. Select a workspace using select_workspace
    3. Attempt to query a Postgres database that has IP allowlist restrictions using query_render_postgres

    Error Message
    Error connecting to database: failed to connect to user=<redacted> database=<redacted>:
    :5432 (.ohio-postgres.render.com): failed to receive message: unexpected EOF
    :5432 (.ohio-postgres.render.com): server error: FATAL: SSL/TLS required (SQLSTATE 28000)

    The connection attempts multiple IPs and fails with both "unexpected EOF" and "SSL/TLS required" errors.

    Impact

    This essentially makes the query_render_postgres tool unusable for any database with an IP allowlist configured. Since IP allowlists are a security best practice, this affects a significant portion of production databases and defeats one of the main value propositions of the Render MCP server.

    Workaround

    Connecting directly via psql from the command line with the same credentials works fine - SSL is negotiated automatically. This suggests the MCP server's database query tool isn't properly configuring SSL/TLS for the connection.

    Additional Context

    • Databases open to all IPs (0.0.0.0/0) may not exhibit this issue since they might have different SSL enforcement
    • The issue appears specific to databases with IP allowlists configured, which enforce SSL for external connections

    Hope this helps with debugging!

  3. andywang416 commented on Mar 30, 2026

    @andywang416

    I am running into the same issue and it's a major blocker for us to do our day-to-day work. Consider setting up Railway in parallel or switch just to have an MCP that can read the database...

  4. andrew12-forge commented on Apr 21, 2026

    @andrew12-forge

    +1

  5. diegows commented on Apr 24, 2026

    @diegows

    ✋

  6. areeves9 commented on May 4, 2026

    @areeves9

    Running into the same issue. The query_render_postgres tool fails with FATAL: SSL/TLS required (SQLSTATE 28000) on every query attempt despite the database being accessible via psql with the external connection string.

    The tool is read-only by design which is exactly what we want for AI-assisted database inspection, but the SSL gap makes it completely unusable against Render-managed Postgres instances. This is the primary use case for the tool.

    Workaround for now: psql $DATABASE_URL from the Render shell, or externally via the PSQL Command from the dashboard.

    Would love to see this fixed — first-party MCP tooling that can actually query the database would be a big unlock for agentic workflows on Render.

  7. bent-verbiage commented on Jul 21, 2026

    @bent-verbiage

    Confirmed that this is still an open issue today.

  8. nitzpo commented on Aug 28, 2026

    @nitzpo

    Still an issue

  9. added a commit that references this issue on Sep 26, 2026
    b597c35
  10. timomitchel commented on Oct 19, 2026

    @timomitchel

    Still reproducing on the latest release, as of 2026-10-18.

    Environment

    • render-mcp-server v0.3.0 (local binary, the newest tag at the time of writing)
    • MCP host: Claude Code CLI
    • Render Postgres 18, Oregon region, with an IP allowlist (not 0.0.0.0/0)

    Result
    query_render_postgres fails with the same pair of errors reported above: failed to receive message: unexpected EOF on one address and FATAL: SSL/TLS required (SQLSTATE 28000) on the other. Other tools in the server (list_services, list_deploys, get_service) work normally with the same credentials and workspace.

    One extra data point that narrows it down
    From the same machine, at the same time, psql against the external connection string got all the way to the password prompt. So the client IP is on the allowlist and the network path is fine. The only difference between the two clients is the connection setup, which is consistent with the SSL theory earlier in this thread: the server rejects a non TLS startup from an allowlisted address, and the tool does not appear to retry with TLS (or to send sslmode=require).

    Happy to test a build with a fix against this database if that helps.

  11. andywang416 commented on Nov 23, 2026

    @andywang416

    Founder said they are working on this...

    CleanShot 2026-11-23 at 10 09 14@2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions