AI-powered database analysis tool (v0.2.0) that launches with a single npx command, supporting PostgreSQL and SQLite. It provides both a web UI for interactive natural-language querying and an MCP server for integration with AI assistants like Claude Code and Cursor. Key differentiators: no configuration files needed (guided first-run setup), multiple AI providers (OpenAI, DeepSeek, Ollama), read-only safety, automatic health checks, anomaly detection, and trend discovery. Node >=20 required. Ships TypeScript types.
npm install ai-data-analyzer-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set environment variables for database connection and use the main analysis functions (connectDatabase, analyzeSchema, dataHealthCheck, discoverInsights, askQuestion) from the package.
Upgrade Node.js to version 20 or higher.
Use import syntax instead of require(). If you must use CommonJS, use dynamic import: const pkg = await import('ai-data-analyzer-mcp').Prefer using the CLI or MCP server mode. If you import programmatically, pin the version.
Use the documented environment variables. Old variables (like DB_TYPE, DB_FILE) are no longer supported.
Ensure the necessary API key (OPENAI_API_KEY, DEEPSEEK_API_KEY, etc.) is set before starting the server.
Change to import syntax: import { ... } from 'ai-data-analyzer-mcp' or use dynamic import with await import('...')Set AI_DATA_DB_TYPE to 'postgresql' or 'sqlite' before starting the server.
Set the OPENAI_API_KEY environment variable to a valid OpenAI API key.
Run using npx ai-data-analyzer (no install needed) or install globally with npm install -g ai-data-analyzer-mcp
No dependency data recorded yet.