Pinecone MCP server for AI agents

Live

API KEY

VECTOR DATABASE

AI

Pinecone gives your agent a vector database in your Pinecone project: list and create indexes, search and fetch records, upsert and update vectors, and generate embeddings and rerank documents with Pinecone-hosted models.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Pinecone
agent · Acme Q3
Run
Search my support-docs namespace for "reset two-factor authentication".
S
pinecone_records_search
260ms
Vector search agent
Returned the 5 closest records from the support-docs namespace, each with its score and metadata.
Sources: Pinecone support-docs namespace
pinecone
5 records
18:29
Message Claude...

Tools your vector search agent reaches for on Pinecone, scoped per user.

CALL ANY TOOL
22 tools for vector search in Pinecone: list and create indexes, search namespaces with text or vectors, fetch, upsert, and update records, and generate embeddings or rerank documents with hosted models.
pinecone_documents_rerank
Documents rerank
Reorder a list of documents by relevance to a query with a Pinecone-hosted reranking model. Returns the documents sorted by relevance score, each with its original index, score and (by default) the document itself, plus rerank usage. Use this to improve results you already have from any source. Use pinecone_records_search with rerank_model to search and rerank in one call. Uses Pinecone rerank units.
Parameters
Name
Type
Required
Description
documents
array
Required
The documents to rerank, each an object of string fields; by default the text field is ranked. Example: [{"id": "vec1", "text": "Paris is the capital of France."}, {"id": "vec2", "text": "Berlin is the capital of Germany."}]
model
string
Required
Hosted reranking model, as listed by pinecone_models_list with type rerank. Example: bge-reranker-v2-m3
query
string
Required
The query to rank the documents against. Example: What is the capital of France?
parameters
object
Optional
Model-specific parameters such as truncate. Example: {"truncate": "END"}
rank_fields
array
Optional
Document fields the model reads when ranking. Defaults to ["text"]; how many fields are allowed depends on the model. Example: ["text"]
return_documents
boolean
Optional
Set to false to return only indexes and scores without the documents. Defaults to true. Example: false
top_n
integer
Optional
Number of top documents to return. Defaults to all documents. Example: 3
pinecone_embeddings_generate
Generate embeddings
pinecone_index_configure
Index configure
pinecone_index_create
Create index
pinecone_index_create_for_model
Index create for model
pinecone_index_delete
Delete index
pinecone_index_get
Get index
pinecone_index_stats_get
Get index stats
pinecone_indexes_list
List indexes
pinecone_model_get
Get model
pinecone_models_list
List models
pinecone_namespace_delete
Delete namespace
pinecone_namespace_get
Get namespace
pinecone_namespaces_list
List namespaces
pinecone_records_search
Search records
pinecone_vector_ids_list
List vector ids
pinecone_vector_update
Update vector
pinecone_vectors_delete
Delete vectors
pinecone_vectors_fetch
Fetch vectors
pinecone_vectors_fetch_by_metadata
Vectors fetch by metadata
pinecone_vectors_query
Query vectors
pinecone_vectors_upsert
Upsert vectors
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Pinecone tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["pinecone"], toolNames: [
    "pinecone_indexes_list",
    "pinecone_records_search",
    "pinecone_vectors_upsert"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my indexes, search the support-docs namespace for two-factor questions, and upsert the new answer" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["pinecone"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my indexes, search the support-docs namespace for two-factor questions, and upsert the new answer" }],
  tools,
});

// Execute the tool call with the user's vaulted Pinecone API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["pinecone"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my indexes, search the support-docs namespace for two-factor questions, and upsert the new answer" }],
  tools,
});

// Tool call runs with the user's vaulted Pinecone API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["pinecone"] }, pageSize: 100,
});

const agent = new Agent({
  name: "vector_search_agent",
  model: "gemini-2.5-pro",
  instruction: "Pinecone tools scoped to this user",
  tools,
});

await agent.run("List my indexes, search the support-docs namespace for two-factor questions, and upsert the new answer");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Pinecone tool. Click to copy, paste into your agent, done.
Indexes and namespaces
Copy the prompt
Copied
List the indexes in my Pinecone project.
Copy the prompt
Copied
Show the record statistics for my index.
Copy the prompt
Copied
List the namespaces in my index.
Search and fetch
Copy the prompt
Copied
Search my support-docs namespace for "reset two-factor authentication".
Copy the prompt
Copied
Fetch the records whose metadata has team equal to billing.
Copy the prompt
Copied
Find the records most similar to this vector.
Embed and rerank
Copy the prompt
Copied
List the embedding models Pinecone hosts.
Copy the prompt
Copied
Generate embeddings for these 3 sentences.
Copy the prompt
Copied
Rerank these documents by relevance to my query.
SEE HOW AUTH WORKS
Each user connects their own Pinecone API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Pinecone
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Pinecone
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Pinecone
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Pinecone
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other databases and AI connectors.
Support and Ops Teams
Support triage agent
Fetches new Zendesk tickets, classifies them by type and urgency, searches the Notion knowledge base for an answer, and routes what it cannot resolve to Slack. Every call runs on the support agent's own delegated OAuth.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other databases and AI connectors.
SUPPORT
Support triage agent
Classify new Zendesk tickets, search the Notion knowledge base for an answer, and route what it cannot resolve to Slack.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Pinecone API key looks fine in a demo. In production every upsert looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Pinecone today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Pinecone as the user or through a shared key?
As the user. Each user connects their own Pinecone API key once, and Scalekit sends it with every call. Searches, upserts, and deletes the agent makes are attributed to that user in your audit trail, not a shared service account.
Where is the Pinecone API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Pinecone?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search and fetch tools without pinecone_index_delete, pinecone_namespace_delete, or pinecone_vectors_delete, which permanently remove data. 3 of the 22 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Pinecone access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which Pinecone project and index does the agent work in?
The API key belongs to one Pinecone project, and pinecone_indexes_list shows that project's indexes. The record tools work on the index host of the connected account, and each takes a namespace.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""pinecone"": {
""url"": ""https://mcp.scalekit.com/pinecone"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.pinecone]
url = ""https://mcp.scalekit.com/pinecone""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""pinecone"": {
""url"": ""https://mcp.scalekit.com/pinecone"",
""type"": ""http""
}
}
}