# mileage log [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/theluckystrike/mcp-mileage-log  
**GitHub Stars:** 0  
**npm Downloads (last month):** 123  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mileage-log

## Description
Mileage log for deductible driving: trips, effective-dated rates, summaries and CSV export.

## Tools
Capabilities this server exposes over MCP:

- **trip_add** — Log one drive in the mileage log: the date, where from and to, the distance in miles or km, the purpose, and the category (business, medical, moving, charitable, personal). Returns its TR-YYYY-NNNN id. Free tier: 20 trips per calendar month, counted on the month of the trip date.
- **trip_list** — List trips in the mileage log, oldest first: date, from, to, distance, category, and the amount each earns under the rate in force on its day (or the plain reason it is unpriced). Filter by date range and category. Reads only.
- **trip_remove** — Remove one trip from the mileage log by its exact TR-YYYY-NNNN id, for entries made by mistake. The id is not reissued: a gap in the TR series is the record that a trip was removed.
- **rate_set** — Set what one mile or km is worth for one category in one jurisdiction from a date forward: the jurisdiction label, the category, the rate per unit, the currency, and the date it takes effect. Rates form a series per jurisdiction and category, and each trip earns the rate in force on the day it was driven. No rate ships with this server; the figures are yours to verify. Free tier: one rate per jurisdiction and category; the year-over-year series is Pro.
- **rate_list** — List every mileage rate on file, grouped by jurisdiction and category with the effective-from dates in order: the series each trip is priced from. Reads only.
- **mileage_summary** — The deductible mileage for a date range, per category: trips, distance kept per unit, the rate each trip earned (the one in force on its day), and the deductible amount, totalled per currency. Trips with no applicable rate are listed with the reason, not silently dropped. Defaults to the current calendar year. Never metered.
- **mileage_export** — The mileage log as CSV, one row per trip, oldest first: date, from, to, distance, unit, category, the rate applied (the one in force on the trip's day), the currency and the amount, plus purpose, jurisdiction, effective_from and id. The amount column is a bare number a spreadsheet reads. Refuses while any non-personal trip in the window is unpriced, so an accountant never receives a log with silent gaps. Pro.
- **license_status** — Report this server's licence state: product, tier free or pro, licence id, expiry, the key source and the upgrade URL. No arguments, no network. Explains a free-tier refusal; license_activate installs a key.
- **license_activate** — Activate a Pro key (MCPL1.xxx.yyy) from checkout: verified offline against a built-in public key, saved to your config file. A wrong, malformed or expired key is refused, unsaved. license_status reads it back.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mileage-log": {
    "command": "npx",
    "args": ["-y","@theluckystrike/mcp-mileage-log"]
  }
}
```

## Documentation

## What mileage log does

The mileage log MCP server keeps a structured record of driving for deductible-use calculations. Each trip can include its date, starting point, destination, distance, unit, purpose, and category. Trips receive identifiers such as `TR-YYYY-NNNN`, which can be used to remove incorrect entries later.

Categories can include business, medical, moving, charitable, or personal records. The server does not provide tax advice or include official rates. You enter the figures that apply to your jurisdiction and verify them independently.

The mileage log MCP server supports both miles and kilometers. It keeps those units separate in records and converts between them when a trip unit differs from the unit configured for its applicable rate.

## How it works

Rates are stored as dated entries rather than as one universal value. A rate belongs to a jurisdiction, category, unit, currency, and effective date. When a trip is listed or summarized, the server selects the rate that was active on the trip date. This allows trips from different years to use different rates automatically.

`trip_list` returns entries in oldest-first order and includes the rate and amount associated with each trip. Filters can restrict the result by date range or category. `mileage_summary` accepts a date range, defaulting to the current year, and reports distance, applied rates, and deductible amounts by category and currency.

Amounts are calculated per trip, rounded half-up to the cent, and then added to totals. Distance conversion uses the exact relationship of one mile to 1.609344 kilometers. Values in different currencies are not combined.

## Setup and configuration

Three supported setup paths are documented:

- Use the hosted streamable-HTTP endpoint with a bearer token or a token in the URL path.
- Install the downloadable `.mcpb` package for Claude Desktop.
- Clone the repository, run `npm install && npm run build`, and configure the generated `dist/index.js` as a Node MCP process.

The package is not published to npm, so an `npx -y @theluckystrike/mcp-mileage-log` installation currently fails. For local operation, data is stored under `${XDG_DATA_HOME:-~/.local/share}/mcp-servers/mileage-log/` in `trips.json`, `rates.json`, and `counter.json`. The local server has no account, API key, or network call; license keys are checked offline.

## Tools and capabilities

The mileage log MCP server exposes tools to:

- Add, list, and remove trips by exact identifier.
- Create and inspect effective-dated rates.
- Produce date-range summaries by category and currency.
- Export the log as CSV with trip, rate, and amount columns. CSV export requires Pro.
- Check license status and activate a license.

Free usage allows 20 trips per calendar month and one rate per jurisdiction and category, with overwrites remaining available. Pro removes the trip limit, supports unlimited rate series, and enables CSV export. Reading, listing, and summarizing existing records are not metered.

_Full upstream README: https://allmcps.com/mcp/mileage-log/readme_

