Github

Github

By dre1144 GitHub

-

finance portfolio-analysis
Overview

What is MCP Finance Agent?

MCP Finance Agent is a Model Context Protocol agent designed for analyzing financial portfolios and generating recommendations.

How to use MCP Finance Agent?

To use the MCP Finance Agent, follow the installation steps to set up the environment, and then run the agent to access the API for portfolio analysis.

Key features of MCP Finance Agent?

  • Integration with Tinkoff Invest API
  • Portfolio and risk analysis
  • Generation of recommendations for portfolio optimization
  • Monitoring of market data
  • Calculation of performance metrics

Use cases of MCP Finance Agent?

  1. Analyzing investment portfolios for risk assessment.
  2. Providing recommendations for optimizing asset allocation.
  3. Monitoring real-time market data for informed decision-making.

FAQ from MCP Finance Agent?

  • What programming language is required to run MCP Finance Agent?

Python 3.11 or higher is required.

  • How do I install the MCP Finance Agent?

Follow the installation instructions provided in the documentation, including setting up Poetry and cloning the repository.

  • Can I run tests on the MCP Finance Agent?

Yes! You can run tests using pytest as described in the documentation.

Content

MCP Finance Agent

Model Context Protocol агент для анализа финансового портфеля и генерации рекомендаций.

Возможности

  • Интеграция с Tinkoff Invest API
  • Анализ портфеля и рисков
  • Генерация рекомендаций по оптимизации портфеля
  • Мониторинг рыночных данных
  • Расчет метрик эффективности

Установка

  1. Убедитесь, что у вас установлен Python 3.11+
  2. Установите Poetry:
curl -sSL https://install.python-poetry.org | python3 -
  1. Клонируйте репозиторий:
git clone <repository-url>
cd mcp-finance-agent
  1. Установите зависимости:
poetry install
  1. Создайте файл .env на основе .env.example:
cp .env.example .env
  1. Настройте переменные окружения в .env

Разработка

  1. Активируйте виртуальное окружение:
poetry shell
  1. Установите pre-commit хуки:
pre-commit install
  1. Запустите тесты:
pytest

Использование

  1. Запустите агента:
poetry run python -m src.main
  1. API будет доступно по адресу: http://localhost:8000

Тестирование

# Запуск всех тестов с отчетом о покрытии
pytest

# Запуск конкретного теста
pytest tests/test_specific.py

# Запуск тестов с метками
pytest -m "not integration"

Структура проекта

mcp_finance_agent/
├── src/
│   ├── agent/            # Ядро MCP агента
│   ├── services/         # Внешние сервисы
│   └── models/          # Модели данных
├── tests/               # Тесты
└── docs/               # Документация

Лицензия

MIT

No tools information available.
MCP-FREDAPI
MCP-FREDAPI by Jaldekoa

FRED (Federal Reserve Economic Data) API integration with Model Context Protocol (MCP)

finance mcp
View Details
FastMCP-Finance
FastMCP-Finance by bharathgaddam1712

Built an MCP server for Yahoo Finance

finance mcp
View Details
FastMCP-Finance
FastMCP-Finance by bharathgaddam1712

Built an MCP server for Yahoo Finance

finance mcp
View Details

A Nasdaq Data Link MCP (Model Context Protocol) Server

finance data
View Details