VV

vectara/vectara-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

30 stars 9 forks 质量 76 趋势 4Apache-2.0

Vectara 开源 MCP 服务器

概览

🔌 Vectara MCP 也兼容任何 MCP 客户端 模型上下文协议(MCP)是一个开放标准,使人工智能系统能够无缝与各种数据源和工具交互,促进安全的双向连接。 Vectara-MCP通过MCP协议,为任何代理应用提供快速、可靠的RAG访问,并减少幻觉,这由Vectara的Trusted RAG平台驱动。 你可以直接从 PyPI 安装该软件包: - 通过承载令牌实现内置认证 - HTTPS 支持——默认每分钟100次请求 - 可配置的起始验证 - 生产部署、云环境 - 服务器发送事件用于实时更新 - 持有令牌支持 - 支持遗留MCP客户端 - 实时流应用 - 无传输层安全性 - 本地通信低延迟 - 本地开发,Claude桌面 - 必须用 --stdio 标志显式启用 使用 HTTP 或 SSE 传输时,默认需要认证:

概述(AI 翻译)

🔌 兼容Claude桌面及任何其他MCP客户端!

Vectara MCP 也兼容任何 MCP 客户端

模型上下文协议(MCP)是一个开放标准,使人工智能系统能够无缝与各种数据源和工具交互,促进安全的双向连接。

Vectara-MCP通过MCP协议,为任何代理应用提供快速、可靠的RAG访问,并减少幻觉,这由Vectara的Trusted RAG平台驱动。

安装

你可以直接从 PyPI 安装该软件包:

快速启动

默认安全(带认证的HTTP/SSE)

本地开发模式(STDIO)

配置选项

交通方式

HTTP 传输(默认 - 推荐)

  • 安全性: 通过承载令牌实现内置认证
  • 加密: HTTPS 准备
  • 速率限制: 默认每分钟100个请求
  • CORS保护: 可配置的起点验证
  • 用例: 生产部署、云环境

SSE运输

  • 流媒体: 服务器发送的实时更新事件
  • 认证: 持有令牌支持
  • 兼容性: 支持遗留MCP客户端

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Vectara MCP Server

🔌 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

Quick Start

Secure by Default (HTTP/SSE with Authentication)

# Start server with secure HTTP transport (DEFAULT)
python -m vectara_mcp
# Server running at http://127.0.0.1:8000 with authentication enabled

Local Development Mode (STDIO)

# For Claude Desktop or local development (less secure)
python -m vectara_mcp --stdio
# ⚠️ Warning: STDIO transport is less secure. Use only for local development.

Configuration Options

# Custom host and port
python -m vectara_mcp --host 0.0.0.0 --port 8080

# SSE transport mode
python -m vectara_mcp --transport sse --path /sse

# Disable authentication (DANGEROUS - dev only)
python -m vectara_mcp --no-auth

Transport Modes

  • Security: Built-in authentication via bearer tokens
  • Encryption: HTTPS ready
  • Rate Limiting: 100 requests/minute by default
  • CORS Protection: Configurable origin validation
  • Use Case: Production deployments, cloud environments

SSE Transport

  • Streaming: Server-Sent Events for real-time updates
  • Authentication: Bearer token support
  • Compatibility: Works with legacy MCP clients
  • Use Case: Real-time streaming applications

STDIO Transport

  • ⚠️ Security Warning: No transport-layer security
  • Performance: Low latency for local communication
  • Use Case: Local development, Claude Desktop
  • Requirement: Must be explicitly enabled with --stdio flag

Environment Variables

# Required
export VECTARA_API_KEY="your-api-key"

# Optional
export VECTARA_AUTHORIZED_TOKENS="token1,token2"  # Additional auth tokens
export VECTARA_ALLOWED_ORIGINS="http://localhost:*,https://app.example.com"
export VECTARA_TRANSPORT="http"  # Default transport mode
export VECTARA_AUTH_REQUIRED="true"  # Enforce authentication

Authentication

HTTP/SSE Transport

When using HTTP or SSE transport, authentication is required by default:

# Using curl with bearer token
curl -H "Authorization: Bearer $VECTARA_API_KEY" \
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Vectara": { "command": "python", "args": ["-m", "vectara_mcp", "--stdio"], "env": { "VECTARA_API_KEY": "your-api-key" } } } }