{"_id":"@cyanheads/usda-mcp-server","_rev":"9-e3eca1ad77ec64220cba959d3c6a52d3","name":"@cyanheads/usda-mcp-server","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.3":{"name":"@cyanheads/usda-mcp-server","version":"0.1.3","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/usda-mcp-server#readme)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.3","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"ca3b7978e546dafdb970e851abcaac45a5330311","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.3.tgz","fileCount":68,"integrity":"sha512-fDJzgnCYplXTqg5GQg8XSOR59SfiXVFGgaEkyG7ZxukUsZ6+rf+uDuybnX/eE6aauJbMG5ieKjsF7uNrjvaSFA==","signatures":[{"sig":"MEUCIFbzOoZyP1qSXMfl63WBR30dlxCyQ7DqhJQmsGqwIcv5AiEAiPrmUlTTFhThGGkK0REo+w/x5wQGBc5y3/jE1ssL99M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247154},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"ca3b7978e546dafdb970e851abcaac45a5330311","engines":{"bun":">=1.3.0","node":">=24.0.0"},"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"vitest run","tree":"tsx scripts/tree.ts","build":"tsx scripts/build.ts","clean":"tsx scripts/clean.ts","start":"node dist/index.js","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb","format":"biome check --write --unsafe .","rebuild":"tsx scripts/clean.ts && tsx scripts/build.ts","devcheck":"tsx scripts/devcheck.ts","lint:mcp":"tsx scripts/lint-mcp.ts","start:http":"MCP_TRANSPORT_TYPE=http node dist/index.js","list-skills":"tsx scripts/list-skills.ts","start:stdio":"MCP_TRANSPORT_TYPE=stdio node dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","lint:packaging":"tsx scripts/lint-packaging.ts","changelog:build":"tsx scripts/build-changelog.ts","changelog:check":"tsx scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-fDJzgnCYplXTqg5GQg8XSOR59SfiXVFGgaEkyG7ZxukUsZ6+rf+uDuybnX/eE6aauJbMG5ieKjsF7uNrjvaSFA==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.9.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.2","devDependencies":{"tsx":"^4.19.0","ignore":"^7.0.5","vitest":"^4.1.0","depcheck":"^1.4.7","tsc-alias":"^1.8.16","typescript":"^5.9.3","@types/node":"^25.6.0","@biomejs/biome":"^2.4.7"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.3_1779673471637_0.27227401117715644","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@cyanheads/usda-mcp-server","version":"0.1.4","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/usda-mcp-server#readme)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.4","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"9cf59944a9e81dfd372ee6572cc80ad1549fa782","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.4.tgz","fileCount":69,"integrity":"sha512-dgAK6LzhUKoF/04yVUAFki6q8nwZoemF2OwHl7so0skNYR8vNCzpOlUbSsSXMLpymBJ2L4tD20n7RL4C4llq/A==","signatures":[{"sig":"MEUCIECwC3471eex2DOja+2HjwC1eNBNDloAllJDvjuUn1CNAiEAh9h1oMnTo0HSDR/a/nBE8gY9annBynsCiLMhnwPqvd4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248267},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"9cf59944a9e81dfd372ee6572cc80ad1549fa782","engines":{"bun":">=1.3.2","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb","format":"biome check --write --unsafe .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","lint:packaging":"bun run scripts/lint-packaging.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-dgAK6LzhUKoF/04yVUAFki6q8nwZoemF2OwHl7so0skNYR8vNCzpOlUbSsSXMLpymBJ2L4tD20n7RL4C4llq/A==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.9.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.2","devDependencies":{"ignore":"^7.0.5","vitest":"^4.1.0","depcheck":"^1.4.7","tsc-alias":"^1.8.16","typescript":"^5.9.3","@types/node":"^25.6.0","@biomejs/biome":"^2.4.7"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.4_1779674649405_0.5526189580150627","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@cyanheads/usda-mcp-server","version":"0.1.5","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/usda-mcp-server#readme)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.5","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"4e34d177422690550275261293ba46ad38531aa1","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.5.tgz","fileCount":70,"integrity":"sha512-sALjA9cVx89fszvbCNtf4bbC2pzAwRT+NbQb4uqaHbBSkLZvZ4FQ8XVlGGnOLJElwjFIYW8ho7mbX9ktrmCjjw==","signatures":[{"sig":"MEUCIGEssetKqdInx70kNla3Kl+kwelIlEBzCUr91vhp0dkyAiEAsNfl5zALTuHjzmogGI67cnUu0kKks0SMtNiypSu/48g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":251924},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"4e34d177422690550275261293ba46ad38531aa1","engines":{"bun":">=1.3.2","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-sALjA9cVx89fszvbCNtf4bbC2pzAwRT+NbQb4uqaHbBSkLZvZ4FQ8XVlGGnOLJElwjFIYW8ho7mbX9ktrmCjjw==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.10.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.2","devDependencies":{"ignore":"^7.0.5","vitest":"^4.1.8","depcheck":"^1.4.7","tsc-alias":"^1.8.17","typescript":"^6.0.3","@types/node":"^25.9.3","@biomejs/biome":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.5_1781326061342_0.15708714352967013","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@cyanheads/usda-mcp-server","version":"0.1.6","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/usda-mcp-server#readme)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.6","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"1db77c3a62f6035e18ba1f10904dbea7c7475419","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.6.tgz","fileCount":71,"integrity":"sha512-3X04gELnay+l+9txjjkgSWqNSIDvaELAK4PsTnUMvoIM30G06gaAqXxdUHNyTwNuuP7n2KTyxAnVEnjhVedf+w==","signatures":[{"sig":"MEYCIQCmGdXEATNEV81t4CfHfuYA7oEwye6mJ7fG6jRmZX8hQgIhAP57Uj9yfByCqOTNUYBC1hqpwF8vqcsD5aHdqOI0JeF9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252855},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"1db77c3a62f6035e18ba1f10904dbea7c7475419","engines":{"bun":">=1.3.2","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-3X04gELnay+l+9txjjkgSWqNSIDvaELAK4PsTnUMvoIM30G06gaAqXxdUHNyTwNuuP7n2KTyxAnVEnjhVedf+w==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.10.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.2","devDependencies":{"ignore":"^7.0.5","vitest":"^4.1.9","depcheck":"^1.4.7","tsc-alias":"^1.8.17","typescript":"^6.0.3","@types/node":"^26.0.0","@biomejs/biome":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.6_1781982268938_0.6502328381345053","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@cyanheads/usda-mcp-server","version":"0.1.7","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.7","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"0d6e5933d6842f73662aa829ed669fd131aa5771","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.7.tgz","fileCount":72,"integrity":"sha512-DqLTYQtEkJgoe1udU8bgTST5DhvE/ugeSdNeFolA+d4cD4LHySHZ8xNRXXNlDzu03ybnW7P/nKlRcxxnUoPImg==","signatures":[{"sig":"MEUCIGGP6TZdRPx3ry1ZWFOwat/n0ETLO2sIX9s4d7PH+h72AiEAxQLiGRQYGDd5G0WO/b10e8LM+QrE8aM1diFCu9rdRVM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267725},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"0d6e5933d6842f73662aa829ed669fd131aa5771","engines":{"bun":">=1.3.0","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","publish-mcp":"mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-DqLTYQtEkJgoe1udU8bgTST5DhvE/ugeSdNeFolA+d4cD4LHySHZ8xNRXXNlDzu03ybnW7P/nKlRcxxnUoPImg==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.11.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.14","devDependencies":{"ignore":"^7.0.6","vitest":"^4.1.10","depcheck":"^1.4.7","tsc-alias":"^1.9.1","typescript":"^7.0.2","@types/node":"^26.1.2","@biomejs/biome":"^2.5.6","@socketsecurity/bun-security-scanner":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.7_1786615133500_0.6478998658780821","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@cyanheads/usda-mcp-server","version":"0.1.8","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.8","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"4c37c10cf19562cd94155bbac11cfb1793e9c23c","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.8.tgz","fileCount":73,"integrity":"sha512-6LJlNZa3X89ZyhpUcGeYxzM3t9Id3+lrdMSpbluZUb4+VwEn4Rx/GohdFyzDbaMcbzl10HZyOMmiZWILBLIQpg==","signatures":[{"sig":"MEUCIQDI6V1Dty4Zg2A1U3g+xzfY/Fmh9Y9gE4FoXVpU/VFZBQIgZk5bCftZ6QgjupE0R7wr+onBPH4WiRxHn2kYsi/dx9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":269145},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"4c37c10cf19562cd94155bbac11cfb1793e9c23c","engines":{"bun":">=1.3.0","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","publish-mcp":"mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-6LJlNZa3X89ZyhpUcGeYxzM3t9Id3+lrdMSpbluZUb4+VwEn4Rx/GohdFyzDbaMcbzl10HZyOMmiZWILBLIQpg==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.11.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.14","devDependencies":{"ignore":"^7.0.6","vitest":"^4.1.10","depcheck":"^1.4.7","tsc-alias":"^1.9.1","typescript":"^7.0.2","@types/node":"^26.1.2","@biomejs/biome":"^2.5.6","@socketsecurity/bun-security-scanner":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.8_1786616319950_0.24281597651251752","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@cyanheads/usda-mcp-server","version":"0.1.9","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.9","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"dcf6722254dc59541d52c2050ab73d7c14c17a2f","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.9.tgz","fileCount":74,"integrity":"sha512-paQ8/pFSqJotoqXy/EwkfGlOfBRBZ8iJwTmPy6AOP9bnjgyN1zWrfra7ohYwvU4srevjVG2akcb1JBKFjoCyPA==","signatures":[{"sig":"MEUCIHiub+VH52MrzSlKE/x/al/z0d5vwW+TItIp+S9LoFMnAiEAjyegnPN9YVrZ4BEcAddPfe6TtNC3Wo7PmW18IIKuT08=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":271757},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"dcf6722254dc59541d52c2050ab73d7c14c17a2f","engines":{"bun":">=1.3.0","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","publish-mcp":"mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-paQ8/pFSqJotoqXy/EwkfGlOfBRBZ8iJwTmPy6AOP9bnjgyN1zWrfra7ohYwvU4srevjVG2akcb1JBKFjoCyPA==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"26.3.0","dependencies":{"zod":"^4.4.3","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.0","devDependencies":{"ignore":"^7.0.6","vitest":"^4.1.11","depcheck":"^1.4.7","tsc-alias":"^1.9.2","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"^2.5.10","@socketsecurity/bun-security-scanner":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.9_1787645868299_0.6593447471298342","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@cyanheads/usda-mcp-server","version":"0.1.10","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","license":"Apache-2.0","_id":"@cyanheads/usda-mcp-server@0.1.10","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"bin":{"usda-mcp-server":"dist/index.js"},"dist":{"shasum":"3981d365e4f0bc9b47515fab5584332dba6b57dc","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.10.tgz","fileCount":75,"integrity":"sha512-UlxiWnIugc95JJdQHUu5WxLXhv5HgjePLGqd4UqGK5TbKfG+glEFBSBLnrrCqgIC+YAfpCfsKlGDcWQlM8hWEA==","signatures":[{"sig":"MEYCIQCGnv1X48WghxjvWQol8/53ihzWPXz3tHTn3ABBC0TVxwIhAO7WxNfvAnnDT+AxOCObkK4sPDjkQ6pxytTziJPZoBeS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC5hxAMpj2QQxWHY2iuykbh7tqeCd03VE4kS1waXlAHmgIhAIfkgZoRrc3iwCQdpBUW/NVQDFYRuD8EEgwmCQ62YLsZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":284071},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"3981d365e4f0bc9b47515fab5584332dba6b57dc","engines":{"bun":">=1.4.0","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","audit:fix":"bun audit fix","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","publish-mcp":"mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"_integrity":"sha512-UlxiWnIugc95JJdQHUu5WxLXhv5HgjePLGqd4UqGK5TbKfG+glEFBSBLnrrCqgIC+YAfpCfsKlGDcWQlM8hWEA==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"_nodeVersion":"26.3.0","dependencies":{"zod":"^4.6.4","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.13.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.0","devDependencies":{"ignore":"^7.0.9","vitest":"^5.0.0","depcheck":"^1.4.7","tsc-alias":"^1.9.5","typescript":"^7.0.2","@types/node":"^26.2.0","@biomejs/biome":"^2.5.13","@socketsecurity/bun-security-scanner":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/usda-mcp-server_0.1.10_1789556538949_0.282562940864427","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"_id":"@cyanheads/usda-mcp-server@0.1.11","bin":{"usda-mcp-server":"dist/index.js"},"bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"dist":{"shasum":"14861632abe5f3a0fb2ea0ff9618a1308976b34e","tarball":"https://registry.npmjs.org/@cyanheads/usda-mcp-server/-/usda-mcp-server-0.1.11.tgz","fileCount":76,"integrity":"sha512-udVydNY8opQClyRJ4ysiEEmqIygE8hOCqD6MrwzqaeEtLvxj/pYo1ctpiKxxW0WTCzTNozTKeWG/CATk++Pa+A==","signatures":[{"sig":"MEQCIEHH3+VwLPBXWDJ7Lg32N38RxWpD/yPXRQLOIfTsLWnEAiA+GWFTqc5jcMXQjNEz9AvNoQ1a7Bscrh4LurfwXr+dPQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbMqiHHIvkZE0eHbtFheo8X0afpaPg3vstpgev1YR9HwIgMqz3G249n3GavvkHZqAFzBjZxSJJrk588WMcJliBuvU="}],"unpackedSize":291100},"main":"dist/index.js","name":"@cyanheads/usda-mcp-server","type":"module","types":"dist/index.d.ts","author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","shasum":"14861632abe5f3a0fb2ea0ff9618a1308976b34e","engines":{"bun":">=1.4.0","node":">=24.0.0"},"funding":[{"url":"https://github.com/sponsors/cyanheads","type":"github"},{"url":"https://www.buymeacoffee.com/cyanheads","type":"buy_me_a_coffee"}],"license":"Apache-2.0","mcpName":"io.github.cyanheads/usda-mcp-server","scripts":{"test":"bunx vitest run","tree":"bun run scripts/tree.ts","build":"bun run scripts/build.ts","clean":"bun run scripts/clean.ts","bundle":"bun run build && npx -y @anthropic-ai/mcpb pack . dist/usda-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/usda-mcp-server.mcpb","format":"biome check --write .","rebuild":"bun run scripts/clean.ts && bun run build","devcheck":"bun run scripts/devcheck.ts","lint:mcp":"bun run scripts/lint-mcp.ts","test:all":"bun run test","audit:fix":"bun audit fix","start:http":"MCP_TRANSPORT_TYPE=http bun ./dist/index.js","list-skills":"bun run scripts/list-skills.ts","publish-mcp":"mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish","start:stdio":"MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js","audit:refresh":"rm -f bun.lock && bun install && bun audit","format:unsafe":"biome check --write --unsafe .","lint:packaging":"bun run scripts/lint-packaging.ts","release:github":"bun run scripts/release-github.ts","changelog:build":"bun run scripts/build-changelog.ts","changelog:check":"bun run scripts/build-changelog.ts --check"},"version":"0.1.11","_npmUser":{"name":"cyanheads","email":"casey@caseyjhand.com"},"homepage":"https://github.com/cyanheads/usda-mcp-server#readme","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"_integrity":"sha512-udVydNY8opQClyRJ4ysiEEmqIygE8hOCqD6MrwzqaeEtLvxj/pYo1ctpiKxxW0WTCzTNozTKeWG/CATk++Pa+A==","repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"_npmVersion":"10.8.3","description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","directories":{},"maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"_nodeVersion":"26.3.0","dependencies":{"zod":"^4.6.5","pino-pretty":"^13.1.3","@cyanheads/mcp-ts-core":"^0.13.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.0","devDependencies":{"ignore":"^7.0.9","vitest":"^5.0.1","depcheck":"^1.4.7","tsc-alias":"^1.9.5","typescript":"^7.0.2","@types/node":"^26.6.2","@biomejs/biome":"^2.5.14","@socketsecurity/bun-security-scanner":"^1.1.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/usda-mcp-server_0.1.11_1790053935608_0.8230589874818406"}}},"time":{"created":"2026-05-25T01:44:31.482Z","modified":"2026-09-22T05:12:15.840Z","0.1.3":"2026-05-25T01:44:31.913Z","0.1.4":"2026-05-25T02:04:09.545Z","0.1.5":"2026-06-13T04:47:41.477Z","0.1.6":"2026-06-20T19:04:29.128Z","0.1.7":"2026-08-13T09:58:53.644Z","0.1.8":"2026-08-13T10:18:40.095Z","0.1.9":"2026-08-25T08:17:48.438Z","0.1.10":"2026-09-16T11:02:19.037Z","0.1.11":"2026-09-22T05:12:15.695Z"},"bugs":{"url":"https://github.com/cyanheads/usda-mcp-server/issues"},"author":"Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)","license":"Apache-2.0","homepage":"https://github.com/cyanheads/usda-mcp-server#readme","keywords":["mcp","mcp-server","model-context-protocol","usda","fdc","fooddata-central","nutrition","food","nutrients","typescript","bun","stdio","streamable-http"],"repository":{"url":"git+https://github.com/cyanheads/usda-mcp-server.git","type":"git"},"description":"Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.","maintainers":[{"name":"cyanheads","email":"casey@caseyjhand.com"}],"readme":"<div align=\"center\">\n  <h1>@cyanheads/usda-mcp-server</h1>\n  <p><b>Search foods, compare nutrients, and look up the full USDA FoodData Central database via MCP. STDIO or Streamable HTTP.</b>\n  <div>5 Tools • 2 Resources</div>\n  </p>\n</div>\n\n<div align=\"center\">\n\n[![Version](https://img.shields.io/badge/Version-0.1.11-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/usda-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/usda-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/usda-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)\n\n</div>\n\n<div align=\"center\">\n\n[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/usda-mcp-server/releases/latest/download/usda-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=usda-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvdXNkYS1tY3Atc2VydmVyIl0sImVudiI6eyJVU0RBX0ZEQ19BUElfS0VZIjoieW91ci1hcGkta2V5In19) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22usda-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fusda-mcp-server%22%5D%2C%22env%22%3A%7B%22USDA_FDC_API_KEY%22%3A%22your-api-key%22%7D%7D)\n\n[![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)\n\n</div>\n\n<div align=\"center\">\n\n**Public Hosted Server:** [https://usda.caseyjhand.com/mcp](https://usda.caseyjhand.com/mcp)\n\n</div>\n\n---\n\n## Overview\n\nUSDA FoodData Central — the US government's authoritative food composition database, spanning roughly 400,000 foods across SR Legacy, Foundation, Survey (FNDDS), and Branded sources. Search foods by keyword or UPC, pull full nutrient profiles with portion scaling, and compare foods side by side from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.\n\n### Tools\n\n| Tool | Description |\n|:---|:---|\n| `usda_search_foods` | Search foods by keyword, ingredient, or UPC/GTIN across SR Legacy, Foundation, Survey (FNDDS), and Branded data sources |\n| `usda_get_food` | Full nutrient profile for one food by FDC ID, with optional per-portion scaling |\n| `usda_get_foods` | Batch nutrient fetch for 2–20 FDC IDs in a single request |\n| `usda_compare_foods` | Side-by-side nutrient comparison for 2–5 foods, formatted as a markdown table |\n| `usda_list_nutrients` | Static FDC nutrient reference table (~150 nutrients) with IDs, names, units, and categories |\n\n### Resources\n\n| Resource | Description |\n|:---|:---|\n| `usda://food/{fdcId}` | Full nutrient profile for a specific food by FDC ID |\n| `usda://nutrients` | Complete FDC nutrient reference list |\n\nAll resource data is also reachable via tools. Use `usda_search_foods` to discover FDC IDs before reading food resources.\n\n## Capability reference\n\n### `usda_search_foods` <sub>tool</sub>\n\n- Query by keyword, ingredient name, or UPC/GTIN code; optional `dataType[]` filter across SR Legacy, Foundation, Survey (FNDDS), and Branded, defaulting to `[\"SR Legacy\"]` (or `[\"Branded\"]` once `brandOwner` is set)\n- `brandOwner` and `foodCategory` filters narrow results; `pageSize` (max 50, default 10) and `pageNumber` paginate\n- Returns FDC IDs plus a preview of key nutrients (energy, protein, fat, carbs) — not a complete profile\n- Typed errors: `query_empty` (blank query), `no_results` (nothing matched in the requested data sources)\n\n---\n\n### `usda_get_food` <sub>tool</sub>\n\n- Full nutrient profile for one `fdcId`; optional `nutrients[]` filter to specific IDs\n- Optional `quantity` + `unit` (`g` / `oz` / `lb` / `kg` / `serving`) scales every value from the FDC per-100g basis; `unit=\"serving\"` uses the food's first defined portion weight\n- Returns `allPortions[]` alongside the scaled result\n- Typed errors: `not_found` (bad FDC ID), `quantity_without_unit`, `no_portion_data` (`serving` requested but the food has no portion data)\n\n---\n\n### `usda_get_foods` <sub>tool</sub>\n\n- Batch fetch for 2–20 FDC IDs in one call; values are per-100g only (no portion scaling)\n- `nutrients[]` filter strongly recommended — full profiles for 20 foods are large\n- Per-ID partial failure — IDs that return no data land in `failed[]` instead of aborting the batch\n\n---\n\n### `usda_compare_foods` <sub>tool</sub>\n\n- Side-by-side comparison for 2–5 FDC IDs, pivoted one row per nutrient and one column per food\n- Defaults to 12 commonly compared nutrients (energy, protein, fat, saturated fat, carbs, fiber, total sugars, sodium, potassium, calcium, iron, vitamin C) unless `nutrients[]` is given\n- All values scaled to a common `quantity` + `unit` basis (default 100g)\n- Proceeds with the valid foods when some IDs return no data; only throws `too_few_foods` when fewer than 2 resolve\n- Rows where every food is null for that nutrient are filtered out\n\n---\n\n### `usda_list_nutrients` <sub>tool</sub>\n\n- Static reference table of ~150 tracked FDC nutrients — no API call\n- Optional `category` filter: `macronutrients`, `vitamins`, `minerals`, `lipids`, `amino_acids`, `other`\n- Returns each nutrient's ID, name, SR reference number, unit, and category — resolve a name to the ID used by `nutrients[]` elsewhere\n\n---\n\n### `usda://food/{fdcId}` <sub>resource</sub>\n\n- Same data as `usda_get_food` without portion scaling — full nutrient profile per 100g as `application/json`\n- `fdcId` must be a bare positive integer (no sign, leading zero, decimal, or exponent); anything else throws `invalid_id`\n- `not_found` when the ID doesn't exist in FDC\n\n---\n\n### `usda://nutrients` <sub>resource</sub>\n\n- Complete FDC nutrient reference — same content as `usda_list_nutrients` with no category filter\n- Served as `application/json` with a 1-hour public cache hint, since the table is bundled at build time and identical for every caller\n\n## Features\n\nBuilt on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.\n\nFoodData Central-specific:\n\n- Type-safe client for the USDA FoodData Central REST API (`api.nal.usda.gov/fdc/v1`)\n- Normalization layer that handles inconsistent API response shapes across search, single-food, and batch endpoints\n- Batch API endpoint (`/foods`) with per-food partial failure reporting\n- HTML response detection (rate-limit proxy returns 200 HTML) with service-unavailable error surfacing\n- Static nutrient reference dictionary — ~150 nutrients with FDC IDs, SR numbers, units, and categories; no API call required\n\nAgent-friendly output:\n\n- Provenance preserved — FDC data source (`dataType`) on every food result so callers know whether they're reading curated research data or label-derived branded values\n- Partial failure reporting — batch tools (`usda_get_foods`, `usda_compare_foods`) return successes alongside structured `failed[]` / `missingData[]` entries rather than failing the whole request\n- Cross-reference hints — FDC IDs and tool names in descriptions so agents know exactly which call to make next (search → get → compare workflow)\n\n## Getting started\n\n### Public Hosted Instance\n\nA public instance is available at `https://usda.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:\n\n```json\n{\n  \"mcpServers\": {\n    \"usda-mcp-server\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://usda.caseyjhand.com/mcp\"\n    }\n  }\n}\n```\n\n### Self-Hosted / Local\n\nAdd the following to your MCP client configuration file. See [data.gov API key signup](https://api.data.gov/signup/) to generate a free API key.\n\n```json\n{\n  \"mcpServers\": {\n    \"usda-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"bunx\",\n      \"args\": [\"@cyanheads/usda-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\",\n        \"USDA_FDC_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nOr with npx (no Bun required):\n\n```json\n{\n  \"mcpServers\": {\n    \"usda-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cyanheads/usda-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\",\n        \"USDA_FDC_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nOr with Docker:\n\n```json\n{\n  \"mcpServers\": {\n    \"usda-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\", \"-i\", \"--rm\",\n        \"-e\", \"MCP_TRANSPORT_TYPE=stdio\",\n        \"-e\", \"USDA_FDC_API_KEY=your-api-key\",\n        \"ghcr.io/cyanheads/usda-mcp-server:latest\"\n      ]\n    }\n  }\n}\n```\n\nFor Streamable HTTP, set the transport and start the server:\n\n```sh\nMCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 USDA_FDC_API_KEY=your-api-key bun run start:http\n# Server listens at http://localhost:3010/mcp\n```\n\n### Prerequisites\n\n- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).\n- A free USDA FDC API key — register at [api.data.gov/signup](https://api.data.gov/signup/). Required for food search, lookup, and comparison calls; `usda_list_nutrients` and the static nutrient reference work without it.\n\n### Installation\n\n1. **Clone the repository:**\n\n```sh\ngit clone https://github.com/cyanheads/usda-mcp-server.git\n```\n\n2. **Navigate into the directory:**\n\n```sh\ncd usda-mcp-server\n```\n\n3. **Install dependencies:**\n\n```sh\nbun install\n```\n\n4. **Configure environment:**\n\n```sh\ncp .env.example .env\n# edit .env and set USDA_FDC_API_KEY\n```\n\n## Configuration\n\n| Variable | Description | Default |\n|:---------|:------------|:--------|\n| `USDA_FDC_API_KEY` | **Required for FoodData Central-backed tools** (search, get, batch, compare) — not for startup or `usda_list_nutrients`. Get a free key at [api.data.gov](https://api.data.gov/signup/). | — |\n| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |\n| `MCP_HTTP_PORT` | Port for HTTP server. | `3010` |\n| `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |\n| `MCP_LOG_LEVEL` | Log level (RFC 5424). | `info` |\n| `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |\n| `STORAGE_PROVIDER_TYPE` | Storage backend. | `in-memory` |\n| `OTEL_ENABLED` | Enable [OpenTelemetry instrumentation](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry) (spans, metrics, completion logs). | `false` |\n\nSee [`.env.example`](./.env.example) for the full list of optional overrides.\n\n## Running the server\n\n### Local development\n\n- **Build and run:**\n\n  ```sh\n  # One-time build\n  bun run rebuild\n\n  # Run the built server\n  bun run start:stdio\n  # or\n  bun run start:http\n  ```\n\n- **Run checks and tests:**\n\n  ```sh\n  bun run devcheck   # Lint, format, typecheck, security\n  bun run test       # Vitest test suite\n  bun run lint:mcp   # Validate MCP definitions against spec\n  ```\n\n### Docker\n\n```sh\ndocker build -t usda-mcp-server .\ndocker run --rm -e USDA_FDC_API_KEY=your-key -p 3010:3010 usda-mcp-server\n```\n\nThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/usda-mcp-server`. OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.\n\n## Project structure\n\n| Directory | Purpose |\n|:----------|:--------|\n| `src/index.ts` | `createApp()` entry point — registers tools, resources, and inits `FdcService`. |\n| `src/config` | Server-specific environment variable parsing and validation with Zod (`USDA_FDC_API_KEY`). |\n| `src/mcp-server/tools` | Tool definitions (`*.tool.ts`) — search, get, batch, compare, list-nutrients. |\n| `src/mcp-server/resources` | Resource definitions (`*.resource.ts`) — food profile and nutrient reference. |\n| `src/services/fdc` | `FdcService` — USDA FDC API client, normalization, and static nutrient reference data. |\n| `tests/` | Unit tests mirroring `src/` — 50 tests across all tools and resources. |\n\n## Development guide\n\nSee [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:\n\n- Handlers throw, framework catches — no `try/catch` in tool logic\n- Use `ctx.log` for request-scoped logging, `ctx.state` for tenant-scoped storage\n- Register new tools and resources via the barrels in `src/mcp-server/*/definitions/index.ts`\n- Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields\n\n## Contributing\n\nIssues are welcome. Run checks and tests before submitting:\n\n```sh\nbun run devcheck\nbun run test\n```\n\n## License\n\nApache-2.0 — see [LICENSE](LICENSE) for details.\n","readmeFilename":"README.md"}