AF

andekqr/fitatu-mcp-unofficial

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 8 forks 품질 79 트렌드 38MIT

Fitatu 용 Unofficial Model Context Protocol 서버, 식품 검색 및 식사 계획 관리를위한 도구.

개요

Unofficial Model Context Protocol (MCP) 서버는 자체 Fitatu 계정에서 데이터를 액세스하고 업데이트합니다. 그것은 프로파일 데이터, 식사 계획, 영양 summaries, 식품 검색 및 stdio 또는 Streamable HTTP에 대한 요리 관리를위한 유형의 도구를 제공합니다. 이 프로젝트는 Fitatu에 의해 승인, 또는 후원되지 않습니다. 자신의 계정과 Fitatu 자격 증명 및 계정 데이터를 민감한대로 사용하십시오. - 프로필, 일 계획 및 영양 요약 쿼리. - 명시된 달력 날짜에 대한 최신 또는 날짜별 신체 측정 조회 및 부분 업데이트. - 음식과 조리법은 mutation 도구에 의해 필요한 식별자를 검색합니다. - 식사 품목 창조, 갱신, 보충, 운동 및 제거. - 레시피 생성, 검사, 업데이트 및 삭제. - 로컬 stdio 및 Streamable HTTP 클라이언트를 위한 MCP 수송. - 로컬 개발 및 Docker 워크플로우. - Node.js >=22.18.0 - npm - Fitatu 계정 Docker 및 ngrok은 선택 사항이며 해당 워크플로우에만 필요합니다.

개요(AI 번역)

Unofficial Model Context Protocol (MCP) 서버는 자체 Fitatu 계정에서 데이터를 액세스하고 업데이트합니다. 그것은 프로파일 데이터, 식사에 대한 Typed 도구를 제공합니다 계획, 영양 summaries, 식품 검색 및 stdio 또는 Streamable HTTP에 대한 요리 관리.

[! 중요] 이 프로젝트는 Fitatu에 의해 승인, 또는 후원하지 않습니다. 자신의 계정과 Fitatu 자격 증명 및 계정 데이터를 수집하여 민감한.

특징

  • 프로필, 일 계획 및 영양 요약 쿼리.
  • 명시된 달력 날짜에 대한 최신 또는 날짜별 신체 측정 조회 및 부분 업데이트.
  • 음식과 조리법은 mutation 도구에 의해 필요한 식별자를 검색합니다.
  • 식사 품목 창조, 갱신, 보충, 운동 및 제거.
  • 레시피 생성, 검사, 업데이트 및 삭제.
  • 로컬 stdio 및 Streamable HTTP 클라이언트를 위한 MCP 수송.
  • 로컬 개발 및 Docker 워크플로우.

요구 사항

  • 노드.js >=22.18.0
  • 시간
  • Fitatu 계정

Docker 및 ngrok은 선택 사항이며 해당 워크플로우에만 필요합니다.

빠른 시작

의존성을 설치하고 로컬 구성 파일을 만듭니다.

FITATU_EMAIL와 FITATU_PASSWORD]를 `에서 설정합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Fitatu MCP Unofficial

Unofficial Model Context Protocol (MCP) server for accessing and updating data in your own Fitatu account. It provides typed tools for profile data, meal plans, nutrition summaries, food search, and recipe management over stdio or Streamable HTTP.

[!IMPORTANT] This project is not affiliated with, endorsed by, or sponsored by Fitatu. Use it only with your own account and treat Fitatu credentials and account data as sensitive.

Features

  • Profile, day-plan, and nutrition summary queries.
  • Latest or date-specific body measurement lookup and partial updates for explicit calendar dates.
  • Food and recipe search with identifiers required by mutation tools.
  • Meal item creation, update, replacement, movement, and removal.
  • Recipe creation, inspection, update, and deletion.
  • MCP transports for local stdio and Streamable HTTP clients.
  • Local development and Docker workflows.

Requirements

  • Node.js >=22.18.0
  • npm
  • A Fitatu account

Docker and ngrok are optional and required only for their respective workflows.

Quick start

Install dependencies and create the local configuration file:

npm install
cp .env.example .env

Set FITATU_EMAIL and FITATU_PASSWORD in .env, then start the development server:

npm run dev:server

The default MCP endpoint is http://localhost:3000/mcp.

MCP client configuration

Choose one transport with MCP_TRANSPORT:

Transport Best for Process model
stdio A local client that launches its own MCP server One server process per client
http A persistent server shared by one or more clients Long-running server on /mcp

stdio

Build the server before configuring the client:

npm run build

Use absolute paths to the repository’s .env and dist/index.js files:

{
	"mcpServers": {
		"fitatu": {
			"command": "node",
			"args": [
				"--env-file=/absolute/path/to/fitatu-mcp-unofficial/.env",
				"/absolute/path/to/fitatu-mcp-unofficial/dist/index.js"
			],
			"env": {
				"MCP_TRANSPORT": "stdio"
			}
		}
	}
}

The client starts and stops the server. In stdio mode, logs are written to stderr because stdout is reserved for the JSON-RPC stream.

Streamable HTTP

Start the server with npm run dev:server, or build and run it with:

npm run build
npm start

Clients with native Streamable HTTP support can connect directly to:

http://localhost:3000/mcp

For a client that launches remote MCP connections through a command, use mcp-remote:

{
	"mcpServers": {
		"fitatu": {
			"command": "npx",
			"args": ["mcp-remote", "http://localhost:3000/mcp"]
		}
	}
}

To inspect the local server interactively:

npm run inspector

Connect the Inspector to http://localhost:3000/mcp.

Remote MCP access with ngrok

GitHub에서 전체 README 보기

설치

npx mcp-remote http://localhost:3000/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "fitatu": { "command": "node", "args": [ "--env-file=/absolute/path/to/fitatu-mcp-unofficial/.env", "/absolute/path/to/fitatu-mcp-unofficial/dist/index.js" ], "env": { "MCP_TRANSPORT": "stdio" } } } }