Skip to main content
Glama
vectara

Vectara MCP server

Official
by vectara

Vectara MCP サーバー

GitHubリポジトリのスターPyPIバージョンライセンス

🔌 Claude Desktopおよびその他の MCP クライアントと互換性があります。

Vectara MCPは、あらゆるMCPクライアントと互換性があります。

モデル コンテキスト プロトコル (MCP) は、AI システムがさまざまなデータ ソースやツールとシームレスに対話し、安全な双方向接続を実現できるようにするオープン スタンダードです。

Vectara-MCP は、MCP プロトコルを通じて、Vectara の Trusted RAG プラットフォームを活用し、幻覚を軽減した高速で信頼性の高い RAG へのアクセスをあらゆるエージェント アプリケーションに提供します。

インストール

PyPI から直接パッケージをインストールできます。

pip install vectara-mcp

Related MCP server: mcp-rag-server

利用可能なツール

  • ask_vectara: Vectara を使用して RAG クエリを実行し、生成された応答とともに検索結果を返します。

    引数:

    • query: str、実行するユーザークエリ - 必須。

    • corpus_keys: list[str]、検索に使用するVectaraコーパスキーのリスト(必須)。ユーザーに1つ以上のコーパスキーを提供するよう依頼してください。

    • api_key: str、Vectara API キー - 必須。

    • n_sentences_before: int、コンテキストに含める回答の前の文の数 - オプション、デフォルトは 2。

    • n_sentences_after: int、コンテキストに含める回答後の文の数 - オプション、デフォルトは 2。

    • lexical_interpolation: float、使用する語彙補間の量 - オプション、デフォルトは 0.005。

    • max_used_search_results: int、使用する検索結果の最大数 - オプション、デフォルトは 10。

    • generation_preset_name: str、使用する生成プリセットの名前 - オプション、デフォルトは「vectara-summary-table-md-query-ext-jan-2025-gpt-4o」です。

    • response_language: str、応答の言語 - オプション、デフォルトは「eng」です。

    戻り値:

    • 生成された回答と検索結果を含む、Vectara からの応答。

  • **search_vectara:**生成なしで、Vectara を使用してセマンティック検索クエリを実行します。

    引数:

    • query: str、実行するユーザークエリ - 必須。

    • corpus_keys: list[str]、検索に使用するVectaraコーパスキーのリスト(必須)。ユーザーに1つ以上のコーパスキーを提供するよう依頼してください。

    • api_key: str、Vectara API キー - 必須。

    • n_sentences_before: int、コンテキストに含める回答の前の文の数 - オプション、デフォルトは 2。

    • n_sentences_after: int、コンテキストに含める回答後の文の数 - オプション、デフォルトは 2。

    • lexical_interpolation: float、使用する語彙補間の量 - オプション、デフォルトは 0.005。

    戻り値:

    • 一致する検索結果を含む、Vectara からの応答。

Claude Desktopによる構成

claude_desktop_config.json に追加します:

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

Claudeデスクトップアプリでの使用

インストールが完了し、Claudeデスクトップアプリの設定が完了したら、Claudeデスクトップアプリを完全に閉じて再度開き、Vectara-mcpサーバーを確認してください。アプリの左下にハンマーアイコンが表示され、利用可能なMCPツールが表示されます。ハンマーアイコンをクリックすると、Vectara-searchツールとVectara-extractツールの詳細が表示されます。

これで、claude は Vectara-mcp サーバーへの完全なアクセス権(ask-vectora および search-vectora ツールを含む)を取得できます。初めてツールを発行する際、Claude は Vectara API キーとコーパスキー(複数のコーパスを使用する場合はキー)の入力を求めます。これらを設定すれば、準備完了です。以下に、当社のウェブサイトの情報を含む Vectara コーパスを使用した例をいくつか示します。

Vectara RAGの例

  1. Vectaraコーパスのクエリ:

ask-vectara Who is Amr Awadallah?
  1. Vectaraコーパスを検索

search-vectara events in NYC?

謝辞✨

Available Tools

2 tools
ask_vectaraA
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.
ParametersJSON Schema
NameRequiredDescriptionDefault
api_keyNo
corpus_keysNo
generation_preset_nameNovectara-summary-table-md-query-ext-jan-2025-gpt-4o
lexical_interpolationNo
max_used_search_resultsNo
n_sentences_afterNo
n_sentences_beforeNo
queryYes
response_languageNoeng

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the tool's function (RAG query with response generation) and mentions required parameters, but lacks details on authentication needs (though 'api_key' is implied), rate limits, error handling, or what happens if corpus keys are invalid. It adds some context but falls short of comprehensive behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence, followed by an 'Args:' section detailing parameters and a 'Returns:' section. It is appropriately sized for a complex tool with many parameters, though some sentences could be more concise (e.g., the parameter explanations are verbose but necessary).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (9 parameters, no annotations, no output schema), the description is partially complete. It covers the purpose, parameters, and return statement, but lacks information on output format, error cases, or dependencies. Without an output schema, more detail on the response structure would improve completeness for such a multifaceted tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% description coverage. It explains each parameter's purpose, required status, and default values (e.g., 'query: str, The user query to run - required'), compensating fully for the schema's lack of descriptions. This is essential given the 9 parameters with only 1 required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('Run a RAG query using Vectara') and resources ('returning search results with a generated response'). It distinguishes from the sibling tool 'search_vectara' by emphasizing the generation of a response alongside search results, which suggests 'search_vectara' might only return raw search results without generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool (for RAG queries with Vectara) and includes guidance on required parameters like asking the user for corpus keys. However, it does not explicitly state when NOT to use it or mention alternatives like 'search_vectara' for non-generation searches, which would be needed for a perfect score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_vectaraA
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.
ParametersJSON Schema
NameRequiredDescriptionDefault
api_keyNo
corpus_keysNo
lexical_interpolationNo
n_sentences_afterNo
n_sentences_beforeNo
queryYes

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It discloses that the tool performs a semantic search and returns matching results, but lacks details on behavioral traits like authentication needs (though 'api_key' is a parameter), rate limits, error handling, or what 'without generation' entails operationally. The description doesn't contradict annotations (none provided), but offers minimal behavioral context beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose statement followed by 'Args:' and 'Returns:' sections. It's appropriately sized, with each sentence adding value (e.g., explaining parameters and returns). However, it could be more front-loaded by integrating key parameter details into the initial statement, and some phrasing is slightly verbose (e.g., 'Please ask the user to provide').

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, 0% schema coverage, no annotations, and no output schema, the description is moderately complete. It covers parameter semantics well but lacks behavioral transparency (e.g., auth, limits) and detailed return value explanation beyond 'including the matching search results.' For a search tool with multiple parameters and no structured support, more context on outputs and behavior would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds significant meaning beyond the schema by explaining all 6 parameters: purpose (e.g., 'query' is 'The user query to run'), requirements (e.g., 'corpus_keys' and 'api_key' are 'required'), defaults (e.g., 'n_sentences_before' default is 2), and user guidance (e.g., 'Please ask the user to provide one or more corpus keys'). This fully documents parameter semantics not covered by the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Run a semantic search query using Vectara, without generation.' It specifies the verb ('search'), resource ('Vectara'), and distinguishes it from sibling 'ask_vectara' by noting 'without generation.' However, it doesn't explicitly contrast with the sibling tool beyond this implicit distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by stating 'without generation,' suggesting this is for pure search versus generative queries. It mentions 'Please ask the user to provide one or more corpus keys' for the 'corpus_keys' parameter, offering some guidance. However, it lacks explicit when-to-use versus 'ask_vectara' or other alternatives, and no exclusions are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv1.0.0
    • First observedask_vectara
    • First observedsearch_vectara

TDQS

A3.6/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: ask_vectara performs RAG queries with generated responses, while search_vectara performs semantic search without generation. Their descriptions explicitly differentiate between these functions, leaving no room for confusion or overlap in intended use.

Naming Consistency5/5

Both tools follow a perfect verb_noun pattern with 'vectara' as the consistent noun component. The naming is completely uniform across the tool set, using snake_case consistently without any deviations or mixed conventions.

Tool Count2/5

With only 2 tools, this server feels significantly under-scoped for a Vectara integration. A comprehensive MCP server for a search/RAG platform would typically include tools for corpus management, document operations, configuration settings, and additional query types beyond just these two basic search functions.

Completeness2/5

The tool surface is severely incomplete for a Vectara integration. While it covers basic querying, it lacks essential operations like creating/updating/deleting corpora, managing documents within corpora, configuring search parameters, handling authentication more robustly, or providing administrative functions. This creates significant gaps that will limit agent capabilities.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Local MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).
    48
    37
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that exposes document retrieval as tools (semantic search and source listing) for any LLM, using a vector index built from DocPilot's ingestion pipeline.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vectara/vectara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server