kuzu-mcp-服务器
提供对 Kuzu 数据库访问的模型上下文协议 (MCP) 服务器。该服务器使 LLM 能够检查数据库模式并在提供的 Kuzu 数据库上执行查询。
成分
工具
获取Schema
获取 Kuzu 数据库的完整模式,包括所有节点和关系表及其属性
输入:无
询问
在 Kuzu 数据库上运行 Cypher 查询
输入:
cypher(字符串):要运行的 Cypher 查询
迅速的
生成KuzuCypher
为 Kuzu 生成 Cypher 查询
参数:
question(字符串):用于生成 Cypher 查询的自然语言问题
Related MCP server: MCP-Python
与 Claude Desktop 一起使用
使用 Docker(推荐)
编辑配置文件
config.json:在 macOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上:
%APPDATA%\Claude\claude_desktop_config.json
向
mcpServers对象添加以下配置:{ "mcpServers": { "kuzu": { "command": "docker", "args": [ "run", "-v", "{Absolute Path to the Kuzu database}:/database", "--rm", "-i", "kuzudb/mcp-server" ] } } }将
{Absolute Path to the Kuzu database}更改为实际路径重启Claude桌面
使用 Node.js 和 npm(用于开发)
安装依赖项:
npm install编辑配置文件
config.json:在 macOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上:
%APPDATA%\Claude\claude_desktop_config.json
向
mcpServers对象添加以下配置:{ "mcpServers": { "kuzu": { "command": "node", "args": [ "{Absolute Path to this repository}/index.js", "{Absolute Path to the Kuzu database}", ] } } }将
{Absolute Path to this repository}和{Absolute Path to the Kuzu database}更改为实际路径重启Claude桌面
只读模式
通过将KUZU_READ_ONLY环境变量设置为true ,可以使服务器以只读模式运行。在此模式下,运行任何尝试修改数据库的查询都将导致错误。此标志可以在配置文件中设置,如下所示: