Needle MCP Server

Needle MCP Server

Here are a few possible translations, depending on the specific context of "Needle" and "modelcontextprotocol": **General/Technical Translation:** * **将 Needle 集成到 modelcontextprotocol 中** (Jiāng Needle jíchéng dào modelcontextprotocol zhōng) - This is a straightforward translation meaning "Integrate Needle into modelcontextprotocol." It's suitable if "Needle" is a specific software component or library. **More Context Needed for a Precise Translation:** To provide a more accurate translation, I need more context about: * **What is "Needle"?** Is it a specific software library, a concept, a tool, or something else? * **What is "modelcontextprotocol"?** Is it a specific protocol, a class, a framework, or a general concept? * **What kind of integration is being discussed?** Is it about using Needle within the context of the modelcontextprotocol, or about modifying the modelcontextprotocol to include Needle's functionality? **Examples with More Context:** * **If "Needle" is a dependency injection framework and "modelcontextprotocol" is a specific protocol for managing model context:** * **使用 Needle 实现 modelcontextprotocol 的依赖注入** (Shǐyòng Needle shíxiàn modelcontextprotocol de làiyòng zhùrù) - "Implement dependency injection for modelcontextprotocol using Needle." * **If "Needle" is a specific data structure and "modelcontextprotocol" defines how models interact with their context:** * **在 modelcontextprotocol 中使用 Needle 数据结构** (Zài modelcontextprotocol zhōng shǐyòng Needle shùjù jiégòu) - "Use the Needle data structure within modelcontextprotocol." **Therefore, please provide more context so I can give you the most accurate and helpful translation.**

JANHMS

研究与数据
访问服务器

README

使用 Needle MCP 服务器构建代理

Feature - Claude 截图

MCP (模型上下文协议) 服务器,用于管理文档并使用 Needle 通过 Claude 的桌面应用程序执行搜索。

目录


概述

Needle MCP 服务器允许您:

  • 组织和存储文档以便快速检索。
  • 通过 Claude 的大型语言模型执行强大的搜索。
  • 与 Needle 生态系统无缝集成,实现高级文档管理。

功能

  • 文档管理: 在服务器上轻松添加和组织文档。
  • 搜索与检索: 基于 Claude 的自然语言搜索,可快速获得答案。
  • 易于集成:Claudie Desktop 和 Needle 集合配合使用。

用法

Claudie Desktop 中的命令

以下是如何在 Claudie Desktop 中使用命令与服务器交互的示例:

在 Claudie Desktop 中使用命令

  1. 打开 Claudie Desktop 并连接到 Needle MCP 服务器。
  2. 使用简单的文本命令 来搜索、检索或修改文档。
  3. 查看 Claude 在用户友好的界面中返回的搜索结果。

Needle 中的结果

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


Youtube 视频说明

有关使用 Needle MCP 服务器与 Claude 和 Claudie Desktop 的完整演练,请观看此 YouTube 说明视频


安装

  1. 克隆存储库:
git clone https://github.com/yourusername/needle-mcp.git
  1. 使用 Homebrew 在终端中全局安装 UV:
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. 从 needle.xyz 获取您的 Needle API 密钥

  2. 更新配置文件:

    • /path/to/needle-mcp 替换为您的实际存储库路径
    • 添加您的 Needle API 密钥
  3. 完全退出 Claude 并重新打开它

使用示例

  • "创建一个名为 'Technical Docs' 的新集合"
  • "将此文档添加到集合,网址为 https://needle-ai.com"
  • "在集合中搜索有关 AI 的信息"
  • "列出我的所有集合"

故障排除

如果无法正常工作:

  • 确保 UV 已全局安装(如果未安装,请使用 pip uninstall uv 卸载,然后使用 brew install uv 重新安装)
  • 或者使用 which uv 查找 UV 路径,并将 "command": "uv" 替换为完整路径
  • 验证您的 Needle API 密钥是否正确
  • 检查配置中的 needle-mcp 路径是否与您的实际存储库位置匹配

重置 Claude Desktop 配置

如果您看到旧的配置或集成不起作用:

  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(在 Mac 上使用 Command+Q)并重新启动它

  2. 如果您仍然看到旧的配置:

  • 检查其他位置是否有其他配置文件
  • 如果使用 Web 版本,请尝试清除浏览器缓存
  • 验证是否从正确的位置读取配置文件

推荐服务器

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。

精选
TypeScript
MCP PubMed Search

MCP PubMed Search

用于搜索 PubMed 的服务器(PubMed 是一个免费的在线数据库,用户可以在其中搜索生物医学和生命科学文献)。 我是在 MCP 发布当天创建的,但当时正在度假。 我看到有人在您的数据库中发布了类似的服务器,但还是决定发布我的服务器。

精选
Python
mixpanel

mixpanel

连接到您的 Mixpanel 数据。 从 Mixpanel 分析查询事件、留存和漏斗数据。

精选
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Nefino MCP Server

Nefino MCP Server

为大型语言模型提供访问德国可再生能源项目新闻和信息的能力,允许按地点、主题(太阳能、风能、氢能)和日期范围进行筛选。

官方
Python
Vectorize

Vectorize

将 MCP 服务器向量化以实现高级检索、私有深度研究、Anything-to-Markdown 文件提取和文本分块。

官方
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

一个服务器,通过 FastMCP 提供对 Mathematica 文档的访问,使用户能够从 Wolfram Mathematica 检索函数文档和列出软件包符号。

本地
Python
kb-mcp-server

kb-mcp-server

一个 MCP 服务器,旨在实现便携性、本地化、简易性和便利性,以支持对 txtai “all in one” 嵌入数据库进行基于语义/图的检索。任何 tar.gz 格式的 txtai 嵌入数据库都可以被加载。

本地
Python
Research MCP Server

Research MCP Server

这个服务器用作 MCP 服务器,与 Notion 交互以检索和创建调查数据,并与 Claude Desktop Client 集成以进行和审查调查。

本地
Python
Cryo MCP Server

Cryo MCP Server

一个API服务器,实现了模型补全协议(MCP),用于Cryo区块链数据提取,允许用户通过任何兼容MCP的客户端查询以太坊区块链数据。

本地
Python