npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@trygordian/mcp-newyorkfed

v1.0.0

Published

Model Context Protocol server for New York Fed Markets Data APIs

Readme

New York Fed MCP Server

A Model Context Protocol (MCP) server for accessing Federal Reserve Bank of New York Markets Data APIs. This server provides standardized access to financial market data including reference rates, SOMA holdings, Treasury operations, and more.

Features

This MCP server provides access to the following New York Fed data:

📊 Reference Rates

  • All Reference Rates: SOFR, EFFR, OBFR, TGCR, BGCR in one request
  • Secured Rates: SOFR (Secured Overnight Financing Rate), TGCR, BGCR
  • Unsecured Rates: EFFR (Effective Federal Funds Rate), OBFR

🏦 System Open Market Account (SOMA) Holdings

  • Treasury securities holdings (Bills, Notes/Bonds, FRN, TIPS)
  • Agency securities holdings (Agency Debts, MBS, CMBS)
  • Holdings by date, CUSIP, or holding type
  • Summary data and historical information

💼 Market Operations

  • Treasury Operations: Purchases, sales, and prices paid
  • Repo Operations: Repo and reverse repo operations
  • Primary Dealer Statistics: Survey data and market share information

📈 Data Formats

All endpoints support multiple formats:

  • JSON (default)
  • XML
  • CSV
  • PDF
  • Excel (XLSX)

Installation

Option 1: Via NPM/NPX (Recommended)

The easiest way to use this server is via npx:

npx @trygordian/mcp-newyorkfed

Option 2: From Source

  1. Clone this repository:
git clone https://github.com/trygordian/mcp-newyorkfed.git
cd mcp-newyorkfed
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

As an MCP Server

The server implements the Model Context Protocol and can be used with any MCP-compatible client.

Configuration for MCP clients:

Using NPX (Recommended):

{
  "mcpServers": {
    "newyorkfed": {
      "command": "npx",
      "args": [
        "-y",
        "@trygordian/mcp-newyorkfed"
      ]
    }
  }
}

Using Local Installation:

{
  "mcpServers": {
    "newyorkfed": {
      "command": "node",
      "args": ["path/to/mcp-newyorkfed/build/index.js"]
    }
  }
}

Running the server directly:

# Via NPX
npx @trygordian/mcp-newyorkfed

# Via NPM (if installed globally)
npm install -g @trygordian/mcp-newyorkfed
mcp-newyorkfed

# From source
npm start
# or
node build/index.js

Available Tools

1. get_reference_rates_all

Get all reference rates for the latest date or search with filters.

Parameters:

  • operation: "latest" | "search"
  • format: "json" | "xml" | "csv" | "pdf" | "xlsx"
  • startDate: Start date for search (YYYY-MM-DD)
  • endDate: End date for search (YYYY-MM-DD)

Example:

{
  "operation": "latest",
  "format": "json"
}

2. get_secured_rates

Get secured reference rates (SOFR, TGCR, BGCR).

Parameters:

  • operation: "latest" | "last" | "search"
  • rateType: "sofr" | "tgcr" | "bgcr" (required for last/search)
  • number: Number of records (1-1000, for "last" operation)
  • format: Response format
  • startDate/endDate: Date range for search

Example:

{
  "operation": "last",
  "rateType": "sofr",
  "number": 30,
  "format": "json"
}

3. get_unsecured_rates

Get unsecured reference rates (EFFR, OBFR).

Parameters:

  • operation: "latest" | "last" | "search"
  • rateType: "effr" | "obfr" (required for last/search)
  • number: Number of records (1-1000, for "last" operation)
  • format: Response format
  • startDate/endDate: Date range for search

4. get_soma_holdings

Get System Open Market Account holdings data.

Parameters:

  • operation: "summary" | "latest_date" | "list_dates" | "treasury_by_date" | "agency_by_date" | "treasury_by_cusip" | "agency_by_cusip"
  • format: Response format
  • date: As-of date (YYYY-MM-DD, required for *_by_date operations)
  • cusip: CUSIP identifier (required for *_by_cusip operations)
  • holdingType: "bills" | "notesbonds" | "frn" | "tips" | "agency debts" | "mbs" | "cmbs"

Example:

{
  "operation": "treasury_by_date",
  "date": "2024-01-15",
  "holdingType": "bills",
  "format": "json"
}

5. get_treasury_operations

Get Treasury securities operations.

Parameters:

  • operation: "purchases" | "sales"
  • timeframe: "latest" | "lastTwoWeeks" | "last"
  • status: "all" | "completed" (required for latest)
  • include: "details" | "summary"
  • number: Number of operations (for "last" timeframe)
  • format: Response format
  • startDate/endDate: Date range

6. get_repo_operations

Get repo and reverse repo operations.

Parameters:

  • operationType: "repo" | "reverserepo"
  • method: "all" | "single-tranche" | "multiple-price"
  • timeframe: "latest" | "lastTwoWeeks" | "last" | "search"
  • status: "all" | "completed" (required for latest)
  • number: Number of operations (for "last" timeframe)
  • format: Response format
  • startDate/endDate: Date range for search

7. get_primary_dealer_statistics

Get Primary Dealer Statistics survey data.

Parameters:

  • operation: "latest_by_series" | "all_surveys" | "list_timeseries" | "list_dates" | "list_series_breaks" | "by_date" | "by_timeseries" | "by_series_and_timeseries"
  • seriesBreak: Series break identifier
  • date: As-of date (YYYY-MM-DD)
  • timeseries: Time series/key ID
  • format: Response format

8. get_market_share

Get Primary Dealer market share data.

Parameters:

  • period: "quarterly" | "ytd"
  • format: Response format

API Data Sources

This server provides access to data from the Federal Reserve Bank of New York's Markets Data APIs:

Legal Notice

Use of reference rates, the Markets Data APIs, and all data accessible through the Markets Data APIs is subject to the Terms of Use for the Federal Reserve Bank of New York website.

Reference rates are subject to important disclaimers, conditions, limitations, and indemnification obligations described in the Terms of Use.

Error Handling

The server provides comprehensive error handling:

  • Invalid parameters return detailed error messages
  • API failures include HTTP status codes and error descriptions
  • Missing required parameters are clearly identified

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Support

For issues related to:


Disclaimer: This is an unofficial implementation. The Federal Reserve Bank of New York is not responsible for this server or its functionality.