Voyageai Cli
About
MCP server for Voyage AI embeddings, reranking, and MongoDB Atlas Vector Search. Provides 11 tools for semantic search, document ingestion, cost estimation, and model exploration. Full RAG pipeline: chunk, embed, vector search, and rerank from any MCP client.
Details
- Author
- mrlynn
- Downloads
- 429
- Categories
- Knowledge Base
Jump to
- 11 tools covering retrieval, embedding, management, utility, and ingestion
- Full RAG pipeline: vai_query, vai_search, vai_rerank
- Embedding generation with vai_embed and cosine similarity with vai_similarity
- List indexes (vai_collections) and browse models (vai_models)
- Learning tools: vai_topics, vai_explain, and cost calculator vai_estimate
- Ingestion pipeline: chunk, embed, and store documents via vai_ingest
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Voyageai CliCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install globally with npm install -g voyageai-cli, then run vai mcp install claude-code or vai mcp install all to configure the server for your agent. Alternatively, use npx without installation. Requirements: Node.js 20+, a Voyage AI API key (free at dash.voyageai.com), and a MongoDB Atlas cluster for retrieval/ingestion tools (utility tools work without it).
vai_query
Full RAG query: embeds the question with Voyage AI, runs vector search against MongoDB Atlas, and reranks results. Use this when you need to answer a question using the knowledge base.
vai_search
Raw vector similarity search without reranking. Faster than vai_query but results are ordered by vector distance only. Use for exploratory searches or when you plan to rerank separately.
vai_rerank
Rerank documents against a query using Voyage AI reranker. Takes a query and candidate documents, returns them reordered by relevance. Use when you have documents from another source and want to order them by relevance.
vai_embed
Embed text using a Voyage AI model and return the vector representation. Use when you need the raw embedding vector for custom similarity logic, storing in another system, or debugging.
vai_similarity
Compare two texts semantically by embedding both and computing cosine similarity. Returns a score from -1 (opposite) to 1 (identical). Use for duplicate detection, relevance checking, or topic comparison.
vai_multimodal_embed
Generate multimodal embeddings for text, images, and/or video using voyage-multimodal-3.5. Accepts base64 data URLs for media. At least one of text, image, or video must be provided. Supports combining multiple content types in a single embedding.
vai_collections
List available MongoDB collections with document counts and vector index information. Use at the start of a task to discover which knowledge bases exist, or when the user mentions a topic and you need to find the right collection.
vai_models
List available Voyage AI models with capabilities, benchmarks, and pricing. Use when selecting a model for embedding or reranking, or when the user asks about model tradeoffs.
vai_topics
List all available educational topics with summaries. Call this FIRST to discover what topics vai can explain — covers embeddings, vector search, RAG, reranking, model selection, multimodal, code generation, and more. Then use vai_explain to dive deep into any topic.
vai_explain
Get a detailed explanation of a topic. Covers embeddings, vector search, RAG, MoE architecture, shared space, quantization, multimodal, reranking, and more. If the exact topic isn't found, suggests similar topics. Use vai_topics first to browse available topics.
vai_estimate
Estimate costs for Voyage AI embedding and query operations at various scales. Use when planning ingestion, budgeting, or comparing model costs.
vai_ingest
Add a document to a collection: chunks the text, embeds each chunk with Voyage AI, and stores them in MongoDB Atlas. Use when the user provides new content to add to the knowledge base.
vai_index_workspace
Index a workspace/codebase for semantic code search. Recursively finds files, chunks content, generates embeddings, and stores in MongoDB. Use this to build a searchable knowledge base from a codebase.
vai_search_code
Semantic code search across an indexed codebase. Finds code snippets, functions, and documentation semantically related to your query. Use for understanding unfamiliar codebases or finding relevant code.
vai_explain_code
Get contextual explanation for code by finding relevant documentation and examples in the indexed knowledge base. Useful for understanding what code does or finding usage examples.
vai_code_index
Index a codebase for semantic code search. Accepts a local directory path or a GitHub repository URL. Uses voyage-code-3 by default for code-optimized embeddings. Supports incremental refresh — only re-embeds files that changed since last indexing. Creates a MongoDB Atlas vector search index automatically.
vai_code_search
Semantic code search across an indexed codebase. Finds functions, classes, modules, and documentation semantically related to your natural language query. Uses voyage-code-3 by default. Supports filtering by programming language and content category. Results include file paths, line numbers, symbols, and relevance scores.
vai_code_query
Full RAG query against an indexed codebase. Embeds your question, performs vector search, reranks results, and returns the most relevant code with context. Optimized for answering questions like "how does X work" or "where is Y implemented". Always reranks for best quality.
vai_code_find_similar
Find code semantically similar to a given snippet. Paste in a function, class, or code block and find related implementations across indexed codebases. Useful for finding duplicates, alternative implementations, or understanding patterns. Uses voyage-code-3 which understands both code structure and intent.
vai_code_status
Check the status of a code search index. Shows file count, chunk count, languages indexed, last indexing time, and vector search index health. Use this before searching to verify the index is ready, or to decide if a refresh is needed.
vai_generate_workflow
Generate a complete, executable vai workflow JSON from a natural language description. Returns the workflow definition, validation results, and execution plan. The generated workflow uses template expressions for step inputs and follows all vai workflow conventions.
vai_validate_workflow
Validate a vai workflow JSON definition. Checks for structural errors, unknown tools, circular dependencies, and missing references. Returns validation errors, warnings, execution plan layers, and the dependency graph.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"voyageai cli": {
"vai": {
"command": "npx",
"args": [
"voyageai-cli",
"mcp-server"
],
"env": {
"VOYAGE_API_KEY": "<YOUR_VOYAGE_API_KEY>"
}
}
}
}
}
McpServers
{
"vai": {
"command": "npx",
"args": [
"voyageai-cli",
"mcp-server"
],
"env": {
"VOYAGE_API_KEY": "<YOUR_VOYAGE_API_KEY>"
}
}
}
What is voyageai-cli?
An MCP server that gives AI agents access to Voyage AI's embedding and reranking models plus MongoDB Atlas Vector Search. Build RAG pipelines without leaving your agent.Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


