Cover image
Try Now
2025-04-14

Open source MCP server for Vectara

3 years

Works with Finder

6

Github Watches

1

Github Forks

6

Github Stars

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": "/Users/ofer/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/ofer/dev/vectara-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

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 ✨

相关推荐

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • sigoden
  • Easily create LLM tools and agents using plain Bash/JavaScript/Python functions.

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信(企业微信、个人微信)/ 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 ChatGPT、DeepSeek、Dify、Claude、Gemini、xAI、PPIO、Ollama、LM Studio、阿里云百炼、火山方舟、SiliconFlow、Qwen、Moonshot、ChatGLM、SillyTraven、MCP 等 LLM 的机器人 / Agent | LLM-based instant messaging bots platform, supports Discord, Telegram, WeChat, Lark, DingTalk, QQ, Slack

  • tawago
  • Artifact2MCP Generator allows generation of MCP server automatically & dynamically given smart contract's compiled artifact (chain‑agnostic)

  • paulwing
  • A test repository created using MCP service

  • modelscope
  • Start building LLM-empowered multi-agent applications in an easier way.

  • yamadashy
  • 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.

  • ragu6963
  • Reviews

    2.9 (9)
    Avatar
    user_9t9oxwd9
    2025-04-23

    I've been using vectara-mcp and it has exceeded my expectations in every way. The interface is user-friendly, and it integrates seamlessly with my current setup. Additionally, the support from the vectara team is top-notch, always ready to help with any queries. Highly recommend this product for anyone in need of a robust and reliable solution.

    Avatar
    user_GpoddOHg
    2025-04-23

    Vectara-MCP is a phenomenal tool that has significantly improved my experience with its intuitive interface and robust functionality. It has seamlessly integrated into my workflow, making complex tasks simpler and more efficient. I highly recommend this product to anyone seeking a reliable and powerful solution for their computing needs. Thank you, Vectara, for this outstanding application!

    Avatar
    user_ZV6GYEyv
    2025-04-23

    Vectara-MCP is a highly reliable and efficient application that has significantly improved my workflow. The user interface is intuitive, and the support from Vectara is excellent. The seamless integration with other tools makes it an indispensable part of my daily tasks. Highly recommended!

    Avatar
    user_L1V9sDSl
    2025-04-23

    Vectara-mcp is a game-changer in the application landscape. Thanks to vectara, this product stands out for its impressive performance and user-friendly interface. It’s intuitive and extremely efficient, making tasks seamless and less time-consuming. Whether you’re a novice or a seasoned pro, vectara-mcp is indispensable for enhancing productivity. Highly recommended!

    Avatar
    user_yMxAZABG
    2025-04-23

    Vectara-MCP is a phenomenal application that has significantly improved my productivity. As a loyal user, I've found its features to be incredibly intuitive and helpful for my daily tasks. The seamless interface and efficient performance make Vectara-MCP stand out among other applications. Highly recommend giving it a try if you want to enhance your workflow.

    Avatar
    user_KCa1gNC4
    2025-04-23

    Vectara-MCP is an outstanding application that has significantly improved my workflow. The user interface is intuitive and the performance is top-notch. I appreciate how it integrates seamlessly with other tools in my daily routine. It’s clear that the developers put a lot of thought into creating a user-friendly experience. Highly recommend this to anyone in need of a reliable and efficient MCP solution!

    Avatar
    user_9b1z6UlO
    2025-04-23

    As a devoted user of vectara-mcp, I must say this application has significantly improved my workflow. Its user-friendly interface, coupled with robust features, ensures a seamless experience. Vectara has truly outdone itself with this product. Highly recommend it to anyone looking to optimize their productivity tools!

    Avatar
    user_22Jj0nCf
    2025-04-23

    As a devoted user of vectara-mcp, I am thoroughly impressed by its efficiency and user-friendly interface. The seamless integration and robust features certainly set it apart from other applications. Whether it's for professional or personal use, vectara-mcp proves to be a reliable and invaluable tool. Highly recommended!

    Avatar
    user_e35jXVJG
    2025-04-23

    As a dedicated user of the vectara-mcp application, I am thoroughly impressed by its seamless integration and user-friendly interface. This tool has significantly enhanced my productivity by providing swift and accurate solutions to complex tasks. The continual updates and excellent support from vectara ensure that the application stays relevant and efficient. Highly recommended for anyone looking to streamline their workflow and achieve better results.