Skip to main content
Glama

Pinecone Developer MCP

Official
by pinecone-io
list-indexes.ts500 B
import {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js'; import {Pinecone} from '@pinecone-database/pinecone'; const INSTRUCTIONS = `List all Pinecone indexes`; export function addListIndexesTool(server: McpServer, pc: Pinecone) { server.tool('list-indexes', INSTRUCTIONS, {}, async ({}) => { const indexes = await pc.listIndexes(); return { content: [ { type: 'text', text: JSON.stringify(indexes, null, 2), }, ], }; }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinecone-io/pinecone-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server