drio
Open app

SQLite Explorer MCP Server

Source

An MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation.

Catalog onlyCatalog onlySTDIO

Overview

SQLite Explorer MCP Server is a server application that provides safe, read-only access to SQLite databases via the Model Context Protocol (MCP). It is built using the FastMCP framework and allows large language models (LLMs) to explore and query SQLite databases with safety features and query validation.

To use the SQLite Explorer MCP Server, clone the repository from GitHub, install it based on your application (Claude Desktop or Cline VSCode Plugin), and configure the necessary environment variables for your SQLite database.

  • Provides read-only access to SQLite databases. - Built-in safety validations for executing queries. - Supports essential database commands such as executing SELECT queries, listing tables, and describing table schemas.
  1. Enabling LLMs to safely explore SQLite databases for insights.
  2. Integrating with development environments to facilitate database interactions without compromising data integrity.
  3. Providing a clean and restricted interface for database queries in applications.

Add to your AI client

Use these steps to connect SQLite Explorer MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "sqlite-explorer-fastmcp-mcp-server-hannesrudolph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sqlite-explorer-fastmcp-mcp-server-hannesrudolph"
      ]
    }
  }
}

FAQ

Can I modify the database through this server?

No, the server provides read-only access to ensure data integrity.

How does the safety feature work?

The server restricts the executed queries to SELECT statements only and uses parameterized queries to prevent SQL injection.

What are the requirements for running the server?

You need Python 3.6 or higher and a valid SQLite3 database file.