🌍 Sustainable Spending Dashboard

by Rohit8y

248 downloads
Not rated
GitHub

About

AI Agents to support sustainable spending on Bunq using MCP servers

Details

Author
Rohit8y
Downloads
248
Categories
Other

- Classify spending into intuitive categories.
- Calculate total COβ‚‚ emissions and COβ‚‚ per € spent.
- Assign a sustainability zone (Green / Yellow / Red).
- Visualize insights in a modern dashboard.
- Transfer offset amounts to a Bunq green account.
- Display motivational messages like β€œyou planted 3 trees!”
- Show a gamified leaderboard comparing offset-to-spend ratios.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name 🌍 Sustainable Spending Dashboard
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, create a Python virtual environment, install dependencies from requirements.txt, and add a Bunq API key to a .env file. Then run streamlit run dashboard.py to launch the interactive dashboard.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\ud83c\udf0d sustainable spending dashboard": {
            "bunq-hackathon-agents-6.0": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "bunq-hackathon-agents-6.0": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

🌍 Sustainable Spending Dashboard

An AI-powered dashboard that analyzes your spending habits, estimates your carbon footprint, and encourages climate-friendly financial decisions β€” built with Streamlit, LLMs, and Bunq.

The Dashboard looks like this(cool right!)

Dashboard Screenshot
Dashboard Screenshot

---

πŸ’‘ What It Does

This dashboard connects financial data with climate awareness using the power of LLMs. It helps you:

- Understand where your money goes πŸ’Έ
- See how your spending impacts the planet 🌱
- Take climate action via automated COβ‚‚ offset transfers ♻️
- Compete (gently!) with others in a sustainability leaderboard πŸ†

---

🧠 Powered By

| Technology | Role |
|--------------------|--------------------------------|
| Streamlit | Dashboard UI & interactivity |
| pydantic_ai | Agent orchestration + LLM I/O |
| Gemini / OpenAI| Spending & COβ‚‚ reasoning |
| Bunq SDK | Carbon offset transfers |
| Pandas, Matplotlib | Data processing & charts |

---

πŸ“‚ Project Structure

.
β”œβ”€β”€ src/
|   |- dashboard.py # Streamlit dashboard
|   |- bunq_agents.py # Pydantic agents & logic
|   |- mcp_ # MCP servers
|   |- utils/wrapper.py  Bunq integration wrapper
β”œβ”€β”€ data/ 
β”‚ └── transactions.csv # Sample transactions
β”œβ”€β”€ requirements.txt
└── README.md

✨ Features

βœ… Classify spending into intuitive categories
βœ… Calculate total COβ‚‚ emissions and COβ‚‚ per € spent
βœ… Assign a sustainability zone (Green / Yellow / Red)
βœ… Visualize insights in a modern, intuitive dashboard
βœ… Transfer offset amounts to a Bunq green account πŸ’š
βœ… Display motivational messages like β€œyou planted 3 trees!” 🌳
βœ… See how you compare on a gamified leaderboard πŸ†

---

πŸ›  Setup Instructions

1. Clone the Repo

git clone https://github.com/your-username/bunq-hackathon-agents-6.0.git
cd bunq-hackathon-agents-6.0
2. Create a Virtual Environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
3. Install Requirements

pip install -r requirements.txt
4. Add a .env File Create a .env file in the root folder with:
BUNQ_API_KEY=your_bunq_api_key_here

5. πŸš€ Run the App

`` bash
streamlit run dashboard.py
``
---

🌟 Example Insights

🌿 You just offset 25 kg of COβ‚‚ β€” that’s like planting 1.2 trees!
πŸ’¬ Most of your spending goes to groceries and travel. Try biking more often to reduce your footprint.
🏦 You transferred €40 to your green account. Nice work!

---

πŸ† Leaderboard Logic

Users are ranked by their Offset Amount / Spend Ratio.
The current user is highlighted in light orange for visibility:

The higher the ratio, the better you're doing for the planet 🌎

---

βœ… Sustainability Zone Logic

🟒 Green: COβ‚‚ per € < 0.4 β†’ Excellent!

🟠 Yellow: 0.4 ≀ COβ‚‚ per € ≀ 0.6 β†’ Room to improve

πŸ”΄ Red: COβ‚‚ per € > 0.6 β†’ Consider more eco-friendly habits

Your zone is displayed as a dynamic badge in the app.

---

Created with πŸ’š during the Bunq Hackathon.
---

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.