Skip to main content
Glama

Pinecone Developer MCP

Official
by pinecone-io
describe-index.ts642 B
import {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js'; import {Pinecone} from '@pinecone-database/pinecone'; import {z} from 'zod'; const INSTRUCTIONS = 'Describe the configuration of a Pinecone index'; const SCHEMA = { name: z.string().describe('The index to describe.'), }; export function addDescribeIndexTool(server: McpServer, pc: Pinecone) { server.tool('describe-index', INSTRUCTIONS, SCHEMA, async ({name}) => { const indexInfo = await pc.describeIndex(name); return { content: [ { type: 'text', text: JSON.stringify(indexInfo, 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