MCP Directory

How to add SQLite Explorer MCP Server to Cursor

Safe, read-only SQLite database exploration and querying for LLMs, built on FastMCP. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 105 · stdio · no auth

Cursor config for SQLite Explorer MCP Server

pip install -r requirements.txt
{
  "mcpServers": {
    "sqlite-explorer-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "--with",
        "uvicorn",
        "fastmcp",
        "run",
        "/path/to/repo/sqlite_explorer.py"
      ],
      "env": {
        "SQLITE_DB_PATH": "/path/to/your/database.db"
      }
    }
  }
}

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the SQLite Explorer MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of SQLite Explorer MCP Server's tools to confirm it's connected.

Before you start

  • Python 3.6+
  • A SQLite database file (path set via the SQLITE_DB_PATH environment variable)
  • fastmcp (installed via requirements.txt)

What SQLite Explorer MCP Server can do in Cursor

read_query

Execute a SELECT query on the database with built-in safety validations: query validation and sanitization, parameter binding support, row limit enforcement, and results formatted as dictionaries.

list_tables

List all available tables in the database with their names.

describe_table

Get detailed schema information for a specific table, including column names and types, NULL constraints, default values, and primary key information.

Security

Read-only access to SQLite databases. Queries are validated and sanitized, parameter binding is used for safe execution, and a row limit is enforced. The target database file is specified via the SQLITE_DB_PATH environment variable.

SQLite Explorer MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the SQLite Explorer MCP Server config there under the "mcpServers" key and restart the client.

Is SQLite Explorer MCP Server safe to use with Cursor?

Read-only access to SQLite databases. Queries are validated and sanitized, parameter binding is used for safe execution, and a row limit is enforced. The target database file is specified via the SQLITE_DB_PATH environment variable.

Can this server modify my database?

No. The server provides read-only access. It only runs validated SELECT queries; queries are validated and sanitized, parameter binding is used, and a row limit is enforced.

How do I tell the server which database to use?

Set the SQLITE_DB_PATH environment variable to the full path of the SQLite database file you want to explore.

Which clients are documented for installation?

The README documents installing for Claude Desktop using `fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db`, and for the Cline VSCode plugin via its MCP settings JSON.

View repo Full SQLite Explorer MCP Server page