@dotlab-hq/vector-store-mcp
Manage OpenAI vector stores, files, file batches, and perform semantic search through the OpenAI Vector Store API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@dotlab-hq/vector-store-mcpsearch my vector store for 'machine learning basics'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@dotlab-hq/vector-store-mcp
MCP (Model Context Protocol) server for the OpenAI Vector Store API. Manage vector stores, files, file batches, and perform semantic search — all through a single MCP server.
Supports two transports:
stdio — for local use with Claude Desktop, VS Code Copilot, or any MCP-compatible client
HTTP (Streamable) — for deployment as a web service
Features
21 tools covering the full OpenAI Vector Store API
Fully typed with TypeScript + Zod schema validation
Uses the official OpenAI Node SDK
Two entry points: local stdio and HTTP server
Zero-config for local development
Related MCP server: MCP RAG
Installation
# Clone and install
git clone <repo-url>
cd vector-store-mcp
npm install
# Build
npm run buildEnvironment Variables
Variable | Required | Description |
| Yes | Your OpenAI API key |
| No | Custom OpenAI API base URL (for proxies/compatible APIs) |
| No | HTTP server port (default: |
| No | HTTP server host (default: |
Usage
Local (stdio) — Recommended for Desktop Clients
# Run directly
npm start
# Or with dev watch mode
npm run devHTTP Server — For Deployment
# Start the HTTP server
npm run start:http
# Or with dev watch mode
npm run dev:httpThe HTTP server exposes:
GET /health— Health checkPOST /mcp— MCP Streamable HTTP endpointCORS enabled for all origins in development
Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"vector-store": {
"command": "npx",
"args": ["-y", "@dotlab-hq/vector-store-mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your workspace root:
{
"servers": {
"vector-store": {
"command": "npx",
"args": ["-y", "@dotlab-hq/vector-store-mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}Windows users:
npxmay fail with'vector-store-mcp' is not recognizeddue to a known Windows shim resolution issue. To fix this, link the package globally once:npm link @dotlab-hq/vector-store-mcpThen use the direct command in
.vscode/mcp.json:{ "servers": { "vector-store": { "command": "vector-store-mcp", "args": [], "env": { "OPENAI_API_KEY": "your-api-key-here" } } } }
HTTP/Web Clients
With HTTP-based MCP, the server holds the credentials — the client only needs the URL. The API key and base URL are passed as environment variables when starting the server, not in the client config.
1. Start the server with your credentials:
# Pass env vars directly
OPENAI_API_KEY=sk-... npm run start:http
# Or use a .env file / shell profile to set them
export OPENAI_API_KEY=sk-...
export OPENAI_API_BASE=https://your-proxy.example.com/v1 # optional
npm run start:http
# Server running at http://127.0.0.1:3000/mcp2. Connect from your MCP client — just the URL, no keys needed:
VS Code .vscode/mcp.json:
{
"servers": {
"vector-store": {
"url": "http://127.0.0.1:3000/mcp",
"type": "http"
}
}
}Any MCP-compatible HTTP client:
POST http://127.0.0.1:3000/mcp
Content-Type: application/jsonHow it works: The server process reads
OPENAI_API_KEYfrom its own environment and uses it for all OpenAI API calls. The MCP client never sees or transmits the key — it just sends tool requests to the server URL. This means you can run the server anywhere (local, cloud, Docker) and point multiple clients at it.
Programmatic API
You can also use this as a library:
import {
McpServer,
registerAllTools,
getClient,
resetClient,
} from "@dotlab-hq/vector-store-mcp";
const server = new McpServer({ name: "my-server", version: "1.0.0" });
registerAllTools(server);Tools (21)
Vector Stores (6)
Tool | Description |
| Create a new vector store |
| Retrieve a vector store by ID |
| Update a vector store's name or metadata |
| Delete a vector store |
| List all vector stores with pagination and filtering |
| Search a vector store with a query string and optional filters |
Files (4)
Tool | Description |
| List files with filtering by purpose, status, and pagination |
| Retrieve file metadata by ID |
| Delete a file by ID |
| Download the content of a file by ID |
Vector Store Files (6)
Tool | Description |
| Attach a file to a vector store with optional attributes |
| List files in a vector store with filtering and pagination |
| Retrieve a specific file in a vector store |
| Remove a file from a vector store |
| Download file content from a vector store |
| Update attributes on a vector store file |
File Batches (4)
Tool | Description |
| Create a batch of files for a vector store |
| Retrieve batch status and details |
| Cancel an in-progress batch |
| List files in a specific batch |
Upload (1)
Tool | Description |
| Upload a file to OpenAI (for use with vector stores) |
npm Scripts
Script | Description |
| Run stdio transport (local) |
| Run HTTP transport (deployment) |
| Dev mode with watch (stdio) |
| Dev mode with watch (HTTP) |
| Compile TypeScript |
| Remove dist/ |
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/dotlab-hq/vector-store-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server