CleanSlate MCP Server
Click on "Deploy 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., "@CleanSlate MCP Server log my lunch: turkey sandwich, 450 calories, 30g protein"
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.
CleanSlate MCP Server
MCP server for CleanSlate API - judgment-free nutrition tracking through AI assistants.
Overview
This MCP (Model Context Protocol) server enables AI assistants like Claude to interact with the CleanSlate API for nutrition tracking. It provides a conversational interface for logging food, viewing daily totals, and managing entries without the guilt and complexity of traditional diet apps.
Related MCP server: MyFitnessPal MCP Server
Features
Five core tools for food logging:
log_food: Add food entries with calories and proteinget_today_log: View all entries for todaydelete_food_entry: Remove entriesedit_food_entry: Update existing entriesget_today_summary: Get daily totals
Judgment-free error messages that maintain CleanSlate's anti-perfectionism philosophy
Today-only tracking with automatic daily reset
Type-safe TypeScript implementation
Installation
Quick Install (Recommended)
Install directly via npm and add to Claude Code in one command:
claude mcp add --transport stdio cleanslate \
--env CLEANSLATE_API_KEY=your_api_key_here \
--env CLEANSLATE_API_BASE_URL=https://your-instance.jinocenc.io/auth/graphql \
-- npx -y cleanslate-mcpReplace your_api_key_here with your CleanSlate API key (found in CleanSlate Settings > API Token) and your-instance.jinocenc.io with your CleanSlate instance URL.
Alternative: Install from Source
# Clone the repository
git clone https://github.com/Juxsta/cleanslate-mcp.git
cd cleanslate-mcp
# Install dependencies
pnpm install
# Build the project
pnpm build
# Add to Claude Code
claude mcp add --transport stdio cleanslate \
--env CLEANSLATE_API_KEY=your_api_key_here \
--env CLEANSLATE_API_BASE_URL=https://your-instance.jinocenc.io/auth/graphql \
-- node /path/to/cleanslate-mcp/dist/index.jsConfiguration
Getting Your API Key:
Open your CleanSlate instance (e.g., https://cleanslate.jinocenc.io)
Go to Settings
Find "API Token" in the Information section
Copy the token value
Finding Your Instance URL:
If you're using the hosted version:
https://cleanslate.jinocenc.io/auth/graphqlIf self-hosted:
https://your-domain.com/auth/graphql
Development
# Build the project
pnpm build
# Run tests
pnpm test
# Run with coverage
pnpm test:coverage
# Lint code
pnpm lint
# Format code
pnpm formatPhilosophy
This project aligns with CleanSlate's core values:
Anti-Perfectionism: Easy to fix mistakes, no historical guilt
Judgment-Free: Helpful error messages without blame
Simplicity: Only track calories and protein
Daily Reset: Focus on today, not the past
License
Apache 2.0 - See LICENSE file for details
Contributing
See CONTRIBUTING.md for contribution guidelines.
Available Tools
5 toolsdelete_food_entryB
Remove a food entry from today's log
Inputs: entryId (required).
edit_food_entryB
Update calories, protein, or name of an existing entry
Inputs: entryId (required), name, protein, calories.
get_today_logB
Retrieve all food entries logged today
Inputs: no named parameters.
get_today_summaryA
Get total calories and protein for today
Inputs: no named parameters.
log_foodA
Add a food entry to today's log with calories and protein
Inputs: name (required), protein (required), calories (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct action on the food log: read aggregate, read entries, create, update, delete. The only mild overlap is get_today_summary vs get_today_log, but the descriptions make the aggregate-vs-list distinction clear.
Names follow a mostly consistent verb_noun pattern (log_food, get_today_log, delete_food_entry, edit_food_entry). The minor deviation is 'log_food' omitting the 'entry' noun used by its siblings, but it remains readable and predictable.
Five tools is well-scoped for a simple daily food-tracking domain, with each tool earning its place. No redundant or filler tools.
The surface covers the full CRUD lifecycle for today's entries plus an aggregate summary, so core workflows have no dead ends. The notable gap is the inability to query or edit past days' logs, which limits the server to a same-day scope.
Maintenance
Related MCP Connectors
Log meals and read your nutrition diary from Claude or ChatGPT.
Calorie and protein log with honest ranges: log, edit, plan and review meals from any assistant.
Your Calori account in any AI assistant: nutrition targets, food logging, meal orders and deliveries
Calorie, workout and body-weight log inside ChatGPT and Claude. Log meals by text, photo or voice.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to read and log MyFitnessPal nutrition data, including tracking calories, macros, searching foods, and adding meals through natural conversation.7MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with MyFitnessPal data including food diary, exercises, body measurements, nutrition goals, and water intake through natural language.2073MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to record, correct, and query meal nutrition and nutrition goals, with durable and auditable data storage.MIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to log and edit meals, query a food journal, and retrieve calorie/macro/quality KPIs with server-side nutritional grading, plus manage staples and targets.1-