Skip to content

[Question] How to set-up a https mcp-server? #1232

Answered by Colvin-Y
Colvin-Y asked this question in Q&A
Discussion options

You must be logged in to vote

The Streamable HTTP protocol starts a Uvicorn server using the default host, port, and path, unless explicitly configured otherwise.

Hi @dacamposol ,
real thanks for your advice.

I've tried it by uvicorn.run(app, host=host, port=port,ssl_keyfile="./private.key",ssl_certfile="./certificate.crt") to set-up my mcp-proxy-server. However, it seems that this server is not functioning properly. I encountered the error "server gave HTTP response to HTTPS client" when accessing it. Do we have any configuration examples for the fastMCP server? I only saw the tutorial at https://gofastmcp.com/integrations/starlette#running-the-server.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Colvin-Y
Comment options

You must be logged in to vote
1 reply
@Colvin-Y
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #1219 on July 22, 2025 20:24.