Labsco
taishikato logo

Supavec MCP Server

โ˜… 4

from taishikato

Fetch relevant content from Supavec, a vector database service.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

Supavec MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to fetch relevant embeddings and content from Supavec.

Features

  • ๐Ÿ” Fetch Embeddings: Search and retrieve relevant content from Supavec files using embeddings
  • ๐Ÿค– AI Integration: Works with Cursor, Claude, VS Code Copilot, and other MCP-compatible tools
  • ๐Ÿ”‘ Flexible Authentication: Support for both command-line arguments and environment variables
  • โšก Easy Setup: One-command installation via npx

Authentication

Get Your API Key

  1. Visit Supavec
  2. Sign up or log in to your account
  3. Navigate to your API settings
  4. Generate a new API key

Usage Priority

The server checks for API keys in this order:

  1. --api-key command line argument (highest priority)
  2. SUPAVEC_API_KEY environment variable

Available Tools

fetch-embeddings

Fetch embeddings for a file by ID and query.

Parameters:

  • file_id (string, required): ID of the file to get embeddings for
  • query (string, required): Query to search for in the file

Example:

Ask your AI assistant: "Using Supavec, find information about 'authentication' in file abc123"

list-user-files

List all files uploaded to Supavec for the current user.

Parameters:

  • limit (number, optional): Number of files to fetch (default: 10)
  • offset (number, optional): Offset for pagination (default: 0)
  • order_dir (string, optional): Order direction for results - "asc" or "desc" (default: "desc")

Example:

Ask your AI assistant: "List my Supavec files" or "Show me the first 20 files from my Supavec account"

Response includes:

  • File ID and name
  • File type and creation date
  • Team ID
  • Pagination information

Examples

Using with Cursor

  1. Configure Supavec MCP in .cursor/mcp.json
  2. Open Cursor and start a new chat
  3. Ask: "Search for 'database setup' information in my Supavec file xyz789"
  4. The AI will use the Supavec MCP to fetch relevant content

Using with Claude

  1. Configure Supavec MCP in Claude settings
  2. In a conversation, ask: "Find documentation about API endpoints in file abc123"
  3. Claude will search your Supavec files and return relevant information

Development

Requirements

  • Node.js 16.0.0 or higher
  • TypeScript

Setup

git clone https://github.com/supavec/mcp-server.git
cd supavec-mcp-server
npm install
npm run build

Testing

# Test with MCP Inspector
npm run inspector

# Test command line
npm run build
node build/index.js --help

Support