Build Agents with Needle MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
MCP (Model Context Protocol) server to manage documents and perform searches using Needle through Claude's Desktop Application.
Table of Contents
- Overview
- Features
- Usage
- Commands in Claude Desktop
- Result in Needle
- Installation
- Video Explanation
---
Overview
Needle MCP Server allows you to:
- Organize and store documents for quick retrieval.
- Perform powerful searches via Claude's large language model.
- Integrate seamlessly with the Needle ecosystem for advanced document management.
MCP (Model Context Protocol) standardizes the way LLMs connect to external data sources. You can use Needle MCP Server to easily enable semantic search tools in your AI applications, making data buried in PDFs, DOCX, XLSX, and other files instantly accessible by LLMs.
**We recommend using our remote MCP server** for the best experience - no local setup required.
---
Features
- **Document Management:** Easily add and organize documents on the server.
- **Search & Retrieval:** Claude-based natural language search for quick answers.
- **Easy Integration:** Works with Claude Desktop and Needle collections.
---
Usage
Commands in Claude Desktop
Below is an example of how the commands can be used in Claude Desktop to interact with the server:
1. **Open Claude Desktop** and connect to the Needle MCP Server.
2. **Use simple text commands** to search, retrieve, or modify documents.
3. **Review search results** returned by Claude in a user-friendly interface.
Result in Needle
https://github.com/user-attachments/assets/0235e893-af96-4920-8364-1e86f73b3e6c
---
Youtube Video Explanation
For a full walkthrough on using the Needle MCP Server with Claude and Claude Desktop, watch this YouTube explanation video.
---
Installation
1. Remote MCP Server (Recommended)
**Claude Desktop Config**
Create or update your config file:
- For MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- For Windows: %APPDATA%/Claude/claude_desktop_config.json
**Cursor Config**
Create or update .cursor/mcp.json:
Get your API key from Needle Settings.
We provide two endpoints:
- **Streamable HTTP**: https://mcp.needle.app/mcp (recommended)
- **SSE**: https://mcp.needle.app/sse
Note: MCP deprecated SSE endpoints in the latest specification, so newer clients should prefer the Streamable HTTP endpoint.
2. Local Installation
1. Clone the repository:
2. Install UV globally using Homebrew:
3. Create your config file:
- For MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- For Windows: %APPDATA%/Claude/claude_desktop_config.json
**Claude Desktop Config**
**Cursor Config**
4. Replace /path/to/needle-mcp with your actual repository path
5. Add your Needle API key
6. Restart Claude Desktop
**Installing via Smithery**
3. Docker Installation
1. Clone and build:
2. Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
3. Restart Claude Desktop