FoodCalorie MCP Server
中国食品营养数据MCP服务器 - 扫码查热量,健康饮食更轻松
🚀 快速开始
安装
pip install -e .
运行
foodcalorie-mcp
配置 Claude/Cursor
在 .claude/settings.json 或 cursorrules 中添加:
{
"mcpServers": {
"foodcalorie": {
"command": "python",
"args": ["-m", "foodcalorie_mcp.server"]
}
}
}
📖 可用工具
| 工具 | 描述 | 参数 |
|---|---|---|
search_food_by_barcode |
通过条形码查询食品营养数据 | barcode: string |
search_food_by_name |
通过名称关键词搜索食品 | keyword: string, limit: int |
get_daily_nutrition_summary |
计算每日营养摄入汇总 | items: list[dict] |
get_health_tip |
获取健康饮食建议 | food_name: string |
💡 使用示例
查询特定食品
用户: 查询条形码6901234567890的营养信息
AI: 调用 search_food_by_barcode(barcode="6901234567890")
计算每日摄入
用户: 我今天吃了可乐、牛奶和鸡胸肉,帮我计算总热量
AI: 调用 get_daily_nutrition_summary(items=[...])
🎯 商业化路线
Free Tier
- 基础食品数据库(500+ 商品)
- 条形码查询
- 名称搜索
Pro Tier (¥29/月)
- 实时价格数据(美团/京东)
- 饮食计划生成
- 健康报告导出
Enterprise (定制报价)
- API 访问
- 私有数据集
- 定制化服务
🏗️ 架构
FoodCalorie MCP Server
├── 核心工具层 (server.py)
├── 数据层 (SQLite/PostgreSQL)
├── 外部API (条形码查询、价格追踪)
└── 认证层 (License Key验证)
📦 发布到MCP Marketplace
- 注册 MCP Marketplace
- 上传包(支持Python SDK)
- 配置定价和许可密钥
- 发布并同步到 mcp.so、PulseMCP
🔧 开发
# 安装开发依赖
pip install -e ".[dev]"
# 运行测试
pytest tests/
# 代码格式化
ruff format src/
📄 许可证
Apache-2.0
🤝 贡献
欢迎 PR!请先 Fork 并创建特性分支。
📞 联系与支持
技术支持
- 付费咨询服务: ¥500-2000/小时(企业客户专享)
- 定制开发: ¥10,000-50,000/项目
- 企业培训: ¥1,000-2,000/人/天
- 联系邮箱: jihaochang1@github.com
赞助项目
如果这个项目对你有帮助,欢迎赞助支持:
- GitHub Sponsors 💝
- 或一次性捐赠: Buy Me a Coffee ☕
商业合作
- 企业定制部署: ¥20,000起
- 私有化部署: ¥50,000起
- 数据定制服务: 面议
让AI帮你吃得健康! 🥗
⭐ 如果觉得有用,请给个 Star!你的支持是我持续维护的动力
Metadata
Release files for foodcalorie-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| foodcalorie_mcp-0.1.0.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foodcalorie_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / foodcalorie_mcp-0.1.0.tar.gz
| Download URL | foodcalorie_mcp-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea8c5b3e8d22a5ae5d223dc66d1721b7c91424906ed82dfe2f2f84272f5122fc
|
|
BLAKE2b-256 checksum How to use checksums |
c281ef0a8fe018e8e03c2e3f71978aa4ce0a02b46a5743eee8f98de45da6a6ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / foodcalorie_mcp-0.1.0-py3-none-any.whl
| Download URL | foodcalorie_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f2e4eda87b495ca7b81cec648767a7f2fe768e85bf79a44942b1031cc2a615a
|
|
BLAKE2b-256 checksum How to use checksums |
79165b11f405c25644906cb96313977434af2869473f030e42992ab8af631788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for foodcalorie-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.