Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

vectara-mcp

MCP.Pizza Chef: vectara

Vectara MCP is an open source MCP server that integrates Vectara's Trusted RAG platform to provide fast, reliable retrieval-augmented generation (RAG) with reduced hallucination. Compatible with any MCP client including Claude Desktop, it enables agentic applications to securely access and query Vectara-powered data sources through the Model Context Protocol. Easy to install via PyPI, it supports running RAG queries that return search results alongside generated responses, enhancing AI workflows with trustworthy information retrieval.

Use This MCP server To

Integrate Vectara RAG into AI agent workflows Enable fast, reliable search with reduced hallucination Provide secure two-way data access via MCP Run RAG queries returning search results and generated answers Connect any MCP client to Vectara's Trusted RAG platform Enhance AI applications with trusted retrieval-augmented generation

README

Vectara MCP Server

GitHub Repo stars PyPI version License

🔌 Compatible with Claude Desktop, and any other MCP Client!

Vectara MCP is also compatible with any MCP client

The Model Context Protocol (MCP) is an open standard that enables AI systems to interact seamlessly with various data sources and tools, facilitating secure, two-way connections.

Vectara-MCP provides any agentic application with access to fast, reliable RAG with reduced hallucination, powered by Vectara's Trusted RAG platform, through the MCP protocol.

Installation

You can install the package directly from PyPI:

pip install vectara-mcp

Available Tools

  • ask_vectara: Run a RAG query using Vectara, returning search results with a generated response.

    Args:

    • query: str, The user query to run - required.
    • corpus_keys: list[str], List of Vectara corpus keys to use for the search - required. Please ask the user to provide one or more corpus keys.
    • api_key: str, The Vectara API key - required.
    • n_sentences_before: int, Number of sentences before the answer to include in the context - optional, default is 2.
    • n_sentences_after: int, Number of sentences after the answer to include in the context - optional, default is 2.
    • lexical_interpolation: float, The amount of lexical interpolation to use - optional, default is 0.005.
    • max_used_search_results: int, The maximum number of search results to use - optional, default is 10.
    • generation_preset_name: str, The name of the generation preset to use - optional, default is "vectara-summary-table-md-query-ext-jan-2025-gpt-4o".
    • response_language: str, The language of the response - optional, default is "eng".

    Returns:

    • The response from Vectara, including the generated answer and the search results.

  • search_vectara: Run a semantic search query using Vectara, without generation.

    Args:

    • query: str, The user query to run - required.
    • corpus_keys: list[str], List of Vectara corpus keys to use for the search - required. Please ask the user to provide one or more corpus keys.
    • api_key: str, The Vectara API key - required.
    • n_sentences_before: int, Number of sentences before the answer to include in the context - optional, default is 2.
    • n_sentences_after: int, Number of sentences after the answer to include in the context - optional, default is 2.
    • lexical_interpolation: float, The amount of lexical interpolation to use - optional, default is 0.005.

    Returns:

    • The response from Vectara, including the matching search results.

Configuration with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "Vectara": {
      "command": "uv",
      "args": [
        "tool",
        "run",
        "vectara-mcp"
      ]
    }
  }
}

Usage in Claude Desktop App

Once the installation is complete, and the Claude desktop app is configured, you must completely close and re-open the Claude desktop app to see the Vectara-mcp server. You should see a hammer icon in the bottom left of the app, indicating available MCP tools, you can click on the hammer icon to see more detial on the Vectara-search and Vectara-extract tools.

Now claude will have complete access to the Vectara-mcp server, including the ask-vectara and search-vectara tools. When you issue the tools for the first time, Claude will ask you for your Vectara api key and corpus key (or keys if you want to use multiple corpora). After you set those, you will be ready to go. Here are some examples you can try (with the Vectara corpus that includes information from our website:

Vectara RAG Examples

  1. Querying Vectara corpus:
ask-vectara Who is Amr Awadallah?
  1. Searching Vectara corpus:
search-vectara events in NYC?

Acknowledgments ✨

  • Model Context Protocol for the MCP specification
  • Anthropic for Claude Desktop

vectara-mcp FAQ

How do I install vectara-mcp?
Install vectara-mcp easily using pip with the command `pip install vectara-mcp` from PyPI.
Which MCP clients are compatible with vectara-mcp?
Vectara MCP is compatible with any MCP client, including Claude Desktop and others.
What functionality does the ask_vectara tool provide?
The ask_vectara tool runs RAG queries using Vectara, returning search results along with generated responses to reduce hallucination.
How does vectara-mcp improve retrieval-augmented generation?
It leverages Vectara's Trusted RAG platform to provide fast, reliable search results with reduced hallucination, improving answer accuracy.
Is vectara-mcp open source?
Yes, vectara-mcp is an open source MCP server available on GitHub.
Can vectara-mcp be used with multiple LLM providers?
Yes, vectara-mcp works with any MCP client, enabling integration with LLMs like OpenAI, Claude, and Gemini.
What protocols does vectara-mcp support?
It supports the Model Context Protocol (MCP) for secure, two-way communication between AI systems and data sources.
Does vectara-mcp require special configuration?
Basic installation is simple via pip; configuration depends on your Vectara account and MCP client setup.