Voyage AI MCP by usefulapi

v1.2.1
io.usefulapi/voyage-ai Checked 3 days ago Published 2 days ago

Create text embeddings and rerank documents; read and cancel Batch API jobs in Voyage AI.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

voyage_create_embeddings Create text embeddings

Turn one text or a list of up to 128 texts into embedding vectors with a Voyage text model (for example voyage-4, voyage-4-large, voyage-4-lite, voyage-3.5). Use input_type 'query' or 'document' for search. Billed by tokens. Voyage API: POST /embeddings.

ParameterTypeDescription
input *A text, or a list of up to 128 texts.
model *stringModel name, for example voyage-4 or voyage-3.5.
input_typestringSet 'query' for search queries, 'document' for indexed documents.
output_dimensionintegerEmbedding size. Only some models accept other sizes (voyage-3-large and voyage-code-3: 256, 512, 1024, 2048).
truncationbooleanCut texts that are too long for the model context (default true). false makes an over-long text an error.

voyage_rerank Rerank documents

Score a list of up to 1000 documents against a query with a Voyage reranker (rerank-2 or rerank-2-lite) and return them ordered by relevance. Billed by tokens. Voyage API: POST /rerank.

ParameterTypeDescription
documents *arrayThe documents to rank (up to 1000).
model *stringReranker model, for example rerank-2 or rerank-2-lite.
query *stringThe query text.
return_documentsbooleanInclude the document text in each result (default false: index and score only).
top_kintegerReturn only the top K results. Default: all documents.
truncationbooleanCut query and documents that are too long for the reranker (default true).

voyage_list_files List files

List files uploaded to the organization for the Batch API, newest first by default. Optional purpose filter and cursor pagination. Voyage API: GET /files.

ParameterTypeDescription
afterstringCursor: the id of the last object on the previous page.
limitintegerMaximum number of objects to return (1-10000).
orderstringSort by created_at (default desc).
purposestringOnly files with this purpose.

voyage_get_file Get a file

Get metadata for one uploaded file by id (size, purpose, status). Voyage API: GET /files/{file_id}.

ParameterTypeDescription
file_id *stringThe file id.

voyage_list_batches List batches

List Batch API jobs for the organization, with their status and request counts. Voyage API: GET /batches.

ParameterTypeDescription
afterstringCursor: the id of the last object on the previous page.
limitintegerMaximum number of objects to return (1-10000).

voyage_get_batch Get a batch

Get one Batch API job by id: status (validating, in_progress, completed, failed, cancelling, cancelled), request counts and output file ids. Voyage API: GET /batches/{batch_id}.

ParameterTypeDescription
batch_id *stringThe batch id.

voyage_cancel_batch Cancel a batch

Cancel a Batch API job that is validating or in progress. The job moves to cancelling for up to 10 minutes, then cancelled. Other states cannot be cancelled. Voyage API: POST /batches/{batch_id}/cancel.

ParameterTypeDescription
batch_id *stringThe batch id.