Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/v13.0/developer-resources/mcp/configure/server-tls-streamable-http.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/v13.0/developer-resources/mcp/configure/server-tls-streamable-http/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Server TLS (streamable-http)
When you use the streamable-http transport, you can serve the MCP server over HTTPS using your own TLS certificate and key.
What you’ll achieve
Clients connect to the server with https:// instead of http://. This is separate from client TLS, which configures how the server connects to Grafana.
Before you begin
- A TLS certificate and private key for the host and port where the server will listen.
- The server run with
-t streamable-http.
Configure server TLS
Use these flags with streamable-http:
- –server.tls-cert-file – Path to the server TLS certificate file.
- –server.tls-key-file – Path to the server TLS private key file.
Example:
mcp-grafana -t streamable-http \
--server.tls-cert-file /path/to/server.crt \
--server.tls-key-file /path/to/server.key \
--address :8443Clients then connect to https://localhost:8443 with the streamable-http path (default --endpoint-path is /mcp, for example https://localhost:8443/mcp).
Next steps
- Transports and addresses for transport options.
- Client TLS (Grafana connection) for TLS toward Grafana.
Was this page helpful?
Related resources from Grafana Labs


