• METRICS
  • REGIME
  • DATA
  • HUMAN

How to calculate yield curve spreads with your agent

Connect your agent to the Yield Curve Analyzer to automate maturity spread math and market state classification.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I calculate yield curve spreads using AI?

Your agent uses the calculate_curve_metrics tool to pull treasury rates and compute the difference between specific maturities. It then classifies the curve shape into a market state. You'll get the exact spreads and the current regime.

The results you get

What your agent delivers

Your agent processes the raw treasury data into these specific outputs.

METRICS

Maturity spread values

Your agent computes the basis point difference between any two requested maturities. You get the precise numerical spreads for your analysis.

REGIME

Market state classification

Your agent identifies if the curve is currently inverted, flat, or steep. This tells you the current macro environment.

DATA

Structured yield data

The tool converts raw treasury inputs into organized metrics. You receive clean data ready for your models or reports.

HUMAN

Strategic decisions

Your agent provides the math and the classification. You decide how these spreads affect your specific trades or portfolio.

The workflow

What your agent does when the data arrives.

Your agent handles the math so you don't have to manually subtract rates.

  1. Fetch rates

    Your agent pulls the specific treasury rates for the maturities you want to compare.

    calculate_curve_metrics
  2. Calculate spreads

    Your agent subtracts the shorter-term rate from the longer-term rate to find the spread.

    calculate_curve_metrics
  3. Identify regime

    Your agent analyzes the spreads to determine if the curve is steep, flat, or inverted.

    calculate_curve_metrics
  4. Report findings

    Your agent presents the calculated spreads and the market state in your chat window.

    calculate_curve_metrics

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Yield Curve Analyzer tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Paste these into your chat to begin the analysis.

Starting points

Change the specific maturities, like 2y or 10y, to match the spreads you need.

Yield Curve Analyzer Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_AjsqOsc5jRzx0RH0876tL0i1pM5ptcWCxwcgJawy/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Yield Curve Analyzer capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "yield-curve-analyzer-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_AjsqOsc5jRzx0RH0876tL0i1pM5ptcWCxwcgJawy/mcp"
    }
  }
}
Copy into chat04
  • 01

    Calculate the 2s10s spread using the Yield Curve Analyzer.

  • 02

    What is the current market state based on the latest yield curve metrics?

  • 03

    Check the 5y10y spread and tell me if the curve is inverted.

  • 04

    Analyze the spread between the 3-month and 10-year treasury rates.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Yield Curve Analyzer once, then ask.

Connect the MCP to your client with one click. Your credentials stay encrypted, and you can start asking questions immediately.

Connect Yield Curve Analyzer to your agent

FAQ

How the analyzer behaves

  • 01

    Can your agent execute trades based on these spreads?

    No. Your agent only calculates metrics and classifies the curve state. It cannot interact with your brokerage.

  • 02

    Does your agent change the treasury data?

    No. The tool only reads and processes data to calculate spreads. It cannot modify any market data.

  • 03

    What maturities can I use?

    You can request spreads for any standard treasury maturities supported by the calculate_curve_metrics tool.

  • 04

    Can your agent provide investment advice?

    No. Your agent provides the math and the classification, but you must make all investment decisions.

  • 05

    Can I use this with Cursor or Claude?

    Yes, you can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

  • More questions about Yield Curve Analyzer? The Connector page answers them. See everything the Yield Curve Analyzer Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Yield Curve Analyzer to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Yield Curve Analyzer plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Yield Curve Analyzer to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.