Are you the author? Sign in to claim
mercadinho multi agent
A multi-agent AI system for Mercadinho Mercantes, a Brazilian retail chain. This system provides intelligent customer service through specialized AI agents that handle product inquiries, sales assistance, customer management, and store operations.
Mercadinho Mercantes is a Brazilian retail company with multiple locations. This AI assistant system enhances customer experience by providing product recommendations, promotional information, and appointment scheduling.
Clone the repository
git clone <repository-url>
cd mcp_mercadinho
Install dependencies
pip install -r requirements.txt
Set up environment variables
export OPENAI_API_KEY="your_openai_api_key_here"
Or create a .env file:
echo "OPENAI_API_KEY=your_openai_api_key_here" > .env
Database setup
loja_sistema.db SQLite database with the correct schema. If you do not have this file, please request the schema or a setup script from the project maintainer. (The setup script is not included in this repository.)Start the MCP server (in one terminal):
python server.py
(By default, runs with stdio transport for local development.)
Launch the Streamlit client (in another terminal):
streamlit run chat_multi_agent_client.py
Open your browser and navigate to the URL shown in the Streamlit output (typically http://localhost:8501)
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Streamlit UI │◄──►│ Multi-Agent │◄──►│ MCP Server │
│ (Frontend) │ │ System │ │ (Backend) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
▼
┌──────────────────┐
│ OpenAI GPT-4 │
│ (LLM Backend) │
└──────────────────┘
RecepcaoAssistente)VendasAssistente)ManutencaoSocioAssistente)| Tool | Description | Parameters |
|---|---|---|
get_produtos_disponiveis() | Retrieve available products | None |
get_lojas() | Get store locations and information | None |
get_categorias_produtos_promocao_por_loja(id_loja) | Get categories with promotions for a store | id_loja: int |
get_promocao_por_loja(id_loja) | Get product promotions for a store | id_loja: int |
get_info_cliente(cliente_id, nome) | Get customer information | cliente_id: int, nome: str |
reservar_pedido_com_desconto(id_loja, id_cliente, data_hora) | Reserve order with discount | id_loja: int, id_cliente: int, data_hora: str |
agenda_visita_para_compra(id_loja, data_hora) | Schedule store visit | id_loja: int, data_hora: str |
User: "What products do you have available?"
Agent: [Shows product catalog with prices and availability]
User: "I want to visit a store to see the PlayStation 5"
Agent: [Finds nearest store, checks promotions, schedules visit]
User: "My name is John Lennon, do I have any special discounts?"
Agent: [Verifies membership, applies special pricing]
OPENAI_API_KEY: Your OpenAI API key for GPT-4 access.env files for local developmentgit checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
Built with ❤️ for Mercadinho Mercantes
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows