# Cftc Cot [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-cftc-cot  
**GitHub Stars:** 1  
**npm Downloads (last month):** 573  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cftc-cot

## Description
CFTC Commitment of Traders (COT) MCP.

## Tools
Capabilities this server exposes over MCP:

- **search_markets** — Find CFTC Commitment of Traders (COT) futures markets by name. Use this first to get the exact market_and_exchange_names and contract_code that latest_report and report_history require. Keyless. e.g. "crude oil", "gold", "E-MINI S&P", "bitcoin", "euro", "corn".
- **latest_report** — Most recent weekly COT positioning for one futures market. Pass the exact market_and_exchange_names from search_markets, e.g. "CRUDE OIL, LIGHT SWEET-WTI - NEW YORK MERCANTILE EXCHANGE" or "GOLD - COMMODITY EXCHANGE INC.". Returns open interest plus long/short/net for non-commercial (≈ speculators: managed money / large traders), commercial (≈ hedgers / producers), and non-reportable (small traders), with this week's changes. Keyless.
- **report_history** — Weekly net-position time series for one futures market (non-commercial net, commercial net, open interest), most recent first. Pass the exact market_and_exchange_names from search_markets. Useful for trend / sentiment shifts over time. Keyless.

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

```json
"mcpServers": {
  "cftc-cot": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-cftc-cot"],
    "env": {
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": "",
      "NODE_USE_ENV_PROXY": ""
    }
  }
}
```

**Requires environment variables:** `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS`, `NODE_USE_ENV_PROXY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Cftc Cot does

Cftc Cot exposes CFTC Commitment of Traders data as MCP tools for analyzing futures-market positioning. The service covers market lookup, the newest weekly report for a selected market, and historical weekly series. Results include positioning information for non-commercial traders, commercial traders, and non-reportable traders, along with open interest.

Non-commercial figures represent the category commonly associated with speculators, including managed money and other large traders. Commercial figures correspond broadly to hedgers and producers. These classifications help an agent compare participant groups rather than relying on a single aggregate sentiment measure.

## How it works

Market lookup should be the first step. `search_markets` accepts a name such as `crude oil`, `gold`, `E-MINI S&P`, `bitcoin`, `euro`, or `corn`, then returns the exact market and exchange name needed by the reporting tools, along with the contract code.

Pass that exact market identifier to `latest_report` to retrieve the most recent weekly data. The response includes open interest and long, short, and net positions for the three trader classifications, plus changes from the current week.

Use `report_history` with the same market identifier to receive a most-recent-first time series. Its series covers non-commercial net position, commercial net position, and open interest, making it suitable for reviewing positioning trends and shifts in market sentiment.

## Setup and configuration

A hosted MCP connection can use the Pipeworx endpoint:

```json
{
  "mcpServers": {
    "cftc-cot": {
      "url": "https://gateway.pipeworx.io/cftc-cot/mcp"
    }
  }
}
```

The package `@pipeworx/mcp-cftc-cot` provides a local stdio bridge. Configure an MCP client to start it with `npx`:

```json
{
  "mcpServers": {
    "cftc-cot": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-cftc-cot"]
    }
  }
}
```

The bridge forwards requests to the hosted gateway and therefore requires network access. A Pipeworx API key can be supplied through `PIPEWORX_API_KEY`. The gateway also exposes an HTTP tool interface for clients that do not support MCP, including direct POST requests to tool endpoints.

## Tools and capabilities

- `search_markets`: Find matching CFTC futures markets and obtain the identifiers required by the report tools.
- `latest_report`: Retrieve the latest weekly open-interest and trader-position breakdown for one market.
- `report_history`: Retrieve historical weekly net positions and open interest, ordered from newest to oldest.
- Anonymous access: Make initial calls without an account, subject to the gateway's daily limit.
- Gateway access: Use the scoped endpoint or the broader Pipeworx gateway, which can expose shared gateway tools in addition to the CFTC tools.

## Limitations and notes

The integration is unofficial and is not affiliated with, endorsed by, or published by the CFTC. Data is weekly rather than real time. Report calls require the exact `market_and_exchange_names` value returned by market search, so free-form market text should not be passed directly to those tools.

Anonymous use is limited to 50 calls per day. A free Pipeworx account raises the limit to 200 calls per day, and authenticated requests are metered through the gateway. The local npm bridge has no offline mode. Scoped gateway connections also list shared Pipeworx meta-tools by default at the hosted endpoint; setting `PIPEWORX_META_TOOLS=1` enables them for the local package as well.

_Full upstream README: https://allmcps.com/mcp/cftc-cot/readme_

