Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Dalio Sovereign Strength Index

FreeNot checked

A quantitative macroeconomic engine implementing Ray Dalio's Changing World Order frameworks with Python, FastAPI, Streamlit, and MCP interfaces.

GitHubEmbed

About

A quantitative macroeconomic engine implementing Ray Dalio's Changing World Order frameworks with Python, FastAPI, Streamlit, and MCP interfaces.

README

License: MIT CI Pipeline

An enterprise-grade quantitative macroeconomic simulation framework implementing the great empire lifecycle matrices from Ray Dalio's "Principles for Dealing with the Changing World Order" and the demographic workforce contraction variables from Peter Zeihan's models.

The core architecture is strictly decoupled, allowing independent ingestion data engines to feed a type-safe mathematical calculation matrix, exposed simultaneously across three presentation layers: a traditional FastAPI REST layer, a visual Streamlit web dashboard, and an advanced Model Context Protocol (MCP) server optimized for autonomous AI Agents.


🖥️ Streamlit Interface Dashboard Blueprint

Below is the layout specification mapping the dashboard interface (src/dalio_sovereign_strength_index/app_ui.py). It shows symmetric structural metrics panel views and side control sliders:

🎛️ Left Sidebar Controls 🇺🇸 United States State Matrix (Blue Banner) 🇨🇳 China State Matrix (Red Banner)
Timeline Focus
• Start Horizon Year (Slider)
• End Horizon Year (Slider)
Total Strength Index Score
• Dynamic Float Output Metric
Total Strength Index Score
• Dynamic Float Output Metric
🇺🇸 US Crisis Shocks
• US Debt Shock Addition (%)
• US Military Alteration (% GDP)
Calculated Lifecycle State
• Text Status: e.g., Stage 5 Overextension
Calculated Lifecycle State
• Text Status: e.g., Stage 4 Height of Excesses
🇨🇳 China Crisis Shocks
• China Debt Shock Addition (%)
• China Military Alteration (% GDP)
Telemetry Indicators Breakdown
• Debt to GDP Ratio (%)
• Military Budget (% GDP)
Telemetry Indicators Breakdown
• Debt to GDP Ratio (%)
• Military Budget (% GDP)
Relative Trajectory Trend Line Chart
• Blue Line: United States Trajectory
Relative Trajectory Trend Line Chart
• Red Line: China Trajectory

⚙️ System Performance and Diagnostic Operations Tabs

  • Tab 1: Superpower Macro Trends (Active View): Renders the active multi-variable pandas tracking data matrix table data directly on the screen layout.
  • Tab 2: MCP Server Automation Performance: Renders the historical JSON-RPC looping speeds data arrays line chart dynamically pulling from the local .csv metrics sheet.

🗂️ Core Domain Layout

├── .github/workflows/
│   └── ci_pipeline.yml         # GitHub Actions Node 24/Ubuntu Native validation track
├── docs/
│   ├── adr/                    # Architecture Decision Records logs (ADR 0001 - 0003)
│   └── macro_summary_report.txt# Auto-compiled analytics reporting text files
├── scripts/
│   ├── mcp_harness.py          # Isolated local AI simulation payload checker
│   └── mcp_bench_reporter.py   # High-speed JSON-RPC benchmark generator script
├── src/dalio_sovereign_strength_index/
│   ├── engines/                # Modular alternative data connector classes
│   │   ├── base_engine.py      # Abstract execution interface contract
│   │   ├── engine_worldbank.py # World Bank explicit sub-module ingestion pipeline
│   │   ├── engine_fred.py      # Sovereign leverage evaluation curves proxy
│   │   ├── engine_demographics.py # Peter Zeihan workforce contraction score model
│   │   └── engine_reserves.py   # Global central bank allocation metrics matrix
│   ├── engine.py               # Core quantitative logic & stage triggers
│   ├── pipeline.py             # Central multi-source data merge orchestrator
│   ├── app_fastapi.py          # REST API Microservice presentation tier
│   ├── app_mcp.py              # Model Context Protocol standard stream gateway
│   └── app_ui.py               # Visual analytics dashboard layout (Symmetric colors)
└── tests/
    ├── test_engine.py          # Normalization bounds verification tests
    └── test_chaos.py           # Defensive type-coercion validation suites

⚙️ Quickstart Operations Guide

1. Environment Assembly

Initialize an isolated virtual workspace environment and download dependencies natively:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest streamlit

2. Verify System Integrity

Execute the complete calculation and chaos-engineering test suites locally:

export PYTHONPATH=src
pytest tests

3. Launch the Presentations Channels

  • Run the Interactive Visual Frontend Dashboard:
    streamlit run src/dalio_sovereign_strength_index/app_ui.py
    
  • Activate local REST HTTP Web Services:
    uvicorn dalio_sovereign_strength_index.app_fastapi:app --reload --port 8000
    

🤝 Branch Strategy & Open Source Contributions

A strict, professional branch lifecycle model is operated to ensure high codebase quality. Please see CONTRIBUTING.md for full onboarding guidelines.

  • main: Houses the immutable, stable, production-ready release footprint.
  • develop: The central staging integration branch. All feature tasks merge here via Pull Requests (PRs) after clearing active unit test assertions.

🏛️ Scholastic Appendix: The Macro Reality of Dalio's Big Cycles

Reviewing standard historical timelines demonstrates that calculated lifecycle status bounds remain fixed across standard horizons (United States locked in Stage 5, China locked in Stage 4). This behavior is mathematically deliberate.

In Ray Dalio's historical framework, an empire's full "Big Cycle" transpires over 200 to 250 years. Short-term windows represent distinct frames at the tail-end of a multi-century regime.

  • The United States (Stage 5) represents an empire experiencing high financial leverage coupled with global strategic overextension. The engine locks the status here due to structural Debt-to-GDP parameters exceeding 115% combined with significant hard-power military commitments.
  • China (Stage 4) represents the ascendant competitor empire. Advancement has passed productivity rebuilding (Stage 3) into a phase of rapid infrastructure accumulation and leverage growth, positioning the asset firmly within the "Height of Excesses" parameters.

from github.com/sjamal/dalio-sovereign-strength-index

Installing Dalio Sovereign Strength Index

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/sjamal/dalio-sovereign-strength-index

FAQ

Is Dalio Sovereign Strength Index MCP free?

Yes, Dalio Sovereign Strength Index MCP is free — one-click install via Unyly at no cost.

Does Dalio Sovereign Strength Index need an API key?

No, Dalio Sovereign Strength Index runs without API keys or environment variables.

Is Dalio Sovereign Strength Index hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Dalio Sovereign Strength Index in Claude Desktop, Claude Code or Cursor?

Open Dalio Sovereign Strength Index on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

$5

Stripe

Payments, customers, subscriptions

Stripeby Stripe

malamutemayhem/unclick-agent-native-endpoints

110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n

malamutemayhemby malamutemayhem

whiteknightonhorse/APIbase

Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa

whiteknightonhorseby whiteknightonhorse

trackerfitness729-jpg/sitelauncher-mcp-server

Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr

trackerfitness729-jpgby trackerfitness729-jpg

embeddedlayers/mcp-analytics

Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources

embeddedlayersby embeddedlayers

carrierone/verilexdata-mcp

20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit

carrieroneby carrierone

tipdotmd/tip-md-x402-mcp-server

MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.

tipdotmdby tipdotmd

laundromatic/shopgraph

Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev

laundromaticby laundromatic

mrslbt/xendit-mcp

Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal

mrslbtby mrslbt

@arbitova/mcp-server

Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create

jiayuanliang0716-maxby jiayuanliang0716-max

Compare Dalio Sovereign Strength Index with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All finance MCPs