Skip to main content

Universal SQLite DB MCP Server

Project description

๐Ÿง  SQLite MCP Server: Zero-Config AI Sidekick

SQLite MCP Server๋Š” AI๊ฐ€ ๋‹น์‹ ์˜ ๋กœ์ปฌ ๋ฐ์ดํ„ฐ์— ์ ‘๊ทผํ•˜๊ณ , ๋ถ„์„ํ•˜๋ฉฐ, ์ง€์‹์„ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋•๋Š” ๊ฐ€์žฅ ๋‹จ์ˆœํ•˜๊ณ  ๊ฐ•๋ ฅํ•œ ์ธํ„ฐํŽ˜์ด์Šค์ž…๋‹ˆ๋‹ค.

๐Ÿš€ ํ”„๋กœ์ ํŠธ ์ฒ ํ•™: "Zero-Configuration Sidekick"

  1. Zero-Config: API Key๋‚˜ ๋ณต์žกํ•œ ์„œ๋ฒ„ ์„ค์ •์ด ํ•„์š” ์—†์Šต๋‹ˆ๋‹ค. ์˜ค์ง .db ํŒŒ์ผ ํ•˜๋‚˜๋ฉด ์ถฉ๋ถ„ํ•ฉ๋‹ˆ๋‹ค.
  2. Portable Brain: ํ”„๋กœ์ ํŠธ ํด๋”๋งˆ๋‹ค ๋…๋ฆฝ๋œ SQLite DB๋ฅผ ๋‘์–ด AI๊ฐ€ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ '๊ธฐ์–ต'์„ ๋กœ์ปฌ์— ์ €์žฅํ•˜๊ณ  ๊บผ๋‚ด ์“ธ ์ˆ˜ ์žˆ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
  3. Security First: ๊ฐ•๋ ฅํ•œ ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์™€ SQL ํ•„ํ„ฐ๋ง์„ ํ†ตํ•ด ์•ˆ์ „ํ•œ ๋ฐ์ดํ„ฐ ๊ด€๋ฆฌ๋ฅผ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ›  ์ฃผ์š” ๊ธฐ๋Šฅ

  • ๐Ÿ” Database Discovery: ํŠน์ • ๊ฒฝ๋กœ ๋‚ด์˜ ๋ชจ๋“  SQLite ํŒŒ์ผ(.db, .sqlite, .sqlite3)์„ ์ž๋™์œผ๋กœ ์Šค์บ”ํ•ฉ๋‹ˆ๋‹ค.
  • ๐Ÿ—บ Schema Introspection: DB์˜ ์ „์ฒด ๊ตฌ์กฐ๋ฅผ ํŒŒ์•…ํ•˜์—ฌ AI๊ฐ€ ๋ฐ์ดํ„ฐ์˜ ๋งฅ๋ฝ์„ ์™„๋ฒฝํžˆ ์ดํ•ดํ•˜๊ฒŒ ๋•์Šต๋‹ˆ๋‹ค.
  • โšก Secure Querying: SELECT ์ฟผ๋ฆฌ๋งŒ ํ—ˆ์šฉํ•˜๋Š” ๊ฐ•๋ ฅํ•œ ๋ณด์•ˆ ๋ชจ๋“œ๋กœ ๋ฐ์ดํ„ฐ ๋ถ„์„์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
  • ๐Ÿ“ Note & Record Support: AI๊ฐ€ ์•„์ด๋””์–ด๋‚˜ ๋ฉ”๋ชจ๋ฅผ ํŠน์ • DB์— ์ฆ‰์‹œ ๊ธฐ๋กํ•  ์ˆ˜ ์žˆ๋Š” ์ „์šฉ ๋„๊ตฌ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
  • ๐Ÿ“ DB Creation: ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์ƒˆ๋กœ์šด SQLite ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํŒŒ์ผ์„ ์ฆ‰์‹œ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ฆ ์„ค์น˜ ๋ฐ ์„ค์ •

1. ์‚ฌ์ „ ์š”๊ตฌ ์‚ฌํ•ญ

  • uv ์„ค์น˜ ๊ถŒ์žฅ ๋˜๋Š” Python 3.10 ์ด์ƒ.

2. ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

๐Ÿ“ฆ ์„ค์น˜ ๋ฐ ์‹คํ–‰ (์ถ”์ฒœ)

Windows์˜ ๋ณด์•ˆ ์ •์ฑ…(Smart App Control ๋“ฑ)์œผ๋กœ ์ธํ•ด uvx ์‚ฌ์šฉ ์‹œ ์‹คํ–‰์ด ์ฐจ๋‹จ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ํŒจํ‚ค์ง€๋ฅผ ๋กœ์ปฌ ๋„๊ตฌ๋กœ ์„ค์น˜ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

# uv ์‚ฌ์šฉ (๊ถŒ์žฅ)
uv tool install sqlite-mcp-server

# ๋˜๋Š” pip ์‚ฌ์šฉ
pip install sqlite-mcp-server

์„ค์น˜ ํ›„์—๋Š” ์–ด๋””์„œ๋“  ๋ช…๋ น์–ด๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

sqlite-mcp-server

โšก uvx ์‚ฌ์šฉ (์„ ํƒ ์‚ฌํ•ญ)

์„ค์น˜ ์—†์ด ๋น ๋ฅด๊ฒŒ ์‹คํ–‰ํ•ด๋ณด๊ณ  ์‹ถ์„ ๋•Œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค (Windows์—์„œ os error 4551 ๋ฐœ์ƒ ์‹œ ์œ„ ์„ค์น˜ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜์„ธ์š”):

uvx sqlite-mcp-server

3. MCP ํด๋ผ์ด์–ธํŠธ ์—ฐ๋™

Gemini CLI (์ถ”์ฒœ)

๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์„œ๋ฒ„๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค:

gemini mcp add sqlite-mcp uvx sqlite-mcp-server

์ง์ ‘ ์„ค์ •ํ•˜๋ ค๋ฉด .gemini/settings.json ํŒŒ์ผ์— ๋‹ค์Œ ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”:

{
  "mcpServers": {
    "sqlite-mcp": {
      "command": "uvx",
      "args": ["sqlite-mcp-server"]
    }
  }
}

Claude Desktop

Claude Desktop ์„ค์ • ํŒŒ์ผ์— ๋‹ค์Œ ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”:

{
  "mcpServers": {
    "sqlite-mcp": {
      "command": "uv",
      "args": [
        "tool",
        "run",
        "--from",
        "sqlite-mcp-server"
      ]
    }
  }
}

Claude Code

๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์„œ๋ฒ„๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค:

claude mcp add sqlite-mcp -- uvx sqlite-mcp-server

๐Ÿ”ง ์ œ๊ณต ๋„๊ตฌ (Tools)

  • create_database(db_path): ์ƒˆ๋กœ์šด SQLite ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
  • list_databases(path): ์ง€์ •๋œ ๊ฒฝ๋กœ์˜ SQLite DB ๋ชฉ๋ก์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
  • search_databases(path, query): ์ง€์ •๋œ ๊ฒฝ๋กœ ๋‚ด์˜ ๋ชจ๋“  DB๋ฅผ ๊ฒ€์ƒ‰ํ•˜์—ฌ ํŠน์ • ํ‚ค์›Œ๋“œ(ํ…Œ์ด๋ธ”๋ช…, ์ปฌ๋Ÿผ๋ช…)๊ฐ€ ํฌํ•จ๋œ ์œ„์น˜๋ฅผ ์ฐพ์Šต๋‹ˆ๋‹ค.
  • get_schema_summary(db_path): DB์˜ ๋ชจ๋“  ํ…Œ์ด๋ธ”๊ณผ ์ปฌ๋Ÿผ ๊ตฌ์กฐ๋ฅผ ์š”์•ฝํ•ด์„œ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
  • list_tables(db_path): DB ๋‚ด์˜ ๋ชจ๋“  ํ…Œ์ด๋ธ” ๋ชฉ๋ก์„ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
  • describe_table(db_path, table_name): ํŠน์ • ํ…Œ์ด๋ธ”์˜ ์Šคํ‚ค๋งˆ์™€ ์ƒ˜ํ”Œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
  • add_record(db_path, table_name, title, content): ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ƒˆ๋กœ์šด ๋ ˆ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค (ํ…Œ์ด๋ธ” ์ž๋™ ์ƒ์„ฑ ์ง€์›).
  • execute_query(db_path, query): SELECT ์ฟผ๋ฆฌ๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถ„์„ํ•ฉ๋‹ˆ๋‹ค.

๐ŸŒŸ ๊ฐœ๋ฐœ์ž ๊ฐ€์ด๋“œ

# ์˜์กด์„ฑ ์„ค์น˜
uv sync

# ์„œ๋ฒ„ ๋กœ์ปฌ ์‹คํ–‰
uv run sqlite-mcp

๋ผ์ด์„ ์Šค

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlite_mcp_server-0.1.7.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlite_mcp_server-0.1.7-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file sqlite_mcp_server-0.1.7.tar.gz.

File metadata

  • Download URL: sqlite_mcp_server-0.1.7.tar.gz
  • Upload date:
  • Size: 51.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sqlite_mcp_server-0.1.7.tar.gz
Algorithm Hash digest
SHA256 006ff0347620db419bf23ef5132e4339b5e0fe97f653ecec1188c308ff358853
MD5 5b2e8164c79d04777e1d92bc3e5c2ebb
BLAKE2b-256 3b45da3aa0cf6b9b2a2b616e5e4e740a61cff7c47aefeeaf2f2db67d5d241b90

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_mcp_server-0.1.7.tar.gz:

Publisher: publish.yml on stevefordev/sqlite-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlite_mcp_server-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlite_mcp_server-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 efab654e7c6da2cb8a90eddd3c290b743e68d9af60b72efe2c51db39854c265c
MD5 d7d47e44c4852f253c1e6e19c3146287
BLAKE2b-256 fcaf3827af9c8c010d8e89dd7660cec96a1f2188cea631a2bf0941cd2a3448f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_mcp_server-0.1.7-py3-none-any.whl:

Publisher: publish.yml on stevefordev/sqlite-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page