Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana/latest/developer-resources/mcp/configure/client-tls-grafana-connection.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana/latest/developer-resources/mcp/configure/client-tls-grafana-connection/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Client TLS (Grafana connection)
If your Grafana instance uses mTLS or a custom CA, configure the MCP server to use the correct certificates when it calls the Grafana API.
What you’ll achieve
The server uses your client certificate and key (and optionally a CA file) for HTTPS requests to Grafana, or verifies Grafana’s server certificate with a custom CA.
Before you begin
- Client certificate and key (and CA file if needed) for your Grafana endpoint.
- The server installed (binary or Docker with access to the cert files).
Configure client TLS
Use these flags when starting the server:
- –tls-cert-file – Path to the client certificate file.
- –tls-key-file – Path to the client private key file.
- –tls-ca-file – Path to the CA certificate file for server verification.
- –tls-skip-verify – Skip TLS verification (insecure; use only for testing).
Example:
mcp-grafana \
--tls-cert-file /path/to/client.crt \
--tls-key-file /path/to/client.key \
--tls-ca-file /path/to/ca.crtWith Docker, mount the cert directory and pass the paths inside the container (for example, /certs/client.crt).
Next steps
- Client configuration examples for full MCP JSON (binary and Docker) with TLS flags.
- Server TLS (streamable-http) if you want HTTPS for the MCP server itself.
- Authentication for Grafana credentials.
- Command-line flags for all TLS-related flags.
Was this page helpful?
Related resources from Grafana Labs


