ofm-rebalancing-flow
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Rebalancing Flow — Public API Client, Agent Skills & Read-Only MCP Server
Public developer kit for Rebalancing Flow by OFM Capital (OFM Capital Partners, Sofia, Bulgaria · founded 2012 · LEI 2549009QAP6LUK11FL26), built by founder and portfolio manager Filip Madzharov, CAIA and the OFM Capital desk.
Rebalancing Flow tracks day-by-day reported holdings changes across 15 US-listed preferred-stock ETFs (PFF, PGX, FPE, PFFA, PFFD, PFXF, VRP, PGF, PFFV, SPFF, FPEI, PSK, PREF, PFFR, EPRF), exposing a free, read-only, no-API-key JSON API (https://rebalancingflow.ofmcapital.com/openapi.json).
Scope of this repository: This repository contains public client code, agent instructions (
AGENTS.md,CLAUDE.md,GEMINI.md,SKILL.md), a read-only MCP server wrapper, a Google Colab notebook, OpenAPI specs, and an OFM-derived summary sample CSV (tickers and OFM IDs only, no CUSIPs/ISINs). It does not contain private infrastructure, scrapers, or trading strategies.
5 Questions You Can Answer in 10 Seconds
Note on
User-Agent, compression & rate limits: Always send an identifyingUser-Agentheader (e.g.,OFM-RebalancingFlow-Client/1.0) andAccept-Encoding: gzip. DefaultPython-urllibuser-agents receive HTTP403(edge code1010) on HTML pages (/,/etfs/*,/instruments/*,/how-it-works), whereas JSON API endpoints (/api/desk/*) enforce burst throttling (429withRetry-After) and return503withRetry-Afterwhile a publication refreshes. The bundled Python client and MCP server handle gzip decompression andRetry-Afterbackoff automatically.
1. Which preferred-stock ETFs are tracked and what is their latest holdings date?
curl -sS -A "OFM-RebalancingFlow-Client/1.0" \
"https://rebalancingflow.ofmcapital.com/api/desk/meta" | jq '.etfs[] | {symbol, issuer, latest: .dates[0]}'2. What changed in PFF on the most recent holdings date?
curl -sS -A "OFM-RebalancingFlow-Client/1.0" \
"https://rebalancingflow.ofmcapital.com/api/desk/activity?etf=PFF&limit=10"3. Which preferred-stock ETFs currently hold a specific preferred stock (e.g. BAC series)?
curl -sS -A "OFM-RebalancingFlow-Client/1.0" \
"https://rebalancingflow.ofmcapital.com/api/desk/instruments?q=BAC&limit=10"4. What were the largest estimated flow-adjusted net increases and decreases over a period (example: Nov 2026)?
curl -sS --compressed -A "OFM-RebalancingFlow-Client/1.0" \
"https://rebalancingflow.ofmcapital.com/api/desk/period?start=2026-11-01&end=2026-11-27"(Period rankings report OFM's flow-adjusted choice estimates for exchange-listed securities separately from $1,000-par otc changes.)
5. What is today's cross-ETF daily brief across all 15 funds?
curl -sS -A "OFM-RebalancingFlow-Client/1.0" \
"https://rebalancingflow.ofmcapital.com/api/desk/brief"Related MCP server: pequod-mcp
Python Quickstart (Zero External Dependencies)
from examples.rebalancing_flow_client import RebalancingFlowClient
client = RebalancingFlowClient()
meta = client.meta()
print("Revision:", meta["revision"], "| Expected date:", meta["expected_date"])
brief = client.brief()
print("Latest cross-ETF brief day:", brief["day"], "| Funds compared:", brief["funds_compared"])
print("Brief cite:", client.brief_citation_url(brief["day"]))
pff = client.activity(etf="PFF", limit=5)
print("PFF day:", pff["day"], "| Decreases:", pff["decrease_count"], "| Increases:", pff["increase_count"])
print("Cite:", client.etf_citation_url("PFF", pff["day"])) # includes &tab=changesRun the built-in CLI demo:
python examples/rebalancing_flow_client.pyUse with AI Coding & Research Agents
Ecosystem | How to connect | File in this repo |
OpenAI Codex | Clone repo or copy skill into | |
Claude Code / Claude Desktop | Copy skill into | |
Google Antigravity & Gemini CLI |
| |
Any MCP Client | Run |
|
Read-Only MCP Server (Zero Dependencies)
This repository includes .mcp.json for project-local MCP discovery (configured with python for Windows/cross-platform portability; use python3 on macOS/Linux if python is not on your PATH) and replace /ABS/PATH/TO/ofmcapital-rebalancing-flow-public with your local clone path for global configs.
Claude Desktop / Cursor / Antigravity (JSON):
{
"mcpServers": {
"ofm-rebalancing-flow": {
"command": "python",
"args": ["/ABS/PATH/TO/ofmcapital-rebalancing-flow-public/mcp-server/ofm_rebalancing_flow_mcp.py"]
}
}
}OpenAI Codex (~/.codex/config.toml):
[mcp_servers.ofm-rebalancing-flow]
command = "python"
args = ["/ABS/PATH/TO/ofmcapital-rebalancing-flow-public/mcp-server/ofm_rebalancing_flow_mcp.py"]Tools exposed (100% read-only, User-Agent OFM-RebalancingFlow-MCP/1.1, strict public field allowlists — zero CUSIPs/ISINs/SEDOLs):
list_etfs— Lists all 15 tracked preferred-stock ETFs, issuers, latest dates, date verification, freshness status, and full publicationrevision.get_etf_changes— Daily reported holdings increases, decreases, additions, removals, andcoverage(on_selected_date,latest_available_date,prior_date,date_verification,freshness_status) with an explicitno_filing_on_requested_datewarning when no filing exists on the requested date.find_instrument— Search preferred stocks and baby bonds by ticker or issuer and inspect compact cross-ETF holdings (OFM IDs, vetted tickers, OpenFIGI where available).get_period_summary— Multi-day/monthlyflow_adjusted_choice_estimaterankings, separate$1,000-parotcsummary, investor flows, exits, and date-verification notes.get_daily_brief— Cross-ETF daily summary across all 15 preferred-stock ETFs (citing/?date=YYYY-MM-DD).
Every MCP tool response (including errors) embeds an explicit citation_url (/?date=... for daily briefs, /etfs/<SYM>?date=...&tab=changes for ETF changes) and methodology caveat.
Interactive Notebook & OFM-Derived Sample CSV
Jupyter / Google Colab Notebook:
notebooks/pff_vs_pgx_overlap.ipynb— ComparesPFFvsPGXholdings overlap on their latest common holdings date and lists top current-month flow-adjusted choice estimates using the live API with gzip andRetry-Afterhandling.OFM-Derived Sample CSV:
data/sample_derived_changes_2026_11.csv— Derived top November 2026 flow-adjusted choice estimates pinned to a recordeddataset_revision,compared_through_date,date_verification, andmetric_basisusing OFMinstrument_idand ticker labels only (zero third-party CUSIPs, ISINs, SEDOLs, or raw issuer holdings files).
Methodology, Licensing & Disclaimers
Holdings diffs, not trade records: A change in a holding is the difference between two published issuer holdings files, not proof of an executed market trade. Holdings also change from ETF share creations/redemptions, issuer redemptions/calls, corporate actions, or issuer file corrections.
Keep data-quality flags: Always preserve
date_basis,date_verification,date_notes,quantity_unit, andnull(which means unavailable, never zero) when quoting Rebalancing Flow data.Not investment advice: Published strictly for factual market-structure research. Nothing here or on Rebalancing Flow is investment advice, a recommendation, or an offer of any kind.
Licensing:
Client code, MCP server, notebook, and skills in this repository: MIT License (
LICENSE).OFM Capital's derived analysis, methodology text, and derived summary tables: CC BY 4.0 (
https://creativecommons.org/licenses/by/4.0/). Issuer raw holdings files belong to their respective fund issuers.
Citation:
OFM Capital, Rebalancing Flow, https://rebalancingflow.ofmcapital.com/(seeCITATION.cff).
About OFM Capital
OFM Capital (legal name OFM Capital Partners, LEI 2549009QAP6LUK11FL26) is an independent proprietary trading desk in Sofia, Bulgaria, trading US fixed income (preferred stocks, baby bonds, perpetuals, corporate bonds, Treasuries) and US equities (including CEFs, BDCs, and mREITs) exclusively with its own capital since 2012.
Website: ofmcapital.com
Research archive: ofmcapital.com/research/
Open-source TradingView indicators: ofmcapital.com/tools/
Open roles (Sofia or remote EU — zero trader fees): ofmcapital.com/careers/
Contact:
operations@ofmcapital.com
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
US ETF and mutual fund holdings, which ETFs hold a stock, overlap, look-through. Free, no API key.
Dated ETF, stock and calendar data, plus tax-loss, withholding and fee math on your holdings.
Performance, risk, comparisons, backtests and screening for US stocks, ETFs and closed-end funds.
Independent US ETF data for research agents: 33 tools, holdings to risk checks, each dated.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for portfolio rotation analysis. Score holdings and candidates across 5 dimensions, identify optimal swaps, validate with risk checks and backtests.11MIT
- AlicenseAqualityDmaintenanceMCP server providing complete US ETF holdings from SEC EDGAR N-PORT filings and identifier crosswalk tools (ticker, CUSIP, FIGI) for AI agents.5Apache 2.0

pairbook-mcpofficial
AlicenseAqualityAmaintenanceCorrelation, ETF holdings overlap, beta, volatility and diversifiers for 4,700+ US stocks and ETFs, any of 11.3M pairs. Free API, no key, read-only.6559 npm2MIT- AlicenseNot gradedqualityCmaintenanceEnables querying SEC Form N-PORT data to find which mutual funds and ETFs hold a given security, view a fund's reported portfolio positions, and check data coverage and scope.61 npmMIT