High-Level Summary
- Clone the MCP server repository
- Configure Grafana Service Account Token & Bearer Token
- Expose the MCP server endpoint to the internet so Deeptrace can reach it.
- Run the MCP server as a Docker container inside your VPC
- Share MCP server URL & bearer token with Deeptrace:
Security Notes
- All MCP tools are strictly read-only — the MCP server cannot modify anything in your Grafana instance.
- Your Grafana Service Account Token never leaves your environment (Deeptrace never stores or receives this token).
- All data shared with Deeptrace is fully encrypted both in transit and at rest.
1. Clone the MCP Repository
git clone <https://github.com/Pyda-AI/mcp-grafana-self-host>
cd mcp-grafana-self-host
2. Create Your .env File
First, create a new .env file inside the mcp-grafana-self-host directory:
touch .env
nano .env
You will add all required environment variables to this file in the following steps.
➤ Grafana URL
GRAFANA_URL=https://your-grafana-url.com