本项目是一个用于与合作惠特博物馆收藏 API 进行交互的模型上下文协议(MCP)服务器。借助该工具,用户能够搜索并以程序化的方式检索有关博物馆藏品的详细信息。
在完成后续安装步骤后,可使用以下命令启动服务器:
node index.js
git clone https://github.com/behole/cooper-hewitt-mcp.git
cd cooper-hewitt-mcp
npm install
设置 API 令牌
.env 文件。.env 文件中:COOPER_HEWITT_API_TOKEN=your_api_token_here
更新您的 claude_desktop_config.json
"cooper-hewitt": {
"command": "node",
"args": ["您 index.js 的路径"]
}
search-objectsquery(字符串,必需):搜索词page(数字,可选):结果页码perPage(数字,可选):每页结果数量get-objectid(字符串,必需):藏品唯一标识符git checkout -b feature/AmazingFeature)。git commit -m 'Add some AmazingFeature')。git push origin feature/AmazingFeature)。指定您的许可证 - 例如,MIT、Apache 2.0
[]