Price Per TokenPrice Per Token
KuzuDB Server

KuzuDB Server

by jordanburke

GitHub 8Remote
0

About

KuzuDB MCP Server provides LLM access to Kuzu graph databases through the Model Context Protocol. It enables AI assistants to inspect database schemas and execute Cypher queries with automatic connection recovery and built-in multi-agent coordination. Key features: - Execute Cypher queries against Kuzu graph databases with robust error handling and exponential backoff recovery - Schema inspection tools to discover nodes, relationships, and properties - Built-in web UI for database management including backup/restore and direct file upload - Multi-agent coordination with file-based locking for safe concurrent access - Authentication support via OAuth and Basic Auth - Natural language to Cypher query generation - Dual transport modes (stdio and HTTP) with Docker deployment options Note: This project is archived as of October 2025 following the archival of the upstream Kuzu database repository, but remains functional with Kuzu v1.4.1-r.4.

README

kuzudb-mcp-server

> ⚠️ ARCHIVED: This project is archived as the Kuzu database repository was archived on October 10, 2025. See ARCHIVE_NOTICE.md for details and alternatives.

---

A Model Context Protocol server that provides access to Kuzu graph databases. This server enables LLMs to inspect database schemas and execute queries with robust connection recovery, multi-agent coordination, and a built-in web interface.

Archive Status

Archived - October 21, 2025

The Kuzu graph database repository was archived by its maintainers on October 10, 2025 and is now read-only. As Kuzu is no longer actively maintained, this MCP server is also being archived. The project remains fully functional with Kuzu v1.4.1-r.4. See ARCHIVE_NOTICE.md for full details, technical achievements, and alternative graph database options.

🚀 Key Features

  • 📊 Web UI: Built-in database management interface with backup/restore capabilities
  • 🔐 Authentication: OAuth and Basic Auth support for secure access
  • 🤝 Multi-Agent: Safe concurrent access from multiple AI agents (experimental)
  • 🔄 Auto-Recovery: Automatic connection recovery with exponential backoff
  • 🐳 Docker Ready: Pre-built images and docker-compose workflow
  • 📱 Dual Transport: Both stdio and HTTP transport modes
  • 🧠 AI-Powered: Natural language to Cypher query generation
  • Quick Start

    Install and Test

    # Install globally
    npm install -g kuzudb-mcp-server

    Quick test with auto-created database

    pnpm serve:test # stdio transport (default) pnpm serve:test:http # HTTP transport with Web UI pnpm serve:test:inspect # HTTP with MCP Inspector

    Server management

    pnpm kill # Stop running servers pnpm restart # Restart with HTTP transport

    Development Setup

    # Clone and setup
    git clone https://github.com/jordanburke/kuzudb-mcp-server.git
    cd kuzudb-mcp-server
    pnpm install

    Initialize databases

    pnpm db:init # Empty test database pnpm db:init:movies # Sample movie data

    One-Line Docker Setup

    # Pull and run with mounted database
    docker run -d -p 3000:3000 -p 3001:3001 \
      -v /path/to/your/database:/database \
      ghcr.io/jordanburke/kuzudb-mcp-server:latest

    Access Web UI at http://localhost:3001/admin

    MCP endpoint at http://localhost:3000/mcp

    Components

    Tools

  • getSchema - Fetch complete database schema (nodes, relationships, properties)
  • query - Execute Cypher queries with automatic error recovery
  • Prompts

  • generateKuzuCypher - Convert natural language to Kuzu-specific Cypher queries
  • 🖥️ Web UI for Database Management

    The server includes a powerful web interface that automatically starts with HTTP transport.

    Features

  • 📁 Database Backup & Restore: Download .kuzu backups and restore from browser
  • 📤 Direct File Upload: Upload existing Kuzu database files (main + .wal)
  • 📊 Database Info: View path, mode, connection status, and schema statistics
  • 🔒 Secure Access: Optional authentication protection
  • 👁️ Read-Only Support: Upload/restore disabled in read-only mode
  • Quick Access

    # Start with Web UI (auto-enabled with HTTP)
    pnpm serve:test:http

    Access Web UI

    open http://localhost:3001/admin

    Docker with Web UI

    # Using docker-compose (recommended)
    docker-compose up -d
    open http://localhost:3001/admin

    Manual Docker with Web UI

    docker run -d \ -p 3000:3000 -p 3001:3001 \ -v /path/to/database:/database \ -e KUZU_WEB_UI_AUTH_USER=admin \ -e KUZU_WEB_UI_AUTH_PASSWORD=changeme \ ghcr.io/jordanburke/kuzudb-mcp-server:latest

    API Endpoints

  • /admin - Main web interface
  • /health - Health check endpoint
  • /api/info - Database information (JSON)
  • /api/backup - Download database backup
  • /api/restore - Upload and restore database
  • 🔐 Authentication & Security

    The server supports two authentication methods for different use cases:

    OAuth (Production Recommended)

    Best for production deployments with token-based security:

    # Testing OAuth locally
    pnpm serve:test:http:oauth     # admin/secret123
    pnpm serve:test:inspect:oauth  # With MCP Inspector

    Production OAuth setup

    KUZU_OAUTH_ENABLED=true \ KUZU_OAUTH_USERNAME=admin \ KUZU_OAUTH_PASSWORD=your-secure-password \ KUZU_OAUTH_USER_ID=admin-user \ KUZU_OAUTH_EMAIL=admin@example.com \ KUZU_JWT_EXPIRES_IN=31536000 \ node dist/index.js /path/to/database --transport http

    Basic Auth (Development/Testing)

    Simpler setup for development and testing:

    ```bash

    Testing Basic Auth locally

    pnpm serve:test:http:basic # admin/secret123 pnpm serve:test:inspect:basic # With MCP Inspector

    Production Basic Auth setup

    KUZU_BASIC_AUTH_USERNAME=admin \ KUZU_BASIC_AUTH_PASSWORD=your-secure-password \ KUZU_BASIC_AUTH_USER_ID=admin-user \ KUZU_BASIC_AUTH_EMAIL=admin@example.com \ node dist/index.js /path/to/database --transport htt

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81