Supports containerized deployment via Docker, allowing Claude to safely access Kuzu databases with proper volume mounting and configuration.
Provides platform-specific configuration paths and instructions for Claude Desktop integration on macOS systems.
Enables installation and execution through npm/npx, offering alternative deployment options to Docker for running the MCP server.
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.
Related MCP server: MCP Database Server
🚀 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
Development Setup
One-Line Docker Setup
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
.kuzubackups 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
Docker with Web UI
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:
Basic Auth (Development/Testing)
Simpler setup for development and testing:
Web UI Authentication
Secure the Web UI interface:
JWT Token Configuration
Configure JWT token lifetime (OAuth mode only):
Security Recommendations
Always use authentication for production deployments
Use OAuth for external-facing servers
Use Basic Auth for internal development/testing
Enable Web UI auth when exposing the interface
Use HTTPS in production environments
Configure JWT expiration based on your security requirements
Usage with Claude Desktop
Docker (Recommended)
npm/npx
Smithery (Easiest)
Environment Variables
🌐 Remote Connection (HTTP Transport)
Pre-built Docker Images
Local Development
MCP Inspector Testing
Remote Client Configuration
🤝 Multi-Agent Coordination (Experimental)
Enable safe concurrent access from multiple AI agents (e.g., Claude Desktop + Claude Code):
Configuration
How It Works
Read queries: Execute immediately without coordination
Write queries: Acquire exclusive file-based locks
Auto cleanup: Stale locks detected and removed
Clear errors: Lock conflicts return helpful retry messages
Important Notes
Experimental feature for local development
Both agents must use the same database path
Lock files created in database directory
10-second default timeout covers most operations
🛠️ Development
Build and Test
Local Claude Desktop Setup
🔧 Environment Variables Reference
Variable | Description | Default | Usage |
Database | |||
| Database path if not in args | - | Startup |
| Enable read-only mode |
| Security |
Connection | |||
| Connection recovery attempts |
| Reliability |
Multi-Agent | |||
| Enable coordination |
| Concurrency |
| Unique agent identifier |
| Locking |
| Lock timeout (ms) |
| Performance |
Web UI | |||
| Enable/disable Web UI |
| Interface |
| Web UI port |
| Network |
| Web UI username | - | Security |
| Web UI password | - | Security |
Authentication | |||
| Enable OAuth |
| Security |
| OAuth username | - | Auth |
| OAuth password | - | Auth |
| Basic Auth username | - | Auth |
| Basic Auth password | - | Auth |
🔍 Troubleshooting
Connection Issues
"Database connection could not be restored" → Check database file exists and permissions
"getAll timeout" → DDL operation hung, server will auto-recover
Lock timeout → Another agent writing, wait and retry
Web UI Issues
404 on /admin → Ensure HTTP transport mode is enabled
Authentication failing → Check
KUZU_WEB_UI_AUTH_*variablesPort conflicts → Change
KUZU_WEB_UI_PORTorPORT
Docker Issues
Health check failing → Verify database mount and port availability
Permission errors → Check volume mount permissions
Database not found → Ensure correct path mapping
Performance Notes
Based on testing:
Simple queries: < 100ms response time
Complex multi-hop: 200-500ms response time
Schema retrieval: ~100-200ms response time
AI query generation: 1-3 seconds (normal for LLM processing)
📚 Documentation
Core Features
Connection Recovery - Automatic recovery and retry logic
Multi-Agent Coordination - Concurrent access design
Batch Query Improvements - DDL and multi-statement handling
Bug Workarounds
Kuzu Bug Workarounds - Known issue fixes
Repository: github.com/jordanburke/kuzudb-mcp-server
Docker Images: ghcr.io/jordanburke/kuzudb-mcp-server
Package: npmjs.com/package/kuzudb-mcp-server