Needle▌

by needle-ai
Needle bridges the Needle AI platform with MCP server integration, enabling seamless NLP and ML server integration and a
Bridges Needle AI platform with MCP servers to enable advanced natural language processing and machine learning capabilities.
best for
- / Knowledge workers managing large document libraries
- / Researchers searching through academic papers and reports
- / Teams needing quick access to information in various file formats
capabilities
- / Store and organize documents in collections
- / Search documents using natural language queries
- / Retrieve information from PDFs, DOCX, and XLSX files
- / Manage document collections through Claude Desktop
- / Perform semantic search across uploaded content
what it does
Connects to Needle AI platform to manage documents and perform semantic searches across PDFs, DOCX, XLSX and other files using natural language queries.
about
Needle is a community-built MCP server published by needle-ai that provides AI assistants with tools and capabilities via the Model Context Protocol. Needle bridges the Needle AI platform with MCP server integration, enabling seamless NLP and ML server integration and a It is categorized under ai ml, productivity.
how to install
You can install Needle in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server supports remote connections over HTTP, so no local installation is required.
license
MIT
Needle is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Build Agents with Needle MCP Server
MCP (Model Context Protocol) server to manage documents and perform searches using Needle through Claude's Desktop Application.
<a href="https://glama.ai/mcp/servers/5jw1t7hur2"> <img width="380" height="200" src="https://glama.ai/mcp/servers/5jw1t7hur2/badge" alt="Needle Server MCP server" /> </a>Table of Contents
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:
- Open Claude Desktop and connect to the Needle MCP Server.
- Use simple text commands to search, retrieve, or modify documents.
- 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
{
"mcpServers": {
"needle": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.needle.app/mcp",
"--header",
"Authorization:Bearer ${NEEDLE_API_KEY}"
],
"env": {
"NEEDLE_API_KEY": "<your-needle-api-key>"
}
}
}
}
Cursor Config
Create or update .cursor/mcp.json:
{
"mcpServers": {
"needle": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.needle.app/mcp",
"--header",
"Authorization:${NEEDLE_AUTH_HEADER}"
],
"env": {
"NEEDLE_AUTH_HEADER": "Bearer <your-needle-api-key>"
}
}
}
}
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
- Clone the repository:
git clone https://github.com/needle-ai/needle-mcp.git
- Install UV globally using Homebrew:
brew install uv
- Create your config file:
- For MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - For Windows:
%APPDATA%/Claude/claude_desktop_config.json
- For MacOS:
Claude Desktop Config
{
"mcpServers": {
"needle": {
"command": "uv",
"args": ["--directory", "/path/to/needle-mcp", "run", "needle-mcp"],
"env": {
"NEEDLE_API_KEY": "<your-needle-api-key>"
}
}
}
}
Cursor Config
{
"mcpServers": {
"needle": {
"command": "uv",
"args": ["--directory", "/path/to/needle-mcp", "run", "needle-mcp"],
"env": {
"NEEDLE_API_KEY": "<your-needle-api-key>"
}
}
}
}
- Replace
/path/to/needle-mcpwith your actual repository path - Add your Needle API key
- Restart Claude Desktop
Installing via Smithery
npx -y @smithery/cli install needle-mcp --client claude
3. Docker Installation
- Clone and build:
git clone https://github.com/needle-ai/needle-mcp.git
cd needle-mcp
docker build -t needle-mcp .
- Add to your Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"needle": {
"command": "docker",
"args": ["run", "--rm", "-i", "needle-mcp"],
"env": {
"NEEDLE_API_KEY": "<your-needle-api-key>"
}
}
}
}
- Restart Claude Desktop
Usage Examples
- "Create a new collection called 'Technical Docs'"
- "Add this document to the collection, which is https://needle.app"
- "Search the collection for information about AI"
- "List all my collections"
Troubleshooting
If not working:
- Make sure
uvis installed globally (if not, uninstall withpip uninstall uvand reinstall withbrew install uv) - Or find
uvpath withwhich uvand replace"command": "uv"with the full path - Verify your Needle API key is correct
- Check if the needle-mcp path in config matches your actual repository location
Reset Claude Desktop Configuration
If you're seeing old configurations or the integration isn't working:
- Find all Claude Desktop config files:
find / -name "claude_desktop_config.json" 2>/dev/null
- Remove all Claude Desktop data:
- On MacOS:
rm -rf ~/Library/Application\ Support/Claude/* - On Windows: Delete contents of
%APPDATA%/Claude/
- Create a fresh config with only Needle:
mkdir -p ~/Library/Application\ Support/Claude
cat > ~/Library/Application\ Support/Claude/claude_desktop_config.json
<< 'EOL'
{
"mcpServers": {
"needle": {
"command": "uv",
"args": [
"--directory",
"/path/to/needle-mcp",
"run",
"needle-mcp"
],
"env": {
"NEEDLE_API_KEY": "your_needle_api_key"
}
}
}
}
EOL
-
Completely quit Claude Desktop (Command+Q on Mac) and relaunch it
-
If you still see old configurations:
- Check for additional config files in other locations
- Try clearing browser cache if using web version
- Verify the config file is being read from the correct location