KosmoKrator

database

Pinecone MCP Integration for Vercel AI SDK

Connect Pinecone to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 5 read 2 write Bearer token auth

Connect Pinecone to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Pinecone MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-pinecone": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=pinecone",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=pinecone --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Pinecone instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Pinecone Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Pinecone integration catalog.

MCP toolSource functionTypeDescription
integration__pinecone__pinecone_list_indexes pinecone.pinecone_list_indexes Read List all vector indexes in your Pinecone project. Returns index names, dimensions, metrics, and status.
integration__pinecone__pinecone_get_index pinecone.pinecone_get_index Read Get detailed information about a specific Pinecone vector index, including its dimension, metric, host URL, and status.
integration__pinecone__pinecone_create_index pinecone.pinecone_create_index Write Create a new serverless vector index in Pinecone. Specify the index name, vector dimension, and similarity metric (cosine, euclidean, or dotproduct).
integration__pinecone__pinecone_upsert_vectors pinecone.pinecone_upsert_vectors Write Upsert vectors into a Pinecone index using an index host URL.
integration__pinecone__pinecone_query_vectors pinecone.pinecone_query_vectors Read Search for similar vectors in a Pinecone index using a query embedding.
integration__pinecone__pinecone_list_collections pinecone.pinecone_list_collections Read List all collections in your Pinecone project. Collections are static snapshots of indexes used for backups or creating new indexes.
integration__pinecone__pinecone_get_current_user pinecone.pinecone_get_current_user Read Get information about the currently authenticated Pinecone user, including email, name, and project details.

Related Pinecone Pages