Provides web search functionality for retrieving news and relevant content about financial topics and investments.
Connects with LangGraph to create an intelligent ReAct agent that can access real-time financial data and maintain persistent conversation memory.
Integrates with OpenAI models through API keys to power the intelligent ReAct agent for financial data analysis.
Provides access to video tutorial content that accompanies the MCP server implementation.
Tutorial MCP + LangGraph
Este projeto demonstra como integrar o Model Context Protocol (MCP) com LangGraph para criar um agente ReAct inteligente que pode acessar dados financeiros em tempo real.
Objetivo
- Como criar um servidor MCP com ferramentas personalizadas
- Como conectar um agente LangGraph ao servidor MCP
- Como implementar memoria de conversacao persistente
- Como usar ferramentas de analise financeira via MCP
Pre-requisitos
- Python 3.13+
- Chaves de API do OpenAI e/ou Groq
- FastMCP
- LangGraph MCP Adapter
Instalacao
1. Instalar UV (Gerenciador de Pacotes Python)
Windows:
macOS/Linux:
2. Clonar e Configurar o Projeto
3. Configurar Chaves de API
Edite o arquivo .env
e adicione suas chaves:
Como Usar
1. Iniciar o Servidor MCP
Em um terminal:
O servidor estara disponivel em http://localhost:4200
2. Executar o Cliente (Agente)
Em outro terminal:
3. Interagir com o Agente
Agora voce pode fazer perguntas sobre financas:
Testando o MCP
Para testar a interface MCP diretamente:
Arquitetura
Ferramentas Disponiveis
O servidor MCP fornece estas ferramentas financeiras:
- Resumo de Acoes: Preco, volume e data
- Estimativas de Analistas: Precos-alvo
- Recomendacoes: Buy/Hold/Sell
- Dividendos: Historico de pagamentos
- Setor/Industria: Classificacao da empresa
- Demonstracoes Financeiras: Balanco, DRE, Fluxo de Caixa
- Pesquisa Web: Noticias e conteudo relevante
Video Tutorial
Este projeto foi criado para acompanhar o tutorial no YouTube. Assista ao video completo para entender todos os detalhes da implementacao:
Personalizacao
- Modelos: Altere entre OpenAI e Groq no
client_mcp.py
- Transporte: Configure HTTP ou stdio no
server_mcp.py
- Ferramentas: Adicione novas ferramentas MCP no servidor
- Prompts: Customize os prompts disponiveis
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that provides financial tools for retrieving real-time stock data, analyst recommendations, financial statements, and web search capabilities for a LangGraph-powered ReAct agent.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with Yahoo Finance to retrieve stock pricing, company information, and historical financial data through natural language queries.Last updated -912PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server providing tools for querying A-share stock market data, including historical prices, financial reports, market indices, and macroeconomic indicators.Last updated -28328PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server built with FastMCP that provides financial data tools for AI agents, enabling them to access and analyze stock market information from Yahoo Finance through natural language queries.Last updated -2Python
- -securityFlicense-qualityA custom Model Context Protocol server that provides real-time financial analysis tools including stock monitoring, portfolio management, market summaries, and automated price alerts with Telegram notifications.Last updated -Python