Back to MCP Catalog

SQLite Database Analyzer MCP Server

DatabasesPython
Run SQL queries and generate business insights from SQLite databases
Available Tools

read_query

Execute SELECT queries to read data from the database

query

write_query

Execute INSERT, UPDATE, or DELETE queries to modify data in the database

query

create_table

Create new tables in the database

query

list_tables

Get a list of all tables in the database

describe-table

View schema information for a specific table

table_name

append_insight

Add new business insights to the memo resource

insight

The SQLite Database Analyzer provides a powerful interface for interacting with SQLite databases through natural language. It enables users to execute SQL queries, analyze business data, and automatically generate business intelligence memos based on discovered insights. With this tool, you can create and modify database schemas, run complex queries, and maintain a continuously updated business insights memo that aggregates findings during your analysis. The server includes demonstration prompts that guide users through database operations for specific business domains.

Overview

The SQLite Database Analyzer is a Model Context Protocol (MCP) server that provides database interaction capabilities through SQLite. It allows you to run SQL queries, analyze business data, and automatically generate business intelligence memos.

Installation

Using Claude Desktop

Option 1: Using uv

Add the following configuration to your claude_desktop_config.json file:

"mcpServers": {
  "sqlite": {
    "command": "uv",
    "args": [
      "--directory",
      "PATH_TO_SERVERS_REPO/servers/src/sqlite",
      "run",
      "mcp-server-sqlite",
      "--db-path",
      "~/test.db"
    ]
  }
}

Replace PATH_TO_SERVERS_REPO with the actual path to the parent directory of the servers repository.

Option 2: Using Docker

Add the following configuration to your claude_desktop_config.json file:

"mcpServers": {
  "sqlite": {
    "command": "docker",
    "args": [
      "run",
      "--rm",
      "-i",
      "-v",
      "mcp-test:/mcp",
      "mcp/sqlite",
      "--db-path",
      "/mcp/test.db"
    ]
  }
}

Using VS Code

Quick Installation

For VS Code, you can use the installation buttons provided in the repository README, or manually add the configuration to your settings.

Manual Installation (uv)

Add the following to your User Settings (JSON) file in VS Code or to .vscode/mcp.json in your workspace:

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "db_path",
        "description": "SQLite Database Path",
        "default": "${workspaceFolder}/db.sqlite"
      }
    ],
    "servers": {
      "sqlite": {
        "command": "uvx",
        "args": [
          "mcp-server-sqlite",
          "--db-path",
          "${input:db_path}"
        ]
      }
    }
  }
}

Manual Installation (Docker)

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "db_path",
        "description": "SQLite Database Path (within container)",
        "default": "/mcp/db.sqlite"
      }
    ],
    "servers": {
      "sqlite": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-v",
          "mcp-sqlite:/mcp",
          "mcp/sqlite",
          "--db-path",
          "${input:db_path}"
        ]
      }
    }
  }
}

Building from Source

If you want to build the Docker image yourself:

docker build -t mcp/sqlite .

Usage

Once installed, you can interact with the SQLite Database Analyzer through Claude or other compatible AI assistants. The server provides a demonstration prompt that guides you through database operations:

  • Use the mcp-demo prompt with a topic argument to specify the business domain you want to analyze
  • The server will generate appropriate database schemas and sample data
  • You can then use the provided tools to query and analyze the data
  • Insights discovered during analysis can be added to a continuously updated business insights memo

The server exposes a dynamic resource memo://insights that automatically updates as new insights are discovered during your analysis.

Related MCPs

Milvus Vector Database
DatabasesPython

Connect to Milvus vector database for semantic search and vector operations

MotherDuck DuckDB
DatabasesPython

SQL analytics with DuckDB and MotherDuck for AI assistants

Alibaba Cloud Tablestore
DatabasesJava, Python

Connect to Alibaba Cloud Tablestore for vector search and RAG applications

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.