💾 FinancialAssistant

by nielsenfonseca

315 downloads
Not rated
GitHub

About

Financial MultiAgent Colaboration with MCP Server with Tools

Details

Author
nielsenfonseca
Downloads
315
Categories
Other

- Four specialized agents: Generic, Emergency Fund, Savings, and Investment.
- LLM-powered router detects user intent and directs to the correct agent.
- Conversational graph (LangGraph) maintains multi‑turn dialogue.
- External API tools calculate monthly expenses, ideal reserve, savings capacity, and investment suggestions.
- Google Gemini used as the underlying LLM (via langchain_google_genai).
- Empathetic, human‑friendly explanation of all financial calculations.

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 💾 FinancialAssistant
    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 3.10+ virtual environment, install dependencies with pip install -r requirements.txt, set the GOOGLE_API_KEY and MCP_SERVER_URL in a .env file, then run python main.py to start the assistant.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "\ud83d\udcb8 financialassistant": {
            "FinancialAssistant": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "FinancialAssistant": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

💾 FinancialAssistant

O FinancialAssistant Ă© um assistente financeiro inteligente que utiliza LLMs (Modelos de Linguagem) e uma arquitetura modular baseada em agentes para ajudar usuĂĄrios a:

- 📊 Calcular sua reserva de emergĂȘncia
- 💰 Avaliar sua capacidade de poupança
- 📈 Obter sugestĂ”es de investimento
- đŸ€ Conversar sobre educação financeira em geral

Ele integra ferramentas externas (APIs) para cålculos e simulaçÔes financeiras, e usa o LLM para explicar as respostas de forma humana, empåtica e personalizada.

---

🚀 Tecnologias utilizadas

- Python 3.10+
- LangGraph
- LangChain
- Google Gemini (via langchain_google_genai)
- Requests
- .env + dotenv

---

🧠 Arquitetura

O projeto Ă© composto por:

1. Agentes Especializados (pasta agents/)

Cada agente Ă© responsĂĄvel por um tipo de assistĂȘncia:

- GenericAgent → inicia conversas gerais e educacionais
- EmergencyFundAgent → ajuda a montar uma reserva de emergĂȘncia
- SavingsAgent → analisa sua capacidade de poupar mensalmente
- InvestmentAgent → sugere investimentos com base em seu perfil

Todos usam LLMs para explicar o resultado das ferramentas de forma clara e empĂĄtica.

2. Grafo conversacional (LangGraph)

- Um roteador com LLM detecta a intenção do usuĂĄrio e direciona para o agente certo - Cada agente pode manter o controle da conversa por mĂșltiplas mensagens, usando state["intencao_pendente"]

3. Ferramentas externas (API)

APIs externas realizam os cĂĄlculos de: - Gasto mĂ©dio mensal - Valor ideal de reserva de emergĂȘncia - Capacidade de poupança - SugestĂ”es de investimento

---

🛠 Como rodar o projeto localmente

```bash

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.