Skip to content

Add VMMCP, VLMCP and VTMCP CRDs for MCP servers #2739

Open

Description

@megative

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: cluster

Describe 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: instanceType and cloudAPIKey exist 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 VMUser targetRef.crd support for routing via VMAuth could 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

  1. AndrewChubatiuk commented on Oct 22, 2026

    @AndrewChubatiuk
    Contributor

    added PR to merge all mcp servers
    VictoriaMetrics/mcp-victoriametrics#223
    would like to avoid having CRD per MCP

  2. megative commented on Oct 23, 2026

    @megative
    ContributorAuthor

    Thanks, that makes sense! Then I'll keep a single VMMCP CRD and add spec.backend (metrics, logs or traces), passed to the server as VM_INSTANCE_BACKEND, instead of separate VLMCP and VTMCP CRDs. 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?

  3. AndrewChubatiuk commented on Oct 23, 2026

    @AndrewChubatiuk
    Contributor

    don't add spec.backend for now. let's wait till that PR is merged and released.

  4. added
    enhancement
    on Oct 27, 2026
  5. f41gh7 commented on Nov 23, 2026

    @f41gh7
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementneed more info

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions