MCP ExplorerExplorer

Kuzu Mcp Server

@kuzudbon a year ago
16 MIT
FreeCommunity
AI Systems
A Model Context Protocol server that provides access to Kuzu databases

Overview

What is Kuzu Mcp Server

kuzu-mcp-server is a Model Context Protocol server that facilitates access to Kuzu databases, allowing large language models (LLMs) to inspect database schemas and execute queries.

Use cases

Use cases include querying databases for insights, generating reports based on database content, and integrating Kuzu database access into applications.

How to use

To use kuzu-mcp-server, you can set it up with Docker or Node.js. For Docker, edit the ‘config.json’ file to include the Kuzu database path and run the server. For Node.js, install dependencies, modify the configuration file similarly, and run the server using Node.js.

Key features

Key features include fetching the full schema of the Kuzu database, executing Cypher queries, and generating Cypher queries from natural language questions.

Where to use

kuzu-mcp-server can be used in data analysis, application development, and any scenario where interaction with Kuzu databases is required.

Content

kuzu-mcp-server

A Model Context Protocol server that provides access to Kuzu databases. This server enables LLMs to inspect database schemas and execute queries on provided kuzu database.

Components

Tools

  • getSchema

    • Fetch the full schema of the Kuzu database, including all nodes and relationships tables and their properties
    • Input: None
  • query

    • Run a Cypher query on the Kuzu database
    • Input: cypher (string): The Cypher query to run

Prompt

  • generateKuzuCypher
    • Generate a Cypher query for Kuzu
    • Argument: question (string): The question in natural language to generate the Cypher query for

Usage with Claude Desktop

With Docker (Recommended)

  • Edit the configuration file config.json:
    • on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • on Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Add the following configuration to the mcpServers object:
    {
      "mcpServers": {
        "kuzu": {
          "command": "docker",
          "args": [
            "run",
            "-v",
            "{Absolute Path to the Kuzu database}:/database",
            "--rm",
            "-i",
            "kuzudb/mcp-server"
          ]
        }
      }
    }
    Change the {Absolute Path to the Kuzu database} to the actual path
  • Restart Claude Desktop

With Node.js and npm (for Development)

  • Install dependencies: npm install
  • Edit the configuration file config.json:
    • on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • on Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Add the following configuration to the mcpServers object:
    Change the {Absolute Path to this repository} and {Absolute Path to the Kuzu database} to the actual paths
  • Restart Claude Desktop

Read-Only Mode

The server can be run in read-only mode by setting the KUZU_READ_ONLY environment variable to true. In this mode, running any query that attempts to modify the database will result in an error. This flag can be set in the configuration file as follows:

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers