Token导航 LogoToken导航TokenDH.com
Cleanslate MCP logo
AI代理未说明官方级别未说明来源级核验

Cleanslate MCP

MCP Server

CleanSlate MCP服务器为AI助手提供无负担的营养追踪功能,支持食物记录、查看每日总摄入和管理条目。

工具数

5

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptClaudeAI代理Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Juxsta

提供方

Juxsta

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

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.

Features

  • Five core tools for food logging:

- log_food: Add food entries with calories and protein - get_today_log: View all entries for today - delete_food_entry: Remove entries - edit_food_entry: Update existing entries - get_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-mcp

Replace 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.js

Configuration

Getting Your API Key:

  1. Open your CleanSlate instance (e.g., https://cleanslate.jinocenc.io)
  2. Go to Settings
  3. Find "API Token" in the Information section
  4. Copy the token value

Finding Your Instance URL:

  • If you're using the hosted version: https://cleanslate.jinocenc.io/auth/graphql
  • If 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 format

Philosophy

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.

目录标签

目录标签

TypeScriptClaudeAI代理营养追踪本地部署AI助手健康管理无负担记录每日重置

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明api-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP