finance-portfolio-agent
MCP Finance Agent is a Model Context Protocol server designed for financial portfolio analysis and recommendation generation.
MCP Finance Agent
Model Context Protocol агент для анализа финансового портфеля и генерации рекомендаций.
Возможности
- Интеграция с Tinkoff Invest API
- Анализ портфеля и рисков
- Генерация рекомендаций по оптимизации портфеля
- Мониторинг рыночных данных
- Расчет метрик эффективности
Установка
- Убедитесь, что у вас установлен Python 3.11+
- Установите Poetry:
curl -sSL https://install.python-poetry.org | python3 -
- Клонируйте репозиторий:
git clone <repository-url>
cd mcp-finance-agent
- Установите зависимости:
poetry install
- Создайте файл .env на основе .env.example:
cp .env.example .env
- Настройте переменные окружения в .env
Разработка
- Активируйте виртуальное окружение:
poetry shell
- Установите pre-commit хуки:
pre-commit install
- Запустите тесты:
pytest
Использование
- Запустите агента:
poetry run python -m src.main
- 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
Related MCP Servers
View all finance servers →mcp-server
by financial-datasets
This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.
evm-mcp-server
by mcpdotdirect
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across multiple EVM-compatible networks.
razorpay-mcp-server
by razorpay
The Razorpay MCP Server is a Model Context Protocol server that integrates with Razorpay APIs for advanced payment processing.
investor-agent
by ferdousbhai
The investor-agent is a Model Context Protocol server designed to provide comprehensive financial insights and analysis to Large Language Models.
mcp-cn-a-stock
by elsejj
This is an MCP (Model Content Protocol) service providing A-share data for large models.
base-mcp
by base
A Model Context Protocol (MCP) server that provides onchain tools for AI applications like Claude Desktop and Cursor, allowing them to interact with the Base Network and Coinbase API.