概要
This Model Context Protocol (MCP) server enables secure and optimized querying of clinical data within the Prontuário Eletrônico do Cidadão (PEC) database. Built with FastMCP, it exposes specialized tools for Large Language Models (LLMs) to interact with the PostgreSQL-based PEC data in a read-only fashion. The server facilitates anonymized searches for patients, analysis of health conditions, tracking of attendance histories, and generation of key health indicators, all while enforcing data security through anonymization, read-only access, and query limits.