Repository navigation
Add VMMCP, VLMCP and VTMCP CRDs for MCP servers #2739
Description
Is your feature request related to a problem? Please describe
The operator can't deploy MCP servers for VictoriaMetrics, VictoriaLogs and VictoriaTraces (mcp-victoriametrics, mcp-victorialogs, mcp-victoriatraces). Users who manage the whole stack with the operator have to install them with separate helm charts and set the backend URL, credentials and monitoring by hand, outside of the operator-managed objects.
Describe the solution you'd like
Add three CRDs in operator.victoriametrics.com/v1, one per official chart (victoria-metrics-mcp, victoria-logs-mcp, victoria-traces-mcp): VMMCP, VLMCP and VTMCP. For each CR the operator creates a Deployment, Service, ServiceAccount and VMServiceScrape, and optionally a PDB, VPA and NetworkPolicy. The objects are named vmmcp-<name>, vlmcp-<name> and vtmcp-<name>, like in the charts. The backend is set with spec.entrypoint, credentials come from Secret references, and the transport is set with spec.serverMode (http or sse).
apiVersion: operator.victoriametrics.com/v1
kind: VMMCP
metadata:
name: example
spec:
entrypoint: http://vmselect-example.default.svc:8481
instanceType: clusterDescribe alternatives you've considered
- A single CRD with
spec.type: metrics|logs|traces. It would break the VM/VL/VT naming of other CRDs and charts, and the settings differ:instanceTypeandcloudAPIKeyexist only for VictoriaMetrics. - References to operator-managed CRs instead of a URL. This can be added later, while a URL also covers external and Cloud instances.
Additional information
- MCP servers don't authenticate clients, so
VMUsertargetRef.crdsupport for routing viaVMAuthcould be a follow-up. - mcp-victoriametrics keeps an index of the built-in documentation in memory (~700MiB), so it needs higher default resources and a startup probe.
- I have a working implementation with unit and e2e tests and will open a PR.
Activity
AndrewChubatiuk commentedon Oct 22, 2026
added PR to merge all mcp servers
VictoriaMetrics/mcp-victoriametrics#223
would like to avoid having CRD per MCP
megative commentedon Oct 23, 2026
Thanks, that makes sense! Then I'll keep a single
VMMCPCRD and addspec.backend(metrics,logsortraces), passed to the server asVM_INSTANCE_BACKEND, instead of separateVLMCPandVTMCPCRDs. Since this needs a server release with VictoriaMetrics/mcp-victoriametrics#223, should I wait for it and then update #2740, or add the field now?AndrewChubatiuk commentedon Oct 23, 2026
don't add spec.backend for now. let's wait till that PR is merged and released.
f41gh7 commentedon Nov 23, 2026
MCP servers shouldn't be added to operator. It's not essential applications and it's better to keep it with helm charts ( or just deploy.yaml files). It's much simpler for everyone.
There is no need to automate it's configuration, management and deployment.
And also I believe some new AI tool will replace it in a near future.