SuperAPIAI Directory

vectara-mcp

github.com · AI developer platforms

Access Vectara's RAG-as-a-service platform.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Vectara MCP Server is an open-source MCP server provided by Vectara, used to connect Vectara's Trusted RAG platform to agent applications that support the MCP protocol. MCP (Model Context Protocol) is an open standard that enables AI systems to securely connect bidirectionally with various data sources and tools. Through this server, any agent application can obtain fast, reliable, and less hallucination-prone RAG capabilities via the Vectara platform.

Main capabilities The server provides the following tools:

  • setup_vectara_api_key: Configures and validates the Vectara API key for the current session (one-time setup), returning a masked key confirmation or validation error.
  • clear_vectara_api_key: Clears the stored API key from the server memory, returning a confirmation message.
  • ask_vectara: Uses Vectara to perform a RAG query, returning search results and the generated answer. Parameters include the query statement, a list of corpus keys (required), and optional parameters such as the number of sentences to include before and after the answer, lexical interpolation, maximum number of search results, generation preset name, and response language.
  • search_vectara: Uses Vectara to perform a semantic search query without generation, returning matching search results.
  • correct_hallucinations: Uses Vectara's VHC (hallucination correction) API to identify and correct hallucinations in generated text. It requires the generated text and source documents, optionally provides the original query, and returns a JSON string containing the corrected text and detailed correction information.
  • eval_factual_consistency: Uses Vectara's factual consistency evaluation API to evaluate the factual consistency of generated text relative to source documents, returning a JSON string containing the evaluation results and score.

Usage This package can be installed directly via PyPI. The server supports two transport modes:

  • HTTP transport (default, recommended): Built-in bearer token-based authentication, supports HTTPS, a default rate limit of 100 requests per minute, configurable CORS origin validation, suitable for production deployments and cloud environments.
  • SSE transport: Supports Server-Sent Events real-time updates and bearer token authentication, compatible with legacy MCP clients, suitable for real-time streaming applications.
  • STDIO transport: No transport layer security, low local communication latency, suitable for local development and Claude Desktop, and must be explicitly enabled via the --stdio flag.

When using HTTP or SSE transport, authentication is required by default, and authentication can be disabled in development environments via --no-auth. The API key can be configured through the setup_vectara_api_key tool or the VECTARA_API_KEY environment variable.

When used with Claude Desktop, STDIO transport must be enabled in the configuration. After installation and configuration are complete, you must fully close and reopen the Claude Desktop application. You will then see a hammer icon in the lower-left corner of the application. Clicking it will show detailed information about the Vectara search and extraction tools, after which Claude can access all six Vectara tools.

Security best practices

  • Always use HTTP transport in production environments, and never expose STDIO transport to the network.
  • Keep authentication enabled, and use --no-auth to disable it only during local testing.
  • Use HTTPS in production environments, deployed behind a reverse proxy with TLS termination.
  • Configure CORS correctly, restricting access via VECTARA_ALLOWED_ORIGINS.
  • Rotate API keys regularly, updating VECTARA_API_KEY and VECTARA_AUTHORIZED_TOKENS.
  • Monitor rate limits, which default to 100 requests per minute and can be adjusted as needed.

Applicable scenarios Suitable for scenarios that need to connect reliable RAG capabilities to agent applications, including production deployments, cloud environments, real-time streaming applications, and local development and Claude Desktop integration.

Limitations STDIO transport has no transport layer security and is only suitable for local use; HTTP/SSE transport requires authentication by default; the API key must be configured before using the tools.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools