Get the FREE Ultimate OpenClaw Setup Guide →

focus

MCP server for FinOps cloud cost analysis using FOCUS billing data. Query AWS, Azure & GCP costs with AI assistants like Claude.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio glassity-focus-mcp docker run -i --rm -v /path/to/your/focus/data:/data:ro -e FOCUS_DATA_LOCATION=/data -e FOCUS_VERSION=1.0 glassity/focus-mcp:latest \
  --env FOCUS_VERSION="FOCUS data version (e.g., 1.0, 1.1, 1.2)" \
  --env FOCUS_DATA_LOCATION="Location of loaded FOCUS data (default: /data inside container)"

How to use

This MCP server exposes a set of tools for analyzing FOCUS (FinOps Open Cost & Usage Specification) billing data. It provides a suite of MCP capabilities to inspect loaded data, browse and execute predefined analysis queries, and explore the FOCUS schema. You can use tools such as get_data_info to understand what data is loaded, list_use_cases and get_use_case to explore and run predefined analyses, and execute_query for custom SQL-based queries. The server also offers schema-related tools like list_columns and get_column_details to learn about the available FOCUS fields. This makes it easy to interact with complex cloud cost data through natural language prompts or scripted queries, backed by DuckDB-powered analytics and versioned FOCUS support (v1.0 to v1.2).

How to install

Prerequisites:

  • Docker installed on your machine or server
  • Access to FOCUS data (Parquet format) either locally mounted or accessible via a path inside the container

Step-by-step:

  1. Ensure Docker is running on your host.

  2. Prepare your FOCUS data location (local path). For example, create a data directory and place Parquet files there.

  3. Run the MCP server via Docker using the following command, replacing the data path as needed:

    docker run -i --rm
    -v /path/to/your/focus/data:/data:ro
    -e FOCUS_DATA_LOCATION=/data
    -e FOCUS_VERSION=1.0
    glassity/focus-mcp:latest

  4. The MCP server will start and listen for MCP client connections. Configure your MCP client (e.g., Claude Desktop) to point at the running container and use the provided tools.

  5. If you need to use S3 or other data sources, extend the Docker run with additional environment variables or a wrapper script per your data sourcing method.

Additional notes

Notes and tips:

  • The container expects FOCUS data in Parquet with a location specified by FOCUS_DATA_LOCATION. Use a read-only volume for data to ensure data integrity.
  • FOCUS_VERSION should reflect the data schema version you’re using (1.0, 1.1, 1.2).
  • If you need to access data from S3 or a cloud provider, you can pass environment variables (e.g., AWS_REGION, AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) to the container as needed for your data source.
  • For Claude Desktop integration, ensure the Claude config JSON points to the running container and the proper data location is exposed to the container.
  • Logs and runtime diagnostics will help troubleshoot data loading or query issues; check container logs for details.

Related MCP Servers

Sponsor this space

Reach thousands of developers