2,500+ MCP servers ready to use
Vinkius

Vectara MCP Server for Mastra AI 7 tools — connect in under 2 minutes

Built by Vinkius GDPR 7 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Vectara through the Vinkius and Mastra agents discover all tools automatically — type-safe, streaming-ready, and deployable anywhere Node.js runs.

Vinkius supports streamable HTTP and SSE.

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token — get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "vectara": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "Vectara Agent",
    instructions:
      "You help users interact with Vectara " +
      "using 7 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with Vectara?"
  );
  console.log(result.text);
}

main();
Vectara
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Vectara MCP Server

Connect your Vectara environment to any AI agent to unlock enterprise-grade Retrieval-Augmented Generation (RAG) and semantic search directly inside your conversational IDE or workspace.

Mastra's agent abstraction provides a clean separation between LLM logic and Vectara tool infrastructure. Connect 7 tools through the Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution — deployable to any Node.js host in one command.

What you can do

  • Semantic Search — Query your indexed private corpora naturally and return highly relevant, grounded documents without traditional keyword matching limitations.
  • Conversational RAG — Execute fully-fledged interactive chats leveraging Vectara's backend to provide detailed, cited answers strictly based on your secure documents.
  • Corpus Management — List all available data corpora, retrieve unique keys, and discover the shape of your indexed data environment on the fly.
  • Document Auditing — Monitor specific document indexes within a corpus, verify correct ingestions, or permanently delete obsolete files avoiding polluted search results.

The Vectara MCP Server exposes 7 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect Vectara to Mastra AI via MCP

Follow these steps to integrate the Vectara MCP Server with Mastra AI.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

Mastra discovers 7 tools from Vectara via MCP

Why Use Mastra AI with the Vectara MCP Server

Mastra AI provides unique advantages when paired with Vectara through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure — add Vectara without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every Vectara tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host — Vercel, Railway, Fly.io, or your own infrastructure

Vectara + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the Vectara MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query Vectara, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed Vectara as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query Vectara on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using Vectara tools alongside other MCP servers

Vectara MCP Tools for Mastra AI (7)

These 7 tools become available when you connect Vectara to Mastra AI via MCP:

01

delete_corpus_document

This action is irreversible. Permanently removes a document from a corpus

02

execute_rag_chat

Provide corpus keys and the user query to get a summarized AI response with citations. Executes a RAG-powered chat completion

03

get_corpus_details

Retrieves metadata and configuration for a specific corpus

04

list_chat_sessions

Lists previous RAG chat sessions

05

list_corpora

Lists all corpora (searchable datasets) in the Vectara account

06

list_corpus_documents

Lists all indexed documents within a specific corpus

07

perform_semantic_search

Provide one or more comma-separated corpus keys and the query text. Executes a semantic search across one or more corpora

Example Prompts for Vectara in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with Vectara immediately.

01

"List all configured knowledge corpora I have in Vectara."

02

"Query corpus `cor-81a` for instructions on 'rolling back kubernetes pods' and show only the top 3 best matching results."

03

"List all active chat context session IDs for the last week."

Troubleshooting Vectara MCP Server with Mastra AI

Common issues when connecting Vectara to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

Vectara + Mastra AI FAQ

Common questions about integrating Vectara MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

Connect Vectara to Mastra AI

Get your token, paste the configuration, and start using 7 tools in under 2 minutes. No API key management needed.