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. ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

uvx ์‚ฌ์šฉ (์ถ”์ฒœ)

๋ณ„๋„์˜ ์„ค์น˜ ์—†์ด uvx๋ฅผ ํ†ตํ•ด ์ฆ‰์‹œ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

uvx sqlite-mcp-server

PyPI๋ฅผ ํ†ตํ•œ ์„ค์น˜

ํŒจํ‚ค์ง€๋ฅผ ์ „์—ญ ๋„๊ตฌ๋กœ ์„ค์น˜ํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค:

uv tool install sqlite-mcp-server
# ๋˜๋Š” pip ์‚ฌ์šฉ
pip install 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",
        "sqlite-mcp"
      ]
    }
  }
}

Claude Code

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

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

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

  • create_database(db_path): ์ƒˆ๋กœ์šด SQLite ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํŒŒ์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
  • list_databases(path): ์ง€์ •๋œ ๊ฒฝ๋กœ์˜ SQLite 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.5.tar.gz (50.7 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.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlite_mcp_server-0.1.5.tar.gz
  • Upload date:
  • Size: 50.7 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.5.tar.gz
Algorithm Hash digest
SHA256 525d0cb0b89497a2f09cb2492d3305f24179324c7c6c4f0de5767fa2174caaa4
MD5 7092eaff9d858c49110bbddc65d0853b
BLAKE2b-256 0531b6d99bee85f3c548964e9f56dc2eacbff878ab405a39dfb8589c84a4042f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_mcp_server-0.1.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlite_mcp_server-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eebbc833d7db6dfe7081d3547e338351188d0aa0e9f401b4ce251fcd95a92499
MD5 0e3440735d5f56feb2cfe6965464ede6
BLAKE2b-256 f001c869b1ec087e139bf4672d6176c1cb9686138d3e01f0fad78f455d46781c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlite_mcp_server-0.1.5-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