fichapao-mcp-server
MCP server for managing bakery recipe technical sheets with Postgres. Enables AI agents to search, create, update, approve, and compare recipe versions through secure tools.
README
FichaPao MCP Server
Servidor MCP HTTP para o agente FichaPao AI controlar fichas tecnicas de panificadora com Postgres.
O objetivo deste app e oferecer ferramentas seguras para o agente, sem expor SQL livre.
Arquitetura
OpenWebUI
-> Agente FichaPao AI
-> MCP HTTP /mcp
-> fichapao-mcp-server
-> Postgres
Ferramentas MCP
search_recipe: busca ficha por nome.get_recipe: consulta ficha porrecipe_id,version_idou nome.create_recipe_draft: cria ficha em rascunho0.1.update_draft: atualiza versao em rascunho ou revisao.create_new_version: cria nova versao em rascunho.approve_version: aprova versao se nao houver pendencias bloqueantes.list_pending_items: lista pendencias.register_production_test: registra teste de producao.compare_versions: compara duas versoes.archive_recipe: arquiva ficha.get_database_stats: resumo da base.
Regras Implementadas
- Ficha nova sempre entra como
rascunho. - Versao inicial e
0.1. - Ficha aprovada nao pode ser editada diretamente.
- Alteracao em ficha aprovada deve virar nova versao em rascunho.
- Aprovacao bloqueia quando existem pendencias criticas.
- Primeira aprovacao de versao
0.xvira1.0. - O banco separa:
current_version_id: versao mais recente/em trabalho.active_version_id: versao aprovada em producao.
Rodar Local
cp .env.example .env
docker compose up --build
Health check:
curl http://localhost:3001/health
A rota raiz tambem responde com o mesmo health check:
curl http://localhost:3001/
Endpoint MCP:
http://localhost:3001/mcp
No docker-compose.yml, a porta local esta mapeada como 3001:3000 para evitar conflito com apps comuns que ja usam 3000.
Se MCP_API_KEY estiver preenchida, envie:
Authorization: Bearer sua-chave
Deploy No EasyPanel
Crie dois serviços:
- Postgres
- App Docker apontando para este repositório
Variáveis do App:
NODE_ENV=production
PORT=3000
DATABASE_URL=postgresql://usuario:senha@host:5432/fichapao
AUTO_MIGRATE=true
MCP_API_KEY=troque-por-uma-chave-forte
CORS_ORIGIN=*
Depois de publicar, valide:
https://seu-dominio/health
No OpenWebUI:
Admin Settings -> External Tools -> Add MCP Server
URL: https://seu-dominio/mcp
Auth: Bearer token com o valor de MCP_API_KEY
Banco De Dados
Migration principal:
migrations/001_init.sql
Tabelas:
recipesrecipe_versionspending_itemsproduction_testschange_history
Desenvolvimento
npm install
npm run typecheck
npm run build
npm run dev
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.