PI

pinecone-io/pinecone-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

72 stars 22 forks 质量 86 趋势 20Apache-2.0

Pinecone-IO/Pinecone-MCP 是从 https://github.com/pinecone-io/pinecone-mcp. 导入的 MCP 服务器候选服务器。

概览

Pinecone-IO/Pinecone-MCP 是从 https://github.com/pinecone-io/pinecone-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

模型上下文协议(MCP)是一个标准,允许编码助手和其他人工智能工具与 Pinecone 等平台交互。Pinecone 开发者 MCP 服务器允许您将这些工具与 Pinecone 项目和文档连接起来。

一旦连接,人工智能工具可以:

  • 搜索Pinecone文档以准确回答问题。
  • 帮助您根据应用需求配置索引。
  • 根据你的索引配置和数据,以及松果文档和示例生成代码。
  • Upsert 并在索引中搜索数据,使您能够在开发环境中测试查询并评估结果。

更详细的信息请参见文档。

该MCP服务器专注于提升使用Pinecone作为技术栈一部分的开发者的体验。它旨在与编码助手一起使用。Pinecone还提供Assistant MCP,旨在为AI助手提供来自你知识库的相关上下文。

布置

要配置MCP服务器访问Pinecone项目,你需要通过控制台生成API密钥。即使没有API密钥,你的AI工具仍然可以搜索文档。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Pinecone Developer MCP Server

The Model Context Protocol (MCP) is a standard that allows coding assistants and other AI tools to interact with platforms like Pinecone. The Pinecone Developer MCP Server allows you to connect these tools with Pinecone projects and documentation.

Once connected, AI tools can:

  • Search Pinecone documentation to answer questions accurately.
  • Help you configure indexes based on your application’s needs.
  • Generate code informed by your index configuration and data, as well as Pinecone documentation and examples.
  • Upsert and search for data in indexes, allowing you to test queries and evaluate results within your dev environment.

See the docs for more detailed information.

This MCP server is focused on improving the experience of developers working with Pinecone as part of their technology stack. It is intended for use with coding assistants. Pinecone also offers the Assistant MCP, which is designed to provide AI assistants with relevant context sourced from your knowledge base.

Setup

To configure the MCP server to access your Pinecone project, you will need to generate an API key using the console. Without an API key, your AI tool will still be able to search documentation. However, it will not be able to manage or query your indexes.

The MCP server requires Node.js v22 or later. Ensure that node and npx are available in your PATH.

Next, you will need to configure your AI assistant to use the MCP server.

Configure Cursor

To add the Pinecone MCP server to a project, create a .cursor/mcp.json file in the project root (if it doesn’t already exist) and add the following configuration:

{
  "mcpServers": {
    "pinecone": {
      "command": "npx",
      "args": [
        "-y", "@pinecone-database/mcp"
      ],
      "env": {
        "PINECONE_API_KEY": ""
      }
    }
  }
}

You can check the status of the server in Cursor Settings > MCP.

To enable the server globally, add the configuration to the .cursor/mcp.json in your home directory instead.

It is recommended to use rules to instruct Cursor on proper usage of the MCP server. Check out the docs for some suggestions.

Configure Claude desktop

在 GitHub 查看完整 README

安装

npx -y @pinecone-database/mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pinecone": { "command": "npx", "args": [ "-y", "@pinecone-database/mcp" ], "env": { "PINECONE_API_KEY": "<your pinecone api key>" } } } }