Cover image
Try Now
2025-04-14

将Pinecone项目连接到光标,Claude和其他AI助手

3 years

Works with Finder

3

Github Watches

1

Github Forks

3

Github Stars

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.

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. 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": "<your 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.

Configure Claude desktop

Use Claude desktop to locate the claude_desktop_config.json file by navigating to Settings > Developer > Edit Config. Add the following configuration:

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

Restart Claude desktop. On the new chat screen, you should see a hammer (MCP) icon appear with the new MCP tools available.

Usage

Once configured, your AI tool will automatically make use of the MCP to interact with Pinecone. You may be prompted for permission before a tool can be used. Try asking your AI assistant to set up an example index, upload sample data, or search for you!

Tools

Pinecone Developer MCP Server provides the following tools for AI assistants to use:

  • search-docs: Search the official Pinecone documentation.
  • list-indexes: Lists all Pinecone indexes.
  • describe-index: Describes the configuration of an index.
  • describe-index-stats: Provides statistics about the data in the index, including the number of records and available namespaces.
  • create-index-for-model: Creates a new index that uses an integrated inference model to embed text as vectors.
  • upsert-records: Inserts or updates records in an index with integrated inference.
  • search-records: Searches for records in an index based on a text query, using integrated inference for embedding. Has options for metadata filtering and reranking.
  • cascading-search: Searches for records across multiple indexes, deduplicating and reranking the results.
  • rerank-documents: Reranks a collection of records or text documents using a specialized reranking model.

Limitations

Only indexes with integrated inference are supported. Assistants, indexes without integrated inference, standalone embeddings, and vector search are not supported.

Contributing

We welcome your collaboration in improving the developer MCP experience. Please submit issues in the GitHub issue tracker. Information about contributing can be found in CONTRIBUTING.md.

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

    Reviews

    3.3 (4)
    Avatar
    user_rJSO7fFq
    2025-04-24

    The pinecone-mcp by pinecone-io is an outstanding application! Its intuitive design and user-friendly interface make managing MCP tasks seamless and efficient. The real-time updates and comprehensive features ensure smooth operations, making it a must-have tool for any MCP enthusiast. Highly recommended!

    Avatar
    user_FHrmYv1l
    2025-04-24

    Pinecone-mcp is an absolutely phenomenal application! It offers seamless integration and an intuitive interface that makes it incredibly user-friendly. The performance is top-notch, ensuring efficiency and reliability for all my needs. Kudos to pinecone-io for creating such a robust and versatile product. Highly recommended for anyone looking for a solid solution!

    Avatar
    user_LeTUCa2u
    2025-04-24

    I have been using the Pinecone-MCP for a while now, and I must say it is an outstanding product by Pinecone-IO. The ease of integration and the efficient performance it provides have significantly improved my workflow. The user-friendly interface and comprehensive features make it a must-have tool for any MCP application enthusiast. Highly recommend!

    Avatar
    user_2oU8KsOU
    2025-04-24

    I have been using Pinecone-MCP by Pinecone-io, and it has truly revolutionized my workflow. The user-friendly interface and seamless integration make it a must-have for any professional. Highly recommend giving it a try!