Back to Home
Swissbit92 icon

MCP_Catalog

Verified Safe

by Swissbit92

Overview

A local AI companion server that provides conversational chat with multiple personas, enhanced by RAG (Retrieval-Augmented Generation) using web search and MongoDB data, and featuring advanced memory management and emotional state tracking.

Installation

Run Command
docker-compose up --build

Environment Variables

  • OLLAMA_BASE
  • PERSONA_MODEL
  • PERSONA_TEMPERATURE
  • MODEL_CONTEXT_WINDOW
  • OLLAMA_TEMP_REWRITE
  • OLLAMA_TEMP_SUMMARIZATION
  • OLLAMA_TEMP_FACT_EXTRACTION
  • BRAVE_API_KEY
  • BRAVE_MAX_RESULTS
  • BRAVE_SAFESEARCH
  • BRAVE_SEARCH_TIMEOUT
  • BRAVE_ENABLED_RARITIES
  • MONGODB_ENABLED
  • MONGODB_URI
  • MONGODB_TIMEOUT
  • MONGODB_MAX_RESPONSE_BYTES
  • MONGODB_ENABLED_RARITIES
  • MONGODB_CACHE_CURRENT_PRICE
  • MONGODB_CACHE_TECHNICAL
  • MONGODB_CACHE_HISTORICAL
  • MONGODB_CACHE_TRADING
  • MEMORY_EMBEDDING_MODEL
  • MEMORY_SUMMARIZATION_INTERVAL
  • MEMORY_FACT_EXTRACTION_INTERVAL
  • PERSONA_DIR
  • COORD_PORT
  • COORD_URL
  • COORDINATOR_DB_PATH
  • BRAVE_MCP_IMAGE
  • MONGODB_MCP_TRANSPORT

Security Notes

The system runs FastAPI with Ollama, Brave Search MCP (ephemeral Docker containers), and MongoDB MCP (long-running Docker container). Resource limits (memory, CPU, PIDs) are applied to spawned MCP containers, and MongoDB operations are explicitly restricted to read-only via a blacklist. CORS is configured for localhost, which is appropriate for development. CRITICAL NOTE: The `docker-compose.yml` mounts `/var/run/docker.sock` into the backend container, granting it root access to the Docker daemon. While this is a common pattern for local developer tools that manage other containers, it is a significant security risk in production or multi-tenant environments. The code attempts to mitigate risks by hardening spawned containers with limits and labels for orphan detection, but the underlying exposure of the Docker socket remains. For its stated 'local personal use' context, these mitigations are reasonable, but for broader deployment, this would need re-evaluation.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

AI ChatbotPersonaRAGOllamaConversational AI