🧠 MCP - Model Context Protocol
Projeto completo para uma aplicação conversacional com:
- ✅ FastAPI + JWT
- ✅ LLM local via Ollama (ex: Mistral)
- ✅ Contexto com memória vetorial (ChromaDB)
- ✅ Suporte a múltiplos usuários e sessões
- ✅ Resumo automático de histórico longo
- ✅ Sistema de plugins para executar ações reais
🚀 Como rodar
1. Clone o projeto e crie o ambiente
git clone <repo>
cd mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
2. Configure o .env
MODEL_NAME=mistral
VECTOR_DB_PATH=./chroma
DB_PATH=./mcp.db
CONTEXT_LIMIT=5
SUMMARY_TRIGGER=20
3. Inicie o Ollama
ollama run mistral
4. Suba o servidor
chmod +x start.sh
./start.sh
🛡️ Autenticação
POST /auth/register: Cria novo usuário
POST /auth/login: Retorna token JWT
Use o token JWT nas requisições para /mcp/chat.
🤖 Plugins
Para chamar um plugin:
{
"session_id": "sessao01",
"prompt": "plugin: {"name": "list_files", "args": {"path": "/etc"}}"
}
📁 Estrutura
app/
├── routes/ # Rotas da API
├── services/ # Lógica de negócio (MCP, plugins, memória)
├── db/ # Persistência (SQLite e vetorial)
├── models/ # Schemas Pydantic
├── plugins/ # Plugins executáveis pelo MCP
├── auth/ # Login, JWT, usuários
📬 Contato
Desenvolvido por [Everson 🧠].
Conversational Application Framework
224
Project Details
- eversonpereira/mcp
- Last Updated: 4/2/2025
Recomended MCP Servers
🧩
Stochastic Thinking Server
TEN Agent
TEN Agent is a conversational AI powered by TEN, integrating Gemini 2.0 Multimodal Live API, OpenAI Realtime API,...
RisuAI
Make your own story. Frontend for ai roleplaying.
🧩
JavaScript Executor
A basic JS VM as an MCP server
Eunomia MCP Server
🧩
Toolhouse MCP Server
File System Management Server
A comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with...
🧩
wizardee
Config files for my GitHub profile.
Sever MCP
servidor mcp
🧩
test
Remote MCP Server on Cloudflare Workers
🧩
CoinMarketCap Universal Server





