Connect an MCP client

PruneOps exposes a read-only Model Context Protocol (MCP) endpoint, so external clients like Claude Desktop or Claude.ai can query your cost, resource and recommendation data directly.

1 min read

How it works

A scoped, read-only surface any MCP-compatible client can talk to.

Read-only
No tool can modify data — every call only queries this organization's cost, resource, and recommendation data.
OAuth 2.1
Standard Dynamic Client Registration + PKCE — sign in once, pick an organization, and switch it later with the switch_organization tool.
Streamable HTTP
Standard MCP transport (the mcp SDK) served at /mcp.

Setup

  1. Point your MCP client (Claude Desktop, Claude.ai, ...) at the endpoint below — Streamable HTTP transport:
https://mcp.pruneops.run/mcp
  1. The client registers itself automatically (Dynamic Client Registration) and opens a standard OAuth 2.1 + PKCE authorization flow — sign in and pick which organization the connection acts on.

  2. Once authorized, the client can call tools/list to discover the tools below, and tools/call to query data. Use the switch_organization tool at any time to point the same connection at a different organization you belong to.

Available tools

Read live from the endpoint — this list always matches what tools/list actually returns.

ToolDescriptionArguments
list_organizations List the organizations the signed-in user has access to, and which one the current token is scoped to. none
switch_organization Point this token at a different organization the signed-in user has access to. Subsequent tool calls act on the new organization.
organization_id
list_accounts List cloud accounts connected to the current organization. none
list_k8s_clusters List registered Kubernetes clusters and when each was last seen reporting metrics. none
list_resources List cloud resources, costliest first, optionally filtered by resource_type or account_id. Returns at most `limit` resources plus the `total` that match; use get_resource_counts for counts and totals.
resource_type account_id limit
get_resource_counts Count and projected monthly cost of the inventory per resource_type and per provider, optionally for one account_id.
account_id
get_costs Get total and per-resource-type projected monthly cost, optionally filtered by account_id.
account_id
get_recommendations List optimization recommendations, biggest potential savings first, optionally filtered by resource_uuid or status (active/dismissed/applied, default active). Returns at most `limit` plus the `total` that match and their `total_potential_savings`.
resource_uuid status limit
get_savings Get realized savings totals and ledger entries, optionally filtered by status (active/reversed, default active).
status
get_budgets Where each budget stands this month: amount, billed month-to-date spend, forecast, status (ok/warning/exceeded) and breached thresholds. none
get_cost_anomalies Recent billed-cost anomalies per service (the ones that would alert) with their projected monthly impact. none
get_health_score The FinOps health score: overall score and grade, the per-category scores with their cost and potential savings, and findings by severity. none
get_compliance_score The operational compliance score (security and hygiene): overall score and grade, per-category scores with finding counts, and findings by severity. none
get_audit_findings Active audit findings counted by severity (high/medium/low) per resource_type, worst first, optionally for one provider (aws, do, ovh, kubernetes…). Use get_recommendations with a resource_uuid for the findings themselves.
provider
get_terraform_overview How much of the inventory Terraform manages (overall and per resource_type: by Terraform, by another tool, by nobody), the synced states and how many are stale, the drift — resources whose state differs from the inventory (drift_modified) and ones the cloud no longer has (drift_missing) — the duplicates, and what the connected Terraform code says: sources read, resources it no longer declares (alive, and gone from the cloud), declared but applied to no state. none
list_terraform_states Every synced Terraform state file: where it comes from, when it was last synced and whether that is stale, and how its resources compare with the inventory (matched/modified/missing) and with the code (declared/undeclared/unknown). none
list_terraform_drift One of the Terraform lists, at most `limit` items plus the `total` that match. kind: 'modified' (state and inventory differ), 'missing' (in a state, gone from the inventory), 'unmanaged' (in the inventory, in no state), 'undeclared' (in a state and running, but declared by no connected Terraform code) or 'not_applied' (declared in the code, held by no state). Use get_terraform_resource for one resource.
kind limit
get_terraform_resource All Terraform knows about one inventory resource (by resource_uuid, from list_resources): the state entries holding it and how each compares with the inventory; how the connected code declares it — the block, the variables it uses and what the calling module passes them, as far as the code writes them out — or else the import block that brings it under Terraform.
resource_uuid