Nutrition and Training Tracker MCP
MCP server for tracking nutrition meals and workouts, integrating with claude.ai to manage food logs, macros, exercise catalogs, and generate daily/weekly summaries.
README
Tracker de Nutricao e Treino — Felipe
Servidor MCP TypeScript para acompanhamento alimentar e de treino via claude.ai.
Stack
- MCP Server: TypeScript +
@modelcontextprotocol/sdk - Banco: PostgreSQL no Railway
- Deploy: Railway (auto-deploy a partir do GitHub)
- Interface: claude.ai
Setup Railway
1. Criar o projeto
- Acesse railway.app e crie um novo projeto
- Em "Deploy from GitHub repo" selecione
felipemarcon-TTI/tracker-nutricao-mcp - Clique em "+ New" > "Database" > "Add PostgreSQL"
- O Railway cria a variavel
DATABASE_URLautomaticamente
2. Variáveis de ambiente
Apenas DATABASE_URL e PORT sao necessarias — ambas sao definidas automaticamente pelo Railway.
3. Inicializar o banco
Apos o primeiro deploy, use a tool inicializar_banco no claude.ai para criar as tabelas e popular o catalogo de exercicios.
Adicionar ao claude.ai
Apos o deploy, copie a URL do servico no Railway (ex: https://tracker-nutricao-mcp-production.up.railway.app) e adicione no mcp.json:
{
"mcpServers": {
"tracker-nutricao": {
"type": "sse",
"url": "https://<sua-url-railway>/sse"
}
}
}
Tools disponíveis (14)
| Tool | Descricao |
|---|---|
inicializar_banco |
Cria tabelas e popula exercicios (setup inicial) |
verificar_lembretes |
Verifica lembretes pendentes |
registrar_refeicao |
Registra refeicao com estimativa de macros/micros |
listar_refeicoes |
Lista refeicoes de um dia |
resumo_nutricional |
Totais do dia vs metas da nutricionista |
registrar_metricas_corporais |
Registra peso e cintura |
registrar_treino |
Registra sessao de treino completa |
listar_treinos |
Lista treinos de um periodo |
buscar_exercicios |
Busca no catalogo de exercicios |
progressao_exercicio |
Historico de carga e deteccao de plateau |
gerar_resumo_diario |
Gera daily_summary para uma data |
retrospectiva_semanal |
Analise semanal com medias e tendencias |
inserir_dados_historicos |
Insere refeicoes de 08/06/2026 (viagem Napoles) |
executar_sql |
SQL ad-hoc para analises e correcoes |
Metas do plano alimentar (Helena Ferretti S. Proenica, CRN 5545N)
| Macro | Meta diaria |
|---|---|
| Calorias | 2253 kcal |
| Proteina | 183.3 g |
| Carboidratos | 231.9 g |
| Gordura | 70.7 g |
Micronutrientes: Calcio 1145mg, Magnesio 218mg, Ferro 7.3mg, Potassio 3199mg, Vitamina C 39.9mg, Vitamina D 1.9mcg, Vitamina B12 1.8mcg, Zinco 6.6mg.
Estrutura do projeto
db/
schema.sql # 6 tabelas PostgreSQL
seed.sql # 70+ exercicios de musculacao
src/
db.ts # Conexao com banco
meals.ts # Refeicoes e estimativa de macros (~45 alimentos)
metrics.ts # Metricas corporais
workouts.ts # Treinos e exercicios
reports.ts # Resumos e retrospectiva
reminders.ts # Lembretes
server.ts # Servidor MCP (entry point)
<!-- redeploy: 2026-06-09 14:09 -->
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.