Claude Desktop 接入
Claude Desktop 是 Anthropic 出品的桌面端 AI 客户端,原生支持 MCP。
配置步骤
找到配置文件位置:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
编辑配置文件,添加 sentinel 服务器:
托管 HTTP 模式(推荐)
json
{
"mcpServers": {
"sentinel": {
"url": "https://mcp.priceminder.online?key=你的MCP-Key"
}
}
}本地 stdio 模式
json
{
"mcpServers": {
"sentinel": {
"command": "uvx",
"args": ["sentinel-mcp-server"],
"env": {
"SENTINEL_API_BASE": "https://priceminder.online/api/v1",
"SENTINEL_TOKEN": "你的 API Token"
}
}
}
}TIP
如果配置文件不存在,手动创建即可。确保 JSON 格式正确。
- 完全退出 Claude Desktop(不是最小化),重新打开
- 在对话中即可使用自然语言操作监控数据
验证
重新打开 Claude 后,输入:
- "我的监控列表"
- "有没有新的降价预警"
如果工具正常加载,Claude 会自动调用对应的 MCP Tool。