# Fairhaul Freight Margins

> Fairhaul Freight Margins is an open-source MCP server for logistics. MCP server that compares freight charged to customers against actual freight cost. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://fair-agents.com/fairhaul.html
- **Repository:** https://github.com/fpavia111-creator/fairhaul-agents/tree/HEAD/packages/fairhaul-freight-margins
- **MCP Registry name:** io.github.fpavia111-creator/fairhaul-freight-margins
- **Categories:** [logistics](https://ai-powered.com/categories/logistics)
- **Listing updated:** 2026-11-29

## About

Fairhaul Freight Margins is a Model Context Protocol server published on npm that reads freight cost data and sets it against what customers were charged. The result shows where freight eroded or improved margin on individual sales, so finance and operations teams can see the gap without rebuilding spreadsheets by hand.

An AI client connects to the server over stdio and calls its tools against the files available to it locally. No hosted account or environment variables are required to start the package, which makes it simple to add to a local assistant setup.

It suits shippers, distributors and ecommerce operators who want to know which orders, products or customers are carrying more freight cost than their pricing assumes.

## Features

- **Charged versus actual freight:** Lines up the freight billed to each customer against the freight cost the shipment actually incurred.
- **Margin impact per sale:** Shows how freight changed the margin on individual orders or shipments.
- **Local stdio transport:** Runs as a local process over stdio, so AI clients connect without a remote endpoint.
- **Simple npm install:** Distributed as the fairhaul-freight-margins npm package at version 0.1.0.

## Good for

- Finding which customers are priced below their true freight cost
- Reviewing margin erosion caused by shipping charges on specific orders
- Letting an AI assistant answer questions about freight profitability
- Checking whether shipping surcharges are being recovered from customers

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add fairhaul-freight-margins -- npx -y fairhaul-freight-margins
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add fairhaul-freight-margins -- npx -y fairhaul-freight-margins
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.fairhaul-freight-margins]
command = "npx"
args = ["-y", "fairhaul-freight-margins"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user fairhaul-freight-margins npx -- -y fairhaul-freight-margins

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "fairhaul-freight-margins": {
      "command": "npx",
      "args": [
        "-y",
        "fairhaul-freight-margins"
      ]
    }
  }
}
```

## FAQ

### How do I install Fairhaul Freight Margins?

It is published on npm as fairhaul-freight-margins, version 0.1.0, and runs with the stdio transport.

### Does Fairhaul Freight Margins need API keys or environment variables?

The registry entry lists no environment variables for the package.

### Is Fairhaul Freight Margins free?

Yes. Fairhaul Freight Margins is open source, so you can use and self-host it for free.

### How do I add Fairhaul Freight Margins to Claude Code?

Run this command in your terminal: claude mcp add fairhaul-freight-margins -- npx -y fairhaul-freight-margins

### What are the best alternatives to Fairhaul Freight Margins?

The closest alternatives to Fairhaul Freight Margins are Fairhaul Standard Freight Cost, Fairhaul Freight Allocation, Fairhaul Freight Claims, Fairhaul Contract Rerating and Fairhaul Freight Accruals.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Fairhaul Standard Freight Cost](https://ai-powered.com/mcp/fairhaul-standard-freight-cost): Fairhaul Standard Freight Cost is an MCP server for logistics.
- [Fairhaul Freight Allocation](https://ai-powered.com/mcp/fairhaul-freight-allocation): Fairhaul Freight Allocation is an MCP server for freight and logistics.
- [Fairhaul Freight Claims](https://ai-powered.com/mcp/fairhaul-freight-claims): Fairhaul Freight Claims is a paid MCP server for logistics.
- [Fairhaul Contract Rerating](https://ai-powered.com/mcp/fairhaul-contract-rerating): Fairhaul Contract Rerating is an MCP server for logistics.
- [Fairhaul Freight Accruals](https://ai-powered.com/mcp/fairhaul-freight-accruals): Fairhaul Freight Accruals is an MCP server for logistics.
- [Fairhaul Lane Spend](https://ai-powered.com/mcp/fairhaul-lane-spend): Fairhaul Lane Spend is an MCP server for freight and logistics.
- [Fairhaul Load Tracking](https://ai-powered.com/mcp/fairhaul-load-tracking): Fairhaul Load Tracking is a paid MCP server for freight and logistics.
- [Fairhaul EDI Files](https://ai-powered.com/mcp/fairhaul-edi-files): Fairhaul EDI Files is an MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/fairhaul-freight-margins
