Skip to main content

MCP Server Guide

vai includes a Model Context Protocol (MCP) server that exposes embedding, search, reranking, and knowledge management tools to AI-powered editors like Claude Desktop, Cursor, Windsurf, and VS Code.

What is MCP?

The Model Context Protocol is a standard for connecting AI assistants to external tools. When you install vai as an MCP server, your AI editor can:

  • Search your knowledge base with natural language
  • Embed and store documents directly from the editor
  • Compare text similarity inline
  • Explain RAG concepts on demand
  • List models and collections for context

Quick Setup

# Install into all supported AI tools
vai mcp install all

# Verify installation
vai mcp status

That's it. Restart your AI tool and vai's 11 tools will be available.

Supported Tools

ToolWhat It Does
vai_queryFull RAG query (embed → search → rerank)
vai_searchVector search without reranking
vai_embedGenerate an embedding
vai_similarityCompare two texts
vai_ingestChunk, embed, and store a document
vai_collectionsList database collections
vai_modelsList available models
vai_topicsBrowse educational topics
vai_explainGet concept explanations

How It Works

Next Steps