Use the Pinecone MCP server
This feature is in early access and is not intended for production usage.
The Pinecone MCP server enables AI agents to interact directly with Pinecone’s functionality and documentation via the standardized Model Context Protocol (MCP). Using the MCP server, agents can search Pinecone documentation, manage indexes, upsert data, and query indexes for relevant information.
This page shows you how to configure Cursor and Claude Desktop to connect with the Pinecone MCP server.
Tools
The Pinecone MCP server provides the following tools:
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.
The Pinecone MCP supports only indexes with integrated embedding. Indexes for vectors you create with external embedding models are not supported.
Before you begin
Ensure you have the following:
- A Pinecone API key
- Node.js installed, with
node
andnpx
available on yourPATH
Configure Cursor
Add the MCP server
In your project root, create a .cursor/mcp.json
file, if it doesn’t exist, and add the following configuration:
Replace YOUR_API_KEY
with your Pinecone API key.
Check the status
Go to Cursor Settings > MCP. You should see the server and its list of tools.
Add Pinecone rules
The Pinecone MCP server works well out-of-the-box. However, you can add explicit rules to ensure the server behaves as expected.
In your project root, create a .cursor/rules/pinecone.mdc
file and add the following:
Test the server
Press Command + i
to open the Agent chat. Test the Pinecone MCP server with prompts that required the server to generate Pinceone-compatible code and perform tasks in your Pinecone account.
Generate code:
Write a Python script that creates a dense index with integrated embedding, upserts 20 sentences about dogs, waits 10 seconds, searches the index, and reranks the results.
Perform tasks:
Create a dense index with integrated embedding, upsert 20 sentences about dogs, waits 10 seconds, search the index, and reranks the results.
Configure Claude Desktop
Add the MCP server
Go to Settings > Developer > Edit Config and add the following configuration:
Replace YOUR_API_KEY
with your Pinecone API key.
Check the status
Restart Claude Desktop. On the new chat screen, you should see a hammer (MCP) icon appear with the new MCP tools available.
Test the server
Test the Pinecone MCP server with prompts that required the server to generate Pinceone-compatible code and perform tasks in your Pinecone account.
Generate code:
Write a Python script that creates a dense index with integrated embedding, upserts 20 sentences about dogs, waits 10 seconds, searches the index, and reranks the results.
Perform tasks:
Create a dense index with integrated embedding, upsert 20 sentences about dogs, waits 10 seconds, search the index, and reranks the results.
Was this page helpful?