copamind-mcp

copamind-mcp

Enables interaction with the CopaMind platform via MCP, exposing read-only and write tools for querying match predictions, Monte Carlo simulations, team rankings, and RAG-based explanations, all while maintaining full traceability and reproducibility.

Category
Visit Server

README

CopaMind 2026 🧠⚽

CopaMind 2026

CI Python Ruff mypy License: MIT

Plataforma local e open source de inteligência esportiva: coleta dados de futebol, treina modelos preditivos locais, simula a Copa 2026 milhares de vezes e responde perguntas via chat com RAG, MCP e múltiplos LLMs locais executados em sequência — sempre com transparência e reprodutibilidade.

Aviso: projeto sem vínculo oficial com FIFA, seleções, federações ou organizadores. As probabilidades são experimentais e educacionais, não representam garantia de resultado e não incentivam apostas.


Recursos

  • 📊 Modelos preditivos: Elo, Poisson/Dixon-Coles, ensemble e calibração isotônica (Brier/Log-Loss/ECE)
  • 🎲 Simulação Monte Carlo do torneio (chances por fase e de título), reprodutível por seed
  • 🏆 Bolão de IAs Locais: preditores competem com palpites imutáveis e leaderboard (backtest anti-leakage)
  • 🔍 RAG com busca híbrida (vetorial + léxico) e proteção contra prompt injection
  • 🤖 Orquestração de LLMs locais (LM Studio/Ollama): analista → challenger → auditor → consenso + benchmark
  • 🔌 MCP (copamind-mcp): ferramentas read-only e de escrita para o agente/IDE
  • 🖥️ Dashboard bilíngue (EN/PT-BR) em Streamlit: ranking, previsões, bolão, calibração e chat
  • 🧾 Linhagem e reprodutibilidade em cada resultado (origem, snapshot, evidências)

Diferencial

Não é um chatbot que "chuta" o campeão. As probabilidades vêm de modelos de ML calibrados (Elo, Poisson, CatBoost, ensemble, Monte Carlo); os LLMs apenas interpretam, consultam e explicam. Cada resposta registra de onde veio o dado, qual modelo calculou, onde os modelos divergiram e qual snapshot foi usado.

Veja o plano completo em CopaMind_2026_MASTER_PLAN.md, o backlog em TASKS.md, as decisões em DECISIONS.md e o cronograma em ROADMAP.md.

Demonstração

Chances de título + caminho até o título (simulação Monte Carlo):

Dashboard — Chances de título

Bolão de IAs (leaderboard + curva de calibração):

Dashboard — Bolão de IAs

Arquitetura

Arquitetura do CopaMind 2026

Hardware recomendado

  • Windows 11 (também roda em Linux), Docker Desktop, VS Code
  • Python 3.12
  • GPU NVIDIA com 8 GB de VRAM (RTX 5070 Laptop) — evolução para servidor 24 GB já prevista (perfis de hardware)
  • 32 GB de RAM
  • LM Studio e/ou Ollama para os LLMs locais

Instalação

Windows (PowerShell)

git clone https://github.com/Phemassa/copamind-2026.git
cd copamind-2026
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[data,dev]"
Copy-Item .env.example .env

Linux / macOS (bash)

git clone https://github.com/Phemassa/copamind-2026.git
cd copamind-2026
python -m venv .venv
source .venv/bin/activate
pip install -e ".[data,dev]"
cp .env.example .env

Uso rápido

# Verificar o ambiente (Python, dependências, configs, serviços locais)
copamind doctor

# Subir o Qdrant (RAG) via Docker
docker compose -f docker/compose.yaml up -d

# Subir a API
copamind api serve
# health check:
curl http://127.0.0.1:8000/health

Dashboard

copamind ingest sample     # carrega o dataset de exemplo
pip install -e ".[ui]"      # instala Streamlit/Plotly
copamind ui serve          # abre o dashboard bilíngue (EN/PT-BR)

Desenvolvimento

pre-commit install     # hooks de qualidade
ruff check .           # lint
ruff format .          # formatação
mypy                   # tipos
pytest                 # testes + cobertura

Estado do projeto

Núcleo entregue (145 testes verdes): dados/ingestão (E1), user reports (E2), Elo + forma (E3a), Poisson/Dixon-Coles (E4), ensemble + calibração (E3b), simulação Monte Carlo (E4b), RAG (E5), MCP (E6), orquestração de LLMs + benchmark (E7), dashboard bilíngue + chat (E8a/E8b) e Bolão de IAs (E11). Veja TASKS.md e o ROADMAP.md.

Conteúdo para divulgação

copamind content ranking --locale pt-BR   # card de chances de título (Markdown)
copamind content match --home T-NTL --away T-SDR --locale en

Dados reais (OpenFootball)

# Baixe um worldcup.json de https://github.com/openfootball/worldcup.json
copamind ingest worldcup caminho/para/worldcup.json

Contribuição e segurança

Licença

MIT.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured