Local-first access to Google Health API data from Fitbit and Pixel Watch: activity, sleep, heart rate and nutrition.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add google-health --env GOOGLE_HEALTH_CLIENT_SECRET='<GOOGLE_HEALTH_CLIENT_SECRET>' -- npx -y google-health-mcp-unofficial~/.codex/config.toml
[mcp_servers.google-health]
command = "npx"
args = ["-y", "google-health-mcp-unofficial"]
env = { GOOGLE_HEALTH_CLIENT_SECRET = "<GOOGLE_HEALTH_CLIENT_SECRET>" }
# codex mcp add google-health --env GOOGLE_HEALTH_CLIENT_SECRET='<GOOGLE_HEALTH_CLIENT_SECRET>' -- npx -y google-health-mcp-unofficial~/.cursor/mcp.json
{
"mcpServers": {
"google-health": {
"command": "npx",
"args": [
"-y",
"google-health-mcp-unofficial"
],
"env": {
"GOOGLE_HEALTH_CLIENT_SECRET": "<GOOGLE_HEALTH_CLIENT_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-health": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"google-health-mcp-unofficial"
],
"env": {
"GOOGLE_HEALTH_CLIENT_SECRET": "<GOOGLE_HEALTH_CLIENT_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-health": {
"command": "npx",
"args": [
"-y",
"google-health-mcp-unofficial"
],
"env": {
"GOOGLE_HEALTH_CLIENT_SECRET": "<GOOGLE_HEALTH_CLIENT_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-health": {
"command": "npx",
"args": [
"-y",
"google-health-mcp-unofficial"
],
"env": {
"GOOGLE_HEALTH_CLIENT_SECRET": "<GOOGLE_HEALTH_CLIENT_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-health": {
"command": "npx",
"args": [
"-y",
"google-health-mcp-unofficial"
],
"env": {
"GOOGLE_HEALTH_CLIENT_SECRET": "<GOOGLE_HEALTH_CLIENT_SECRET>"
}
}
}
}需要的环境变量
GOOGLE_HEALTH_CLIENT_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。