M
Misha Zaslavskiy
Guest
Why?
If your company has an EDA license monitoring system, you have a lot of useful data available for analysis. And if you bought EDA tools but don't actively monitor license usage, you may want to check my earlier post.
Now what do we do with this "big-data"? There most likely will be time gaps caused by infrastructure failures/maintenance, as well as evolution of suppliers and list of licenses over time, and this complicates manual analysis.
With the advancement of AI/ML tools, you could now connect your Prometheus database with AI assist tool via what's called MCP: Model Context Protocol. This allows LLM to query your database, automatically load relevant and up-to-date information in the context window, and as a result LLM will be able to accurately answer questions about usage, trends or whatever else you are interested in.
How
Here is an example how to connect Prometheus DB to Cursor AI code editor.
Go to
Cursor Settings
-> Tools & Integration
-> New MCP Server
and add this code to the .cursor/mcp.json
file:
Code:
{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run",
"--network",
"cad",
"--name",
"prometheus-mcp-server",
"-p",
"8000:8000",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "http://prometheus:9090"
}
}
}
}
Note that this example uses Docker deployment of MCP server. You don't need to run this container manually, Cursor will do it automatically. For that option you'll obviously need access to Docker, and Prometheus DB should run on the same
cad
docker network. If your setup is different, you'll need to modify this JSON file accordingly, see the source reference below.
If your MCP tool show green status and tools that are available, you are good to go. Otherwise check the Docker container status and logs.
Here is the Cursor chat prompt example:
query available licenses through MCP
And the result looks quite useful:

Sources
https://playbooks.com/mcp/pab1it0-prometheus
Continue reading...