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
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.
🚀 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
.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
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:
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
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 | |||
KUZU_MCP_DATABASE_PATH | Database path if not in args | - | Startup |
KUZU_READ_ONLY | Enable read-only mode | false | Security |
Connection | |||
KUZU_MAX_RETRIES | Connection recovery attempts | 2 | Reliability |
Multi-Agent | |||
KUZU_MULTI_AGENT | Enable coordination | false | Concurrency |
KUZU_AGENT_ID | Unique agent identifier | unknown-{pid} | Locking |
KUZU_LOCK_TIMEOUT | Lock timeout (ms) | 10000 | Performance |
Web UI | |||
KUZU_WEB_UI_ENABLED | Enable/disable Web UI | true | Interface |
KUZU_WEB_UI_PORT | Web UI port | 3001 | Network |
KUZU_WEB_UI_AUTH_USER | Web UI username | - | Security |
KUZU_WEB_UI_AUTH_PASSWORD | Web UI password | - | Security |
Authentication | |||
KUZU_OAUTH_ENABLED | Enable OAuth | false | Security |
KUZU_OAUTH_USERNAME | OAuth username | - | Auth |
KUZU_OAUTH_PASSWORD | OAuth password | - | Auth |
KUZU_BASIC_AUTH_USERNAME | Basic Auth username | - | Auth |
KUZU_BASIC_AUTH_PASSWORD | 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_*
variables - Port conflicts → Change
KUZU_WEB_UI_PORT
orPORT
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
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
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.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute read-only queries.Last updated -8391262MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -MIT License
MCP TapData Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -- -securityFlicense-qualityA Model Context Protocol server that enables large language models to interact directly with Couchbase databases through natural language, supporting operations like querying buckets, performing CRUD operations, and executing N1QL queries.Last updated -247