5 min read
A macro desk in my pocket: building global-macro-mcp
What I'm building: an open-source connector that gives Claude yield curves, overnight fixings and central bank rates on my phone, designed to work alongside Interactive Brokers and FRED.
Many of us have great setups at our desks and inside our firms. Lately I’ve been working on a different question: how much of that can I get on my phone?
I use Claude on my phone a lot: walking to work, waiting for a coffee, or when a data print drops and I’m nowhere near a screen. For macro and rates questions it kept hitting the same wall. Where’s SOFR against the policy rate? How much has the curve steepened since the last FOMC? What did gilts do while I was on the Tube? These are simple questions, but the answers live in a dozen places, and a chat app can’t see any of them.
So I’m building a connector that lets it.
What it is
global-macro-mcp is a small, open-source connector for Claude. “MCP” stands for Model Context Protocol, the standard way to plug outside data and tools into Claude. In the Claude app these show up as connectors, and once one is added on the web it works on the phone too.
It gives Claude the rates data I reach for most, straight from the people who publish it:
- Overnight fixings: SOFR, EFFR, OBFR, BGCR and TGCR from the New York Fed, SONIA from the Bank of England, and EUR STR from the ECB.
- Policy rates: Bank Rate, plus the ECB deposit and main refinancing rates.
- Yield curves: US Treasury par and TIPS real yields, the gilt and SONIA OIS curves, and euro AAA yields, with the standard spreads (2s10s, 5s30s and so on) and “what moved since a given date”.
- Euro area inflation: HICP headline and core.
A few rules shape every design decision:
- Data comes straight from the publisher. Every number arrives with its source and the date it refers to, so you can check it.
- Answers fit on a phone screen. No 400-row tables in a chat.
- It only reads. There are no accounts and no sign-in, and it never places an order. It stores nothing about you.
- It doesn’t rebuild what already exists. That last rule turned out to matter most.
Three connectors, one answer
The most useful part isn’t the connector on its own. It’s what happens when you pair it with two connectors that already exist:
- 📈 Interactive Brokers’ official connector, so Claude can see my own positions and futures prices.
- 🏛️ FRED’s official connector from the St. Louis Fed, for US inflation, jobs, growth, breakevens and credit spreads.
Each one serves what it’s best at, and Claude combines them in one answer:
| Question | Who answers it |
|---|---|
| Curve shape, spreads, what moved since Wednesday | global-macro-mcp |
| SOFR, SONIA, EUR STR; Bank Rate and ECB rates | global-macro-mcp |
| US CPI, PCE, payrolls, breakevens, credit spreads | FRED |
| My positions, futures and option prices | Interactive Brokers |
I didn’t plan it that way at first. My early versions served FRED data themselves, and I spent a fair amount of time handling API keys. Then I found the St. Louis Fed already runs an official connector: you sign up once and there’s no key to copy. Using it beat every design I’d tried, so I deleted my FRED code. The same thinking applies to IBKR. Its connector already does accounts and prices well, so mine doesn’t touch them.
The result works like a small macro analyst in my pocket. I can ask:
“Pull my SR3 strip from IBKR, turn it into implied rates and compare it with SOFR today.”
Claude gets the futures from the broker and the SOFR fixing and the curve from my connector, then puts them together into one sourced answer, usually within seconds.
What I’ve learned so far
Claude is a quick analyst but a sloppy rates quant. In the first test on my phone with IBKR alongside, Claude did exactly what I asked and pulled the strip, the fixing and the curve. Then it compared every futures-implied rate with today’s SOFR. That mixes forward rates with spot. The number you actually want is the implied path, meeting by meeting. It also converted bill yields between day-count conventions by hand and called the result “approximate”. The lesson for me was that arithmetic I’d want to be exact shouldn’t be left to the model. It belongs in tested, deterministic tools, and those come next.
Publishers’ websites have quirks. The US Treasury’s site answered in about 0.3 seconds, unless the request’s identifying string included a contact web address, in which case it took 17 seconds every time. The ECB quietly moved euro area inflation to a new dataset, and the old codes simply stopped updating in December 2025. Nothing failed with an error; the series just went stale. Now I check that every series is up to date before each release.
One slow source shouldn’t freeze the rest. In an early version, a single source that stopped answering made a “what moved” question take over a minute. Now a source that times out is skipped for a couple of minutes, so one bad source costs one wait, and the answer explains what’s missing instead of hanging.
What’s next
- Rates calculators: turning a futures strip into a meeting-by-meeting path, carry and DV01, done properly so Claude doesn’t have to improvise.
- Positioning and supply: CFTC futures positioning and Treasury auctions.
- More central banks: the rest of the G7, so “what’s priced across the developed world” is one question.
The code is on GitHub at kevinramlal/global-macro-mcp. It isn’t ready for other people to set up yet; when it is, I’ll write that up here.
I’m building it for myself first. If you work in rates or macro, I’d love to hear what you would want Claude to answer from your phone.
Not investment advice. This is a personal project, not affiliated with or endorsed by my employer, Anthropic, Interactive Brokers, the Federal Reserve or any data provider. Data is the latest published by each source, not a live feed.