Vectara MCP server
OfficialServidor MCP de Vectara
🔌 ¡ Compatible con Claude Desktop y cualquier otro cliente MCP!
Vectara MCP también es compatible con cualquier cliente MCP
El Protocolo de Contexto de Modelo (MCP) es un estándar abierto que permite que los sistemas de IA interactúen sin problemas con diversas fuentes de datos y herramientas, lo que facilita conexiones bidireccionales seguras.
Vectara-MCP proporciona a cualquier aplicación de agente acceso a un RAG rápido y confiable con alucinaciones reducidas, impulsado por la plataforma Trusted RAG de Vectara, a través del protocolo MCP.
Instalación
Puede instalar el paquete directamente desde PyPI:
pip install vectara-mcpRelated MCP server: mcp-rag-server
Herramientas disponibles
ask_vectara: Ejecuta una consulta RAG usando Vectara y devuelve resultados de búsqueda con una respuesta generada.
Argumentos:
consulta: str, La consulta del usuario a ejecutar - requerida.
corpus_keys: list[str], Lista de claves de corpus de Vectara para la búsqueda (obligatorio). Solicite al usuario que proporcione una o más claves de corpus.
api_key: str, la clave API de Vectara (obligatoria).
n_sentences_before: int, número de oraciones antes de la respuesta para incluir en el contexto - opcional, el valor predeterminado es 2.
n_sentences_after: int, número de oraciones después de la respuesta para incluir en el contexto (opcional, el valor predeterminado es 2).
lexical_interpolation: float, la cantidad de interpolación léxica a utilizar (opcional, el valor predeterminado es 0,005).
max_used_search_results: int, el número máximo de resultados de búsqueda a utilizar (opcional, el valor predeterminado es 10).
generation_preset_name: str, el nombre del ajuste preestablecido de generación a utilizar (opcional, el valor predeterminado es "vectara-summary-table-md-query-ext-jan-2025-gpt-4o").
response_language: str, El idioma de la respuesta - opcional, el valor predeterminado es "eng".
Devoluciones:
La respuesta de Vectara, incluida la respuesta generada y los resultados de la búsqueda.
search_vectara: Ejecuta una consulta de búsqueda semántica utilizando Vectara, sin generación.
Argumentos:
consulta: str, La consulta del usuario a ejecutar - requerida.
corpus_keys: list[str], Lista de claves de corpus de Vectara para la búsqueda (obligatorio). Solicite al usuario que proporcione una o más claves de corpus.
api_key: str, la clave API de Vectara (obligatoria).
n_sentences_before: int, número de oraciones antes de la respuesta para incluir en el contexto - opcional, el valor predeterminado es 2.
n_sentences_after: int, número de oraciones después de la respuesta para incluir en el contexto (opcional, el valor predeterminado es 2).
lexical_interpolation: float, la cantidad de interpolación léxica a utilizar (opcional, el valor predeterminado es 0,005).
Devoluciones:
La respuesta de Vectara, incluidos los resultados de búsqueda coincidentes.
Configuración con Claude Desktop
Añade a tu claude_desktop_config.json:
{
"mcpServers": {
"Vectara": {
"command": "uv",
"args": [
"tool",
"run",
"vectara-mcp"
]
}
}
}Uso en la aplicación de escritorio Claude
Una vez completada la instalación y configurada la aplicación de escritorio de Claude, debe cerrarla por completo y volver a abrirla para ver el servidor Vectara-mcp. DeberÃa ver un icono de martillo en la esquina inferior izquierda de la aplicación, que indica las herramientas MCP disponibles. Puede hacer clic en él para obtener más información sobre las herramientas Vectara-search y Vectara-extract.
Ahora Claude tendrá acceso completo al servidor Vectara-mcp, incluyendo las herramientas ask-vectara y search-vectara. Al ejecutar las herramientas por primera vez, Claude le solicitará su clave de API de Vectara y la clave de corpus (o claves si desea usar varios corpus). Después de configurarlas, estará listo para empezar. Aquà tiene algunos ejemplos que puede probar (con el corpus de Vectara que incluye información de nuestro sitio web ):
Ejemplos de Vectara RAG
Consulta del corpus de Vectara :
ask-vectara Who is Amr Awadallah?Buscando en el corpus de Vectara :
search-vectara events in NYC?Agradecimientos ✨
Protocolo de contexto de modelo para la especificación MCP
Antrópico para Claude Desktop
Available Tools
2 toolsask_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.
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| corpus_keys | No | ||
| generation_preset_name | No | vectara-summary-table-md-query-ext-jan-2025-gpt-4o | |
| lexical_interpolation | No | ||
| max_used_search_results | No | ||
| n_sentences_after | No | ||
| n_sentences_before | No | ||
| query | Yes | ||
| response_language | No | eng |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| corpus_keys | No | ||
| lexical_interpolation | No | ||
| n_sentences_after | No | ||
| n_sentences_before | No | ||
| query | Yes |
TDQS
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.
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.
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.
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.
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.
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.
2 tool updates
v1.0.0- First observed
ask_vectara - First observed
search_vectara
TDQS
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.
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.
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.
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
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
Remote ChromaDB vector database MCP server with streamable HTTP transport
- ArcjetOAuthcom.arcjet
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLocal 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.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).2837MIT
- AlicenseAqualityDmaintenanceMCP server for OpenAI Vector Store API, managing vector stores, files, file batches, and semantic search.216MIT
- FlicenseNot gradedqualityCmaintenanceAn 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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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