# Nyfed Markets [Health: Active]

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

## Description
New York Fed Markets Data APIs — markets.newyorkfed.org, keyless JSON, no

## Tools
Capabilities this server exposes over MCP:

- **nyfed_repo_operations** — NY Fed Desk repo and reverse repo (ON RRP) operation RESULTS — the actual auctions the Desk ran, not a daily rate aggregate. Each operation: total submitted/accepted USD, counterparty counts, award rate(s), breakdown by security type (Treasury/Agency/MBS/SRF). No start_date/end_date -> today's operation(s) only (empty on weekends/holidays). With start_date/end_date -> a date-range search. Use for "today's ON RRP usage", "reverse repo take-up this week vs last", "who's using the SRF". Different from fred_get_series('RRPONTSYD') which only has the daily accepted total, no per-operation detail.
- **nyfed_seclending_operations** — NY Fed Desk securities lending operation results — how much of the SOMA portfolio was lent out today (or in a date range), by operation (seclending = the daily program, extensions = extended-term lending). Returns total par amount submitted/accepted and, when cusips is given, per-security detail. Use for "how active is securities lending today", "was CUSIP X lent out this week".
- **nyfed_soma_holdings** — System Open Market Account (SOMA) portfolio — the Fed's own securities holdings from QE/reinvestment. view=summary (default) gives total by asset bucket (bills, notesbonds, mbs, agencies, tips) over time — the series to read for "SOMA runoff this month". view=treasury/agency with as_of_date gives the full CUSIP-level holdings snapshot for that date (holding_type narrows to bills/notesbonds/frn/tips for treasury, or agency_debts/mbs/cmbs for agency). Pass cusip alone to look up one security's full holdings history regardless of view. Publishes on a ~1-week lag (as_of_date defaults to the latest available, not today).
- **nyfed_reference_rates** — The Desk's own reference-rate publications: SOFR, SOFRAI (30/90/180-day compounded averages + index), EFFR (effective fed funds), OBFR (overnight bank funding), TGCR/BGCR (tri-party general collateral rates). rate_type=all (default) returns the latest value of every rate in one call; a specific rate_type with number>1 returns that rate's recent history including percentile bands and traded volume — detail fred_get_series('SOFR') etc. does not carry (FRED has only the single daily value, no percentiles/volume).
- **nyfed_primary_dealer_stats** — FR 2004 weekly primary dealer positioning/transaction survey (aggregate across all primary dealers). mode=list_series (default) browses the keyid catalog — pass keyid_filter (e.g. "treasury", "mbs", "agency") to find the codes you want. mode=latest returns the most recent weekly values for matching keyids. Data is reported for the current "series break" window automatically (definitions can change across windows; pass seriesbreak explicitly to pin one — see mode=list_series output for window ids).

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

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

## Documentation

## What Nyfed Markets does

Nyfed Markets exposes New York Fed Markets Data APIs to MCP-compatible clients. The data focuses on the Desk’s operational and portfolio records rather than duplicating simple daily rate series. It covers repo and reverse-repo auctions, securities lending, SOMA holdings, reference-rate publications, and FR 2004 primary-dealer survey statistics.

The repo tool returns operation results, including submitted and accepted dollar amounts, counterparty counts, award rates, and security-type breakdowns. Securities lending results show submitted and accepted par amounts for the daily and extended-term programs, with optional CUSIP detail. SOMA queries provide either asset-bucket summaries or CUSIP-level holdings. Reference-rate queries cover SOFR, SOFRAI, EFFR, OBFR, TGCR, and BGCR. Primary-dealer queries expose the series catalog or the latest values for selected series codes.

## How it works

The hosted MCP endpoint is `https://gateway.pipeworx.io/nyfed-markets/mcp`. A client can connect directly to that URL, while the full Pipeworx gateway is available at `https://gateway.pipeworx.io/mcp`. The pack endpoint also exposes shared Pipeworx meta-tools, including routing and discovery functions, in addition to the Nyfed Markets tools.

A local option is available through `@pipeworx/mcp-nyfed-markets`, launched with `npx`. The bridge forwards requests to the hosted gateway and requires network access; it does not provide an offline mode. Tool calls can also be sent over HTTP, such as POST requests to the gateway’s `/v1/tools/{tool_name}` paths.

## Setup and configuration

For a hosted connection, add the MCP URL to the client configuration:

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

For the local bridge, use:

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

Hosted access is keyless. The npm bridge permits anonymous use with a daily call cap; adding `PIPEWORX_API_KEY` raises the allowance after creating a Pipeworx account. Set `PIPEWORX_META_TOOLS=1` to list the gateway-wide meta-tools alongside this pack’s tools. When using an HTTPS proxy with Node, `NODE_USE_ENV_PROXY=1` may be needed for newer Node releases to honor proxy environment settings.

## Tools and capabilities

- `nyfed_repo_operations` searches repo and ON RRP operation results. Without dates, it targets the current day; date ranges return historical results. Same-day queries can distinguish repo, reverse repo, or both.
- `nyfed_seclending_operations` retrieves daily or extended-term securities lending results, with optional filtering by CUSIP and date range.
- `nyfed_soma_holdings` provides summary asset buckets, dated Treasury or agency CUSIP snapshots, and the holdings history for an individual CUSIP.
- `nyfed_reference_rates` returns the latest supported rates together or recent history for one rate, including percentile bands and traded volume where available.
- `nyfed_primary_dealer_stats` browses opaque FR 2004 series identifiers or returns the latest weekly values for matching identifiers.

## Limitations and notes

SOMA holdings are published with an approximately one-week delay, so the default date is the latest available publication rather than the current day. A full Treasury or agency snapshot can contain hundreds of CUSIPs; results are limited by the tool’s `limit` setting and report the total holdings count.

The New York Fed search endpoint has a server-side operation-type filter that does not reliably work, so the integration filters those results after retrieval. Primary-dealer definitions can change across series-break windows; the tool resolves the current window automatically unless a specific window is supplied. Reference rates for a given effective date are generally published on the next business day, although SOFR and SOFRAI may appear sooner.

The integration is an independent, unofficial connection to the New York Fed APIs. It is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/nyfed-markets/readme_

