Getting [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate when connecting to internal MCP server

I’m unable to connect my agno-based agent to an internal MCP server due to SSL certificate verification failures. The connection fails during FastAPI startup with the error.

    server_params = StreamableHTTPClientParams(
        url=mcp_url,
        headers={"App-User-Id": "userid"},
        timeout=30.0
    )
    
    print(f"Creating MCP tools with persistent SSL configuration")
    try:
        mcp_tools = MCPTools(
            server_params=server_params,
            transport="streamable-http",
            timeout_seconds=30,
        )

How do I configure MCPTools to accept custom CA certificates or disable SSL verification for internal servers?

Does MCPTools support parameters like:

  • Custom CA certificate file path

  • Client certificate authentication (mutual TLS)

  • SSL context configuration

  • Verification disable flag

Hi @coderfalse_us, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!