A Model Context Protocol (MCP) server that provides tools from Vectara
Connect Vectara to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Model Context Protocol (MCP) server that provides tools from Vectara. The vectara mcp server is what makes that connection.
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.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
setup_vectara_api_key — **api_key — str, Your Vectara API key - requiredclear_vectara_api_key — **ask_vectara — **query — str, The user query to run - requiredcorpus_keys — list[str], List of Vectara corpus keys to use for the search - requiredn_sentences_before — int, Number of sentences before the answer to include in the context - optional, default is 2n_sentences_after — int, Number of sentences after the answer to include in the context - optional, default is 2lexical_interpolation — float, The amount of lexical interpolation to use - optional, default is 0.005max_used_search_results — int, The maximum number of search results to use - optional, default is 10generation_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"vectara-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Configuration is passed through the environment: VECTARA_API_KEY, VECTARA_AUTHORIZED_TOKENS, VECTARA_ALLOWED_ORIGINS, VECTARA_TRANSPORT, VECTARA_AUTH_REQUIRED. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Vectara's toolset — setup_vectara_api_key, api_key, clear_vectara_api_key and 11 more — is a fair guide to whether it matches your workflow. It is maintained by Ofer Mendelevitch; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| setup_vectara_api_key | ** |
| api_key | str, Your Vectara API key - required. |
| clear_vectara_api_key | ** |
| ask_vectara | ** |
| query | str, The user query to run - required. |
| corpus_keys | list[str], List of Vectara corpus keys to use for the search - 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". |
| search_vectara | ** |
| correct_hallucinations | ** |
{
"mcpServers": {
"Vectara": {
"command": "python",
"args": ["-m", "vectara_mcp", "--stdio"],
"env": {
"VECTARA_API_KEY": "your-api-key"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| VECTARA_API_KEY | Credential the server authenticates with. | Yes |
| VECTARA_AUTHORIZED_TOKENS | Credential the server authenticates with. | Yes |
| VECTARA_ALLOWED_ORIGINS | Configuration value read at startup. | Optional |
| VECTARA_TRANSPORT | Configuration value read at startup. | Optional |
| VECTARA_AUTH_REQUIRED | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.