vcf-automation-mcp-server

vcf-automation-mcp-server

Enables LLM clients to browse and manage VCF Automation projects, catalog items, and deployments through MCP tools, including provisioning, day-2 actions, and deleting infrastructure.

Category
Visit Server

README

vcf-automation-mcp

An MCP server that wraps the VCF Automation (formerly Aria Automation) REST API, exposing projects, catalog items, and deployments as MCP tools so an LLM client can browse and manage provisioned infrastructure directly.

This is the counterpart to vcf-ops-mcp, which wraps VCF Operations (vROps) instead.

This server can provision and delete real infrastructure (request_catalog_item, run_deployment_action/run_deployment_resource_action, delete_deployment). Treat its bearer token and the underlying VCF Automation refresh token with the same care as credentials that can create and destroy VMs across your monitored environment - because that's exactly what they are.

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env   # then fill in your VCF Automation details

Required configuration (via .env or real environment variables):

Variable Description
VCFA_BASE_URL Base URL of the VCF Automation appliance, e.g. https://vcfa.example.com
VCFA_REFRESH_TOKEN API refresh token generated in the UI (My Account > API Tokens)
VCFA_ORG Tenant org name to authenticate as. Leave unset for provider ("system") level
VCFA_TOKEN_URL Advanced: override the computed OAuth token endpoint
VCFA_VERIFY_SSL Set false to skip TLS verification against self-signed lab instances
VCFA_TIMEOUT Per-request timeout in seconds (default 30)
VCFA_API_VERSION_IAAS ?apiVersion= for the IaaS API (default 2021-07-15)
VCFA_API_VERSION_CATALOG ?apiVersion= for the Catalog API (default 2020-08-25)
VCFA_API_VERSION_DEPLOYMENT ?apiVersion= for the Deployment API (default 2020-08-25)

Getting a refresh token

Unlike VCF Operations (username/password), VCF Automation authenticates with a long-lived API refresh token that you generate once in the UI, which this server exchanges for short-lived (~1 hour) bearer access tokens on your behalf, caching and renewing them transparently:

  1. Sign in to the VCF Automation UI as the org (tenant) you want the server to act as.
  2. Click your username in the top-right corner > My Account > API Tokens > New.
  3. Name and create the token, then copy it into VCFA_REFRESH_TOKEN.
  4. Set VCFA_ORG to that org's name (as shown in the Provider Management Portal), or leave it unset if you generated the token at the provider ("system") level instead.

The exact token-exchange path (VCFA_TOKEN_URL) has been documented inconsistently across VCF Automation releases; this server defaults to /tm/oauth/tenant/<org>/token (tenant) or /oauth/provider/token (provider) and lets you override it if your instance's actual path differs.

Server transport/auth configuration (also via .env or real environment variables):

Variable Description
VCFA_MCP_TRANSPORT streamable-http (default) or stdio
VCFA_MCP_HOST Bind host for streamable-http (default 127.0.0.1)
VCFA_MCP_PORT Bind port for streamable-http (default 8000)
VCFA_MCP_BEARER_TOKEN Required for streamable-http. Clients must send Authorization: Bearer <value>
VCFA_MCP_ALLOWED_HOSTS Comma-separated Host-header allowlist for DNS-rebinding protection

Running

By default this runs as a standalone remote server over streamable-http, bound to 127.0.0.1:8000, requiring a bearer token on every request:

export VCFA_MCP_BEARER_TOKEN="$(openssl rand -hex 32)"
vcf-automation-mcp
# or
python -m vcf_automation_mcp

GET /healthz is unauthenticated (for load balancer/orchestrator liveness checks); everything else requires the bearer token. 127.0.0.1 only listens locally - to actually reach it from another host, bind VCFA_MCP_HOST=0.0.0.0 (or run it behind a reverse proxy) and make sure the bearer token is the only thing standing between the network and credentials capable of provisioning and deleting infrastructure across your managed environment, so treat it like any other secret and prefer TLS termination (e.g. a reverse proxy) in front of it rather than plaintext HTTP over an untrusted network.

When VCFA_MCP_HOST isn't 127.0.0.1/localhost, FastMCP's own DNS-rebinding protection (a check against the incoming request's Host header) has nothing to allowlist by default, since it only auto-configures that allowlist for a loopback host. Left unset, no Host-header check is enforced and the bearer token is your only gate - fine on a network you trust, but set VCFA_MCP_ALLOWED_HOSTS to the hostname(s)/IP:port clients actually connect through (comma-separated) for defense in depth on a shared or untrusted network.

Point an MCP client at it as a streamable-http server, e.g. in Claude Code:

claude mcp add --transport http vcf-automation http://<host>:8000/mcp \
  --header "Authorization: Bearer <your-token>"

Running over stdio instead

For local use where an MCP client spawns the server itself as a subprocess (no network exposure needed), set VCFA_MCP_TRANSPORT=stdio - the bearer token is not required in this mode. Example Claude Desktop config:

{
  "mcpServers": {
    "vcf-automation": {
      "command": "/absolute/path/to/.venv/bin/vcf-automation-mcp",
      "env": {
        "VCFA_MCP_TRANSPORT": "stdio",
        "VCFA_BASE_URL": "https://vcfa.example.com",
        "VCFA_REFRESH_TOKEN": "changeme",
        "VCFA_ORG": "my-tenant-org"
      }
    }
  }
}

Tools

Projects

  • list_projects — visibility/isolation boundaries for provisioned resources
  • get_project — full detail for one project

Catalog

  • list_catalog_items — browse blueprints/templates available to request, optionally by project
  • get_catalog_item — full detail for one catalog item
  • list_catalog_item_versions — published versions of a catalog item that can be requested
  • request_catalog_itemprovisions a new deployment from a catalog item

Deployments

  • list_deployments — provisioned instances of a blueprint/catalog item
  • get_deployment — full detail for one deployment
  • list_deployment_resources — resources (VMs, networks, disks, etc.) within a deployment
  • get_deployment_resource — full detail for one resource within a deployment
  • list_deployment_actions — day-2 actions available on a deployment (e.g. ChangeLease)
  • list_deployment_resource_actions — day-2 actions available on a resource (e.g. PowerOff)
  • run_deployment_actionruns a day-2 action on a deployment
  • run_deployment_resource_actionruns a day-2 action on a resource
  • delete_deploymentdestroys a deployment and its provisioned resources

Requests

  • get_request — poll the status of an asynchronous request (deployment/day-2 action)

Testing

pip install -e ".[dev]"
pytest

Tests mock the VCF Automation HTTP API with respx - no live instance required.

Notes

  • Pinned to mcp<2.0.0: the MCP Python SDK's 2.x line renamed FastMCP to MCPServer and moved it to mcp.server.mcpserver. This project targets the well-established 1.x mcp.server.fastmcp.FastMCP API.
  • The VCF Automation REST API surface is large (cloud accounts, networking, policies, onboarding, blueprints, etc.); this server intentionally covers only the consumption/day-2 path - projects, catalog, deployments, requests - not infrastructure setup (cloud accounts, zones, regions).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured