Vectara

Vectara

Query Vectara's trusted RAG-as-a-service platform.

26
Stars
8
Forks
0
Releases

Overview

The Vectara MCP Server implements the Model Context Protocol (MCP) as a secure gateway to Vectara's Trusted RAG platform. It enables AI agents and applications to interact with data sources and tools through MCP, delivering fast, reliable search and generation with reduced hallucination. Compatible with Claude Desktop and any MCP client, it supports multiple transport modes (HTTP/SSE and STDIO) to cover production deployments and local development. By default, the HTTP/SSE transport is secured with bearer token authentication and can be configured to enforce TLS, CORS, and origin restrictions. STDIO mode offers low-latency local communication suitable for desktop workflows, but is explicitly less secure and must be enabled with the --stdio flag. Configuration is flexible via command-line options (--host, --port, --transport, --path, --no-auth) and environment variables (VECTARA_API_KEY, VECTARA_AUTHORIZED_TOKENS, VECTARA_ALLOWED_ORIGINS, VECTARA_TRANSPORT, VECTARA_AUTH_REQUIRED). The server exposes a set of tools (ask_vectara, search_vectara, correct_hallucinations, eval_factual_consistency) and API-key management utilities (setup_vectara_api_key, clear_vectara_api_key) for end-to-end workflows. Claude Desktop integration provides sample configurations for STDIO transport.

Details

Owner
vectara
Language
Python
License
Apache License 2.0
Updated
2025-12-07

Features

Secure HTTP/SSE Transport with Authentication

Default secure HTTP transport with bearer token authentication, HTTPS readiness, rate limiting, and configurable CORS/origin protection.

STDIO Transport for Local Development

Low-latency local communication for development and Claude Desktop; explicitly less secure and enabled with --stdio.

Configurable Host, Port, and Transport Modes

Customize host, port, and path; select HTTP, SSE, or STDIO transport, with an option to disable authentication for development.

Environment Variable-based Configuration

Configure API keys, allowed origins, transport defaults, and auth requirements via environment variables.

Tool Suite: RAG and Analysis Tools

Expose ask_vectara, search_vectara, correct_hallucinations, and eval_factual_consistency APIs for end-to-end workflows.

API Key Management Utilities

Tools to setup and clear Vectara API keys for secure session management.

Claude Desktop Compatibility

Designed to work with Claude Desktop via STDIO, with configuration examples for seamless integration.

Security Best Practices

Guidance for production security, including HTTPS/TLS, authentication, rotation of keys, and proper CORS configuration.

Audience

AI developersIntegrate Vectara's RAG via MCP into applications and autonomous agents.
Claude DesktopConfigure and run Vectara MCP with Claude Desktop for local testing.
MCP clientsConnect and query Vectara using MCP-compatible clients across tools and workflows.

Tags

MCPRAGVectaraClaude DesktopHTTPSSESTDIOAuthenticationSecurityAPI KeyOpen standard