本项目是一个使用 Needle 通过 Claude 的桌面应用程序管理文档和执行搜索的 MCP(模型上下文协议)服务器。它可以帮助您组织和存储文档以便快速检索,利用 Claude 的大型语言模型执行强大的搜索,还能平滑地与 Needle 生态系统集成,进行高级文档管理。
您可以按照以下步骤快速开始使用 Needle MCP 服务器:
要通过 Smithery 自动安装 Needle MCP 用于 Claude 桌面,可使用以下命令:
npx -y @smithery/cli install needle-mcp --server-id=your-server-id
git clone https://github.com/your-username/needle-mcp.git
cd needle-mcp
npm install
如果看到旧的配置或集成不工作,可按以下步骤操作:
find / -name "claude_desktop_config.json" 2>/dev/null
rm -rf ~/Library/Application\ Support/Claude/*%APPDATA%/Claude/ 中的内容。mkdir -p ~/Library/Application\ Support/Claude
cat > ~/Library/Application\ Support/Claude/claude_desktop_config.json
<< 'EOL'
{
"mcpServers": {
"needle_mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/needle-mcp",
"run",
"needle-mcp"
],
"env": {
"NEEDLE_API_KEY": "your_needle_api_key"
}
}
}
}
EOL
完全退出 Claude 桌面(Mac 上的 Command+Q)并重新启动它。
如果仍然看到旧的配置:
在 Claude 桌面中使用以下命令与服务器交互的示例:
https://github.com/user-attachments/assets/0235e893-af96-4920-8364-1e86f73b3e6c
有关使用 Needle MCP 服务器与 Claude 和 Claude 桌面的全面演练,请观看此 YouTube 解释视频。