BitFlux MCP Server

$uvx --from git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0 bitflux_mcp
README.md

Analyze data from BitFlux-enabled EC2 instances to determine optimal types.

BitFlux MCP Server

This lets a user get data from BitFlux enabled EC2 instances to help determine what instance type is best for their workload. It is intended to be run on your local workstation along side your AI tool such as Claude Desktop, Cursor, Windsurf, etc. Communicates with the BitFlux cloud service and AWS APIs.

Requirements

AWS

The MCP server uses AWS APIs to get lists of the users EC2 instances and AWS instance pricing. It needs to run in an environment with AWS credentials either set with environment variables or from ~/.aws see boto3 docs for details.

EC2 Instances

At this time the BitFlux solution requires AWS EC2 instances to take full advantage of the MCP server. Support for other machine types is planned, contact us with requests.

To get usage data from an EC2 instance it must be running a Bitflux daemon. There are two versions of the daemon.

1. bitfluxeval

  • For installing on existing instances evaluation of existing workloads.
  • Does not actively manage instances. Monitors and reports only.
  • Installation instructions:
curl --proto '=https' --tlsv1.2 -sSf https://apt.bitflux.ai/install_eval.sh | bash

2. bitfluxd

  • Installed by default in BitFlux AMIs in the AWS Marketplace
  • Actively manages instances.

Installation

The MCP ecosystem is moving really fast. I'm not confident I can really document this satisfactorily. I'll add some examples here to help you get started. The v0.1.0 is the release number, you can find the latest release number from the releases page.

Claude Desktop

Edit the claude_desktop_config.json which you can find from File->Settings->Developer->Edit Config to include the following:

{
  "mcpServers": {
    "bitflux": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0",
        "bitflux_mcp"
      ]
    }
  }
}

Windsurf

Edit ~/.codeium/windsurg/mcp_config.json to include the following:

{
  "mcpServers": {
    "bitflux_mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0",
        "bitflux_mcp"
      ],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

AMP

Edit ~/.config/amp/settings.json to include the following:

{
  "amp.mcpServers": {
    "bitflux_mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0",
        "bitflux_mcp"
      ],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Developing MCP Locally

If you want to run the MCP from the local repo without installing it, you can use the following configuration:

{
  "mcpServers": {
    "bitflux_mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/home/user/repos/bitflux_mcp",
        "python",
        "-m",
        "main.py"
      ],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Usage

Testing

npx @modelcontextprotocol/inspector \
  uv \
  --directory $(pwd) \
  run \
  python \
  -m \
  main.py

Privacy

bitflux_instance_recommendation

This prompt has two arguments:

  • stats - The output of the download_stats_by_instance_id tool.
  • instance_types - The output of the get_ec2_pricing tool.

bitflux://generic_ami_id

This resource returns the AMI ID of a generic AMI that can be used to create an EC2 instance.

bitflux://bitflux_ami_id

This resource returns the AMI ID of a BitFlux AMI that can be used to create an EC2 instance.

Tools (2)

download_stats_by_instance_idDownloads usage statistics for a specific BitFlux-enabled EC2 instance.
get_ec2_pricingRetrieves current AWS instance pricing and resource offerings.

Environment Variables

AWS_ACCESS_KEY_IDrequiredAWS credentials for accessing EC2 and Pricing APIs
AWS_SECRET_ACCESS_KEYrequiredAWS credentials for accessing EC2 and Pricing APIs

Configuration

claude_desktop_config.json
{"mcpServers": {"bitflux": {"command": "uvx", "args": ["--from", "git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0", "bitflux_mcp"]}}}

Try it

Download the usage statistics for my EC2 instance i-1234567890abcdef0 and compare it with current AWS pricing to recommend a better instance type.
Get the current AWS EC2 pricing data and help me find the most cost-effective instance for my current workload stats.
What is the AMI ID for a BitFlux-enabled instance I can use to start monitoring my workload?
Analyze my BitFlux instance stats and tell me if I am over-provisioned based on current AWS resource offerings.

Frequently Asked Questions

What are the key features of BitFlux MCP Server?

Analyzes data from BitFlux-enabled AWS EC2 instances to determine optimal instance types.. Compares real-time instance usage statistics with current AWS pricing and resource offerings.. Integrates with AWS APIs to fetch lists of user EC2 instances and pricing data.. Supports both evaluation-only daemons (bitfluxeval) and management daemons (bitfluxd).. Provides specific AMI IDs for launching BitFlux-optimized instances..

What can I use BitFlux MCP Server for?

Cloud cost optimization by identifying underutilized EC2 instances.. Workload right-sizing during migration or scaling phases on AWS.. Automated instance type recommendations based on actual performance telemetry.. Comparing existing on-premise or legacy EC2 performance against new AWS instance generations..

How do I install BitFlux MCP Server?

Install BitFlux MCP Server by running: uvx --from git+https://github.com/bitflux-ai/bitflux_mcp.git@v0.1.0 bitflux_mcp

What MCP clients work with BitFlux MCP Server?

BitFlux MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use BitFlux MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free