Volcengine Knowledge Base MCP

Volcengine Knowledge Base MCP

A Claude Desktop MCP server that provides knowledge base search and chat functionality for Volcengine knowledge bases, allowing users to search and chat with their external knowledge repositories.

Category
Visit Server

README

Volcengine Knowledge Base MCP

License: MIT Python Version

Claude Desktop 的火山引擎知识库 MCP 服务器,提供知识库搜索和对话功能。

特性

  • 🔍 知识库搜索
  • 💬 对话补全
  • 🔐 安全的凭证管理
  • 🚀 简单易用的配置

快速开始

前提条件

  • Python 3.10 或更高版本
  • Claude Desktop
  • 你需要注册一个火山引擎账号,开通知识库服务,并且创建一个知识库

安装

  1. 克隆仓库:
git clone git@github.com:suqidan/volc-kb-mcp.git
cd volc-kb-mcp
  1. 安装依赖:
pip install -r requirements.txt

配置 Claude Desktop

编辑 Claude Desktop 配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

添加以下配置:

{
    "mcpServers": {
        "kb": {
            "command": "python",
            "args": [
                "/path/to/kb_mcp.py"
            ]
        }
    }
}

使用方法

设置好 Claude MCP JSON 配置后,你只需要直接告诉 Claude 你要使用知识库,它就会询问你添加对应的信息,包含 ak, sk, account_id 以及 collection_namme

  1. 首次使用时配置凭证:
await configure(
    access_key="your_access_key",
    secret_key="your_secret_key",
    account_id=your_account_id,
    collection_name="your_collection_name"
)
  1. 搜索知识库:
result = await search_knowledge("你的查询")
  1. 对话补全:
messages = [
    {"role": "system", "content": "你是一个有帮助的助手"},
    {"role": "user", "content": "你好"}
]
response = await chat_completion(messages)

API 文档

configure

配置火山引擎凭证和知识库设置。

参数:

  • access_key (str): 火山引擎访问密钥
  • secret_key (str): 火山引擎安全密钥
  • account_id (int): 火山引擎账户ID
  • collection_name (str): 知识库集合名称

search_knowledge

搜索知识库。

参数:

  • query (str): 搜索查询字符串

chat_completion

获取对话补全响应。

参数:

  • messages (List[dict]): 对话消息列表
  • stream (bool, 可选): 是否使用流式响应
  • temperature (float, 可选): 温度参数

安全性

  • 所有凭证都安全存储在用户本地
  • 配置文件权限仅限当前用户访问
  • 不会将凭证发送到火山引擎 API 之外的任何地方

故障排除

如果遇到问题:

  1. 确认凭证信息正确
  2. 检查配置文件权限
  3. 查看 Claude Desktop 日志文件
  4. 如果需要重新配置,删除 ~/.config/volc_kb_mcp/config.json

贡献

欢迎提交 Pull Requests!对于重大更改,请先开 issue 讨论您想要更改的内容。

许可证

本项目采用 MIT 许可证 - 详见 LICENSE 文件

作者

suqidan

致谢

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured