Skip to main content
Glama
Needle MCP Server

Needle MCP Server

Official
by needle-ai

Создание агентов с помощью Needle MCP Server

значок кузнеца

Скриншот функции - Клод

Сервер MCP (Model Context Protocol) для управления документами и выполнения поиска с использованием Needle через настольное приложение Клода.

Оглавление


Related MCP server: Documentation MCP Server

Обзор

Сервер Needle MCP позволяет:

  • Организуйте и храните документы для быстрого доступа.

  • Выполняйте эффективный поиск с помощью большой языковой модели Клода.

  • Полная интеграция с экосистемой Needle для расширенного управления документами.


Функции

  • Управление документами: легко добавляйте и упорядочивайте документы на сервере.

  • Поиск и извлечение: поиск на естественном языке на основе Claude для быстрых ответов.

  • Простая интеграция: работает с коллекциями Claude Desktop и Needle.


Использование

Команды в Claude Desktop

Ниже приведен пример того, как команды можно использовать в Claude Desktop для взаимодействия с сервером:

Использование команд в Claude Desktop

  1. Откройте Claude Desktop и подключитесь к серверу Needle MCP.

  2. Используйте простые текстовые команды для поиска, извлечения или изменения документов.

  3. Просматривайте результаты поиска, предоставленные Клодом, в удобном для пользователя интерфейсе.

Результат в игле

https://github.com/user-attachments/assets/0235e893-af96-4920-8364-1e86f73b3e6c


Объяснение видео на Youtube

Полное пошаговое руководство по использованию сервера Needle MCP с Claude и Claude Desktop можно посмотреть в этом видео на YouTube .


Установка

Установка через Smithery

Чтобы автоматически установить Needle MCP для Claude Desktop через Smithery :

npx -y @smithery/cli install needle-mcp --client claude

Ручная установка

  1. Клонируйте репозиторий:

git clone https://github.com/yourusername/needle-mcp.git
  1. Установите UV глобально с помощью Homebrew в Терминале:

brew install uv
  1. Создайте claude_desktop_config.json:

    • Для MacOS: Откройте каталог ~/Library/Application Support/Claude/ и создайте внутри него файл

    • Для Windows: Откройте каталог %APPDATA%/Claude/ и создайте внутри него файл

  2. Добавьте эту конфигурацию в claude_desktop_config.json:

{
  "mcpServers": {
    "needle_mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/needle-mcp",
        "run",
        "needle-mcp"
      ],
      "env": {
        "NEEDLE_API_KEY": "your_needle_api_key"
      }
    }
  }
}
  1. Получите свой ключ API Needle от needle.xyz

  2. Обновите файл конфигурации:

    • Замените /path/to/needle-mcp на фактический путь к вашему репозиторию.

    • Добавьте свой ключ API Needle

  3. Полностью закройте Claude и откройте его снова.

Примеры использования

  • «Создайте новую коллекцию под названием «Технические документы»»

  • «Добавьте этот документ в коллекцию, которая находится по адресу https://needle-ai.com »

  • «Поиск информации об ИИ в коллекции»

  • «Список всех моих коллекций»

Поиск неисправностей

Если не работает:

  • Убедитесь, что UV установлен глобально (если нет, удалите с помощью pip uninstall uv и переустановите с помощью brew install uv )

  • Или найдите UV-путь, с which uv , и замените "command": "uv" на полный путь

  • Проверьте правильность вашего ключа API Needle

  • Проверьте, соответствует ли путь needle-mcp в конфигурации фактическому расположению вашего репозитория.

Сброс конфигурации рабочего стола Клода

Если вы видите старые конфигурации или интеграция не работает:

  1. Найти все файлы конфигурации Claude Desktop:

find / -name "claude_desktop_config.json" 2>/dev/null
  1. Удалить все данные Claude Desktop:

  • На MacOS: rm -rf ~/Library/Application\ Support/Claude/*

  • В Windows: удалите содержимое %APPDATA%/Claude/

  1. Создайте новую конфигурацию только с Needle:

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
  1. Полностью закройте Claude Desktop (Command+Q на Mac) и перезапустите его.

  2. Если вы все еще видите старые конфигурации:

  • Проверьте наличие дополнительных файлов конфигурации в других местах.

  • Попробуйте очистить кэш браузера, если используете веб-версию.

  • Убедитесь, что файл конфигурации считывается из правильного места.

Available Tools

7 tools
needle_add_fileAInspect

Add a new document to a Needle collection by providing a URL for download. Supports multiple file formats including: - PDF documents - Microsoft Word files (DOC, DOCX) - Plain text files (TXT) - Web pages (HTML)

        The document will be:
        1. Downloaded from the provided URL
        2. Processed for text extraction
        3. Indexed for semantic search
        
        Use this tool when you need to:
        - Add new documents to a collection
        - Make documents searchable
        - Expand your knowledge base
        
        Important: Documents require processing time before they're searchable.
        Check processing status using needle_list_files before searching new content.

Inputs: collection_id (required), name (required), url (required).

needle_create_collectionAInspect

Create a new document collection in Needle for organizing and searching documents. A collection acts as a container for related documents and enables semantic search across its contents. Use this tool when you need to: - Start a new document organization - Group related documents together - Set up a searchable document repository Returns a collection ID that's required for subsequent operations. Choose a descriptive name that reflects the collection's purpose for better organization.

Inputs: name (required).

needle_get_collection_detailsAInspect

Fetch comprehensive metadata about a specific Needle collection. Provides detailed information about the collection's configuration, creation date, and current status. Use this tool when you need to: - Verify a collection's existence and configuration - Check collection metadata before operations - Get creation date and other attributes Requires a valid collection ID and returns detailed collection metadata. Will error if collection doesn't exist.

Inputs: collection_id (required).

needle_get_collection_statsAInspect

Retrieve detailed statistical information about a Needle collection's contents and status. Provides metrics including: - Total number of documents - Processing status of documents - Storage usage and limits - Index status and health Use this tool to: - Monitor collection size and growth - Verify processing completion - Check collection health before operations Essential for ensuring collection readiness before performing searches.

Inputs: collection_id (required).

needle_list_collectionsAInspect

List Needle collections. Returns maximum of 20 results. Get more results by increasing the offset. Returns detailed information including collection IDs, names, and creation dates. Use this tool when you need to: - Get an overview of available document collections - Find collection IDs for subsequent operations - Verify collection existence before performing operations The response includes metadata that's required for other Needle operations.

Inputs: offset.

needle_list_filesAInspect

List all documents stored within a specific Needle collection with their current status. Returns detailed information about each file including: - File ID and name - Processing status (pending, processing, complete, error) - Upload date and metadata Use this tool when you need to: - Inventory available documents - Check processing status of uploads - Get file IDs for reference - Verify document availability before searching Essential for monitoring document processing completion before performing searches.

Inputs: collection_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: collection management (create, list, get details, get stats), file management (add, list), and search. The descriptions explicitly differentiate their functions, such as needle_get_collection_details for metadata vs. needle_get_collection_stats for metrics, eliminating any ambiguity.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with the 'needle_' prefix, using snake_case throughout (e.g., needle_create_collection, needle_list_files). This predictable naming scheme makes it easy for agents to understand and select tools based on their actions and targets.

    Tool Count5/5

    With 7 tools, the server is well-scoped for document management and search, covering essential operations like collection CRUD, file addition, status monitoring, and semantic search. Each tool serves a clear purpose without redundancy, fitting the domain's needs efficiently.

    Completeness4/5

    The toolset provides strong coverage for core document management workflows, including collection lifecycle, file processing, and search. A minor gap exists in file deletion or update capabilities, which could limit full CRUD operations, but agents can still perform key tasks like adding, listing, and searching documents effectively.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers