Vectara MCP logo

Vectara MCP

by vectara

Connects MCP clients to Vectara for RAG queries, semantic search, hallucination correction, and factual consistency evaluation.

Install Vectara MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "vectara-vectara-mcp": {
      "command": "uvx",
      "args": [
        "vectara-mcp"
      ],
      "env": {
        "VECTARA_API_KEY": "YOUR_VALUE_HERE",
        "VECTARA_AUTHORIZED_TOKENS": "YOUR_VALUE_HERE",
        "VECTARA_ALLOWED_ORIGINS": "YOUR_VALUE_HERE",
        "VECTARA_TRANSPORT": "YOUR_VALUE_HERE",
        "VECTARA_AUTH_REQUIRED": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx vectara-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The vectara/vectara-mcp MCP server connects MCP clients to Vectara's Trusted RAG platform. It exposes tools for generated RAG answers, semantic search, API key management, hallucination correction, and factual consistency evaluation. The server runs over authenticated HTTP by default, with SSE and explicitly enabled STDIO modes available for different deployment needs. Reach for it when an agent needs to query Vectara corpora or check generated text against source documents.

Use cases

  • Query Vectara corpora with generated answers
  • Search Vectara semantically without generation
  • Correct hallucinations against source documents
  • Evaluate factual consistency of generated text

Key features

  • Generated RAG queries with search results
  • Semantic search without generation
  • Session API key setup and clearing
  • Hallucination correction with VHC
  • Factual consistency scoring
  • HTTP, SSE, and STDIO transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · vectara-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars30Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Vectara MCP works

What vectara/vectara-mcp MCP server does

The vectara/vectara-mcp MCP server gives MCP-compatible applications access to Vectara's retrieval and generation APIs. Agents can submit questions against one or more Vectara corpus keys, receive generated answers with search results, or run retrieval without response generation.

It also exposes analysis operations for checking generated text against supplied source documents. One tool identifies and corrects hallucinations through Vectara's VHC API, while another evaluates factual consistency and returns scoring information. API key tools let an agent configure a key for the session or remove the stored key from server memory.

How it works

The server is packaged for Python and can be installed from PyPI with pip install vectara-mcp. Running python -m vectara_mcp starts HTTP transport on the default address and port, with authentication enabled. SSE can be selected for server-sent event streaming and compatibility with legacy MCP clients. STDIO is available with --stdio for local development and desktop clients.

HTTP and SSE requests use bearer-token authentication by default, and the API key can also be supplied through an X-API-Key header. HTTP mode includes a default rate limit of 100 requests per minute and configurable origin validation. The upstream Vectara key must be available through the environment or configured with the setup tool before the other Vectara operations are used.

Setup and configuration

Install the package, set VECTARA_API_KEY, and start the process using the transport appropriate for the deployment. Host and port can be changed with --host and --port; SSE also accepts a custom path. Authentication can be disabled with --no-auth, but the documentation restricts that option to development use.

For Claude Desktop, configure a command that runs python -m vectara_mcp --stdio and pass the API key in the process environment. The server must be enabled with STDIO for this desktop configuration. After changing the Claude Desktop configuration, fully restart the application so the tools become available.

Additional settings include VECTARA_AUTHORIZED_TOKENS for extra HTTP/SSE tokens, VECTARA_ALLOWED_ORIGINS for CORS origin restrictions, VECTARA_TRANSPORT for the transport mode, and VECTARA_AUTH_REQUIRED for authentication enforcement. Production deployments should use HTTPS, keep authentication enabled, and avoid exposing STDIO over a network.

Tools and capabilities

The vectara/vectara-mcp MCP server provides these tool groups:

  • setup_vectara_api_key validates and stores a session API key; clear_vectara_api_key removes it from memory.
  • ask_vectara accepts a query and corpus keys, then returns a generated answer and matching search results. Options control surrounding context, lexical interpolation, result count, generation preset, and response language.
  • search_vectara performs semantic retrieval against selected corpora without generation.
  • correct_hallucinations compares generated text with source documents and returns corrected text plus correction details.
  • eval_factual_consistency evaluates generated text against source documents and returns factual-consistency results and scores.

Limitations and notes

STDIO has no transport-layer security and is described as suitable for local development or Claude Desktop rather than network exposure. HTTP and SSE authentication is enabled by default, while disabling it is explicitly marked as unsafe for production. Queries require corpus keys, and the analysis tools require both generated text and source documents.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Vectara MCP

vectara/vectara-mcp is an MCP server that connects MCP clients to Vectara's Trusted RAG platform. Its main tools run generated RAG queries, perform semantic search, configure or clear an API key, correct hallucinations, and evaluate factual consistency against supplied source documents.

Install it from PyPI with `pip install vectara-mcp`. Set `VECTARA_API_KEY`, then start it with `python -m vectara_mcp` for authenticated HTTP or add `--stdio` for local development and Claude Desktop.

Set the `VECTARA_API_KEY` environment variable or call `setup_vectara_api_key` once per session. The setup tool validates and stores the key, and `clear_vectara_api_key` removes it from server memory.

Yes, it works with Claude Desktop through STDIO transport. Configure Claude Desktop to run `python -m vectara_mcp --stdio`, provide `VECTARA_API_KEY` in the environment, and restart the application after saving the configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewVectara MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/vectara-vectara-mcp?style=directory)](https://allmcps.com/mcp/vectara-vectara-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/vectara-vectara-mcp"><img src="https://allmcps.com/api/badge/vectara-vectara-mcp?style=directory" alt="Vectara MCP on AllMCPs" /></a>