Enables direct queries to PostgreSQL databases for read-only operations on ContextVM data without generating DVM events
Exposes bridge metrics in Prometheus format for monitoring MCP-to-DVM translation requests, success rates, and errors
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ContextVM MCP Bridgecreate a payment for $1500 with concept 'Payroll' to beneficiary 'Juan Pérez'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ContextVM MCP Bridge
Expone servicios ContextVM (Event Sourcing + FSM + DDD) a LLMs mediante Model Context Protocol sobre Nostr.
🎯 ¿Qué hace este Bridge?
Este bridge actúa como traductor bidireccional entre:
MCP (Model Context Protocol): Protocolo estándar para que LLMs interactúen con servicios externos
ContextVM: Nuestra arquitectura de Event Sourcing + FSM + DDD
✨ Características
✅ No invasivo: Los ContextVMs existentes no se modifican
✅ Nostr como BUS: Un solo relay para MCP y DVM
✅ Bidireccional: Traduce peticiones y respuestas
✅ Configurable: Mapeos externos en JSON
✅ Observable: Logs detallados y métricas
✅ Production-ready: Docker, health checks, error handling
🚀 Quick Start
1. Instalación
2. Generar Keypair
3. Configurar Contextos
Editar config/contexts.json con los ContextVMs disponibles:
4. Ejecutar
📋 Uso para LLMs
Conectar desde Claude/GPT
🏗️ Arquitectura
🔧 Configuración Avanzada
Mapeo de Contextos
Ver docs/context-mapping.md para detalles sobre cómo mapear ContextVMs a MCP tools.
Queries sin Eventos
Para consultas de solo lectura, el bridge puede consultar directamente la API/PostgreSQL sin generar eventos DVM:
📊 Monitoring
Health Check
Métricas
El bridge expone métricas en formato Prometheus:
🧪 Testing
🐳 Docker
Build
Run
Docker Compose
📖 Documentación
🤝 Contribuir
Fork el repositorio
Crear feature branch (
git checkout -b feature/amazing-feature)Commit cambios (
git commit -m 'Add amazing feature')Push al branch (
git push origin feature/amazing-feature)Abrir Pull Request
📄 Licencia
MIT License - ver LICENSE
🔗 Links
ContextVM Docs: https://contextvm.org
MCP Protocol: https://modelcontextprotocol.io
Nostr Protocol: https://nostr.com
GitHub: https://github.com/your-org/contextvm-mcp-bridge
Última actualización: 23 de diciembre de 2025