Pinecone Model Context Protocol Server for Claude Desktop.

Pinecone Model Context Protocol Server for Claude Desktop.

模型上下文协议服务器,允许从Pinecone读取和写入。基本的RAG。

此指南帮助你设置并使用 Pinecone 模型上下文协议服务器,用于 Claude 桌面版实现基本的 RAG 功能。

安装

快速安装(推荐)

使用 Smithery 自动安装:

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

手动安装

  1. 使用 uv 安装服务器:
uvx install mcp-pinecone
# 或
uv pip install mcp-pinecone
  1. 配置 Claude 桌面版:

位置:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

配置:

"mcpServers": {
  "mcp-pinecone": {
    "command": "uvx",
    "args": [
      "--index-name",
      "{your-index-name}",
      "--api-key",
      "{your-secret-api-key}",
      "mcp-pinecone"
    ]
  }
}

Pinecone 设置

  1. Pinecone 注册账户
  2. 创建新索引
  3. 获取 API 密钥,并更新配置中的 {your-index-name}{your-secret-api-key}

可用工具

  • semantic-search: 在 Pinecone 索引中搜索记录
  • read-document: 读取指定文档
  • list-documents: 列出所有文档
  • pinecone-stats: 获取索引统计信息
  • process-document: 将文档处理后插入索引(分块、嵌入、插入)

调试

对于调试,推荐使用 MCP Inspector:

npx @modelcontextprotocol/inspector uv --directory {project_dir} run mcp-pinecone

更多信息