Universal SQLite DB MCP Server
Project description
๐ง SQLite MCP: Zero-Config AI Sidekick
SQLite MCP๋ AI๊ฐ ๋น์ ์ ๋ก์ปฌ ๋ฐ์ดํฐ์ ์ ๊ทผํ๊ณ , ๋ถ์ํ๋ฉฐ, ์ง์์ ๊ด๋ฆฌํ ์ ์๊ฒ ๋๋ ๊ฐ์ฅ ๋จ์ํ๊ณ ๊ฐ๋ ฅํ ์ธํฐํ์ด์ค์ ๋๋ค.
๐ ํ๋ก์ ํธ ์ฒ ํ: "Zero-Configuration Sidekick"
ํ๋์ ์ธ AI ๋๊ตฌ๋ค์ ์ข ์ข ๋ณต์กํ API ์ค์ , ํด๋ผ์ฐ๋ ์ฐ๋, ๋ฐ์ดํฐ ํ๋ผ์ด๋ฒ์ ๋ฌธ์ ๋ฅผ ๋๋ฐํฉ๋๋ค. ์ด MCP๋ ๋ค์ ์ธ ๊ฐ์ง ์์น์ ๋ฐ๋ฆ ๋๋ค.
- Zero-Config: API Key๋ ๋ณต์กํ ์๋ฒ ์ค์ ์ด ํ์ ์์ต๋๋ค. ์ค์ง
.dbํ์ผ ํ๋๋ฉด ์ถฉ๋ถํฉ๋๋ค. - Portable Brain: ํ๋ก์ ํธ ํด๋๋ง๋ค ๋ ๋ฆฝ๋ SQLite DB๋ฅผ ๋์ด AI๊ฐ ํด๋น ํ๋ก์ ํธ์ '๊ธฐ์ต'์ ๋ก์ปฌ์ ์ ์ฅํ๊ณ ๊บผ๋ด ์ธ ์ ์๊ฒ ํฉ๋๋ค.
- Security First: ๋ฌผ๋ฆฌ์ (
mode=ro) ๋ฐ ๋ ผ๋ฆฌ์ (SQL ํํฐ๋ง) ์ด์ค ๋ณด์์ ํตํด AI๊ฐ ์ค์๋ก ๋ฐ์ดํฐ๋ฅผ ์์ ํ๊ฑฐ๋ ์ญ์ ํ๋ ๊ฒ์ ์์ฒ ์ฐจ๋จํฉ๋๋ค.
๐ ์ฃผ์ ๊ธฐ๋ฅ
- ๐ Database Discovery: ํน์ ๊ฒฝ๋ก ๋ด์ ๋ชจ๋ SQLite ํ์ผ(
.db,.sqlite,.sqlite3)์ ์๋์ผ๋ก ์ค์บํฉ๋๋ค. - ๐บ Schema Introspection: DB์ ์ ์ฒด ๊ตฌ์กฐ(ํ ์ด๋ธ, ์ปฌ๋ผ ํ์ )๋ฅผ ํ๋์ ํ์ ํ์ฌ AI๊ฐ ๋ฐ์ดํฐ์ ๋งฅ๋ฝ์ ์๋ฒฝํ ์ดํดํ๊ฒ ๋์ต๋๋ค.
- โก Secure Querying: ์ค์ง
SELECT์ฟผ๋ฆฌ๋ง ํ์ฉํ๋ ๊ฐ๋ ฅํ ์ฝ๊ธฐ ์ ์ฉ ๋ชจ๋๋ก ์์ ํ ๋ฐ์ดํฐ ๋ถ์์ ์ํํฉ๋๋ค. - ๐ AI-Ready Schema: ์ํ ๋ฐ์ดํฐ๋ฅผ ๋ฏธ๋ฆฌ ๋ณด๊ธฐํ์ฌ AI๊ฐ ์ฟผ๋ฆฌ๋ฅผ ์์ฑํ๊ธฐ ์ ๋ฐ์ดํฐ์ ์ค์ ํํ๋ฅผ ํ์ตํฉ๋๋ค.
๐ฆ ์ค์น ๋ฐ ์ค์
1. ์ฌ์ ์๊ตฌ ์ฌํญ
- Python 3.10 ์ด์
- uv (์ถ์ฒ)
2. ์ค์น
cd sqlite-mcp
uv pip install .
3. Claude Desktop ์ค์
claude_desktop_config.json ํ์ผ์ ์๋ ์ค์ ์ ์ถ๊ฐํ์ธ์. (๊ฒฝ๋ก๋ ์ค์ ํ๋ก์ ํธ ๊ฒฝ๋ก๋ก ์์ ํ์)
{
"mcpServers": {
"sqlite-browser": {
"command": "uv",
"args": [
"--directory",
"D:/work/git/test/sqlite-mcp",
"run",
"sqlite-mcp"
]
}
}
}
๐ง ์ ๊ณต ๋๊ตฌ (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): ํน์ ํ ์ด๋ธ์ ์คํค๋ง์ 5๊ฐ์ ์ํ ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ค๋๋ค.add_note(db_path, title, content): AI๊ฐ ์์ด๋์ด๋ ๋ฉ๋ชจ๋ฅผ ํน์ DB์notesํ ์ด๋ธ์ ์ฆ์ ๊ธฐ๋กํฉ๋๋ค.
๐ ์ค์ ํ์ฉ ์์ (Use Cases)
1. ํ๋ก์ ํธ ๋ธ๋ ์ธ (Project Knowledge Base)
- ์ํฉ: ํ๋ก์ ํธ ์ํคํ ์ฒ ์ค๊ณ๋ ์ค์ํ ์์ฌ๊ฒฐ์ ๊ณผ์ ์ ๊ธฐ๋กํ๊ณ ์ถ์ ๋.
- ํ์ฉ: AI์๊ฒ ๋ํ ์์ฝ์ ์ํค๊ณ ์ด๋ฅผ ๋ก์ปฌ DB์ ์ ์ฅํ์ฌ, ๋์ค์ ํ๋ก์ ํธ์ ์ญ์ฌ๋ ๊ฒฐ์ ์ด์ ๋ฅผ ์ฆ์ ๊ฒ์ํ ์ ์์ต๋๋ค.
- ํ๋กฌํํธ: "์ง๊ธ๊น์ง ๋
ผ์ํ ์๋น์ค ๊ตฌ์กฐ์ ์ฅ๋จ์ ์ ์์ฝํด์
architecture_notes.db์ ์ ์ฅํด์ค."
2. ๋ก์ปฌ ๋ฐ์ดํฐ ๋ถ์๊ฐ (Local Data Analyst)
- ์ํฉ: ๋์ฉ๋ ๋ก๊ทธ ํ์ผ์ด๋ ์๋น์ค ๋ฐ์ดํฐ๋ฅผ SQL๋ก ๋น ๋ฅด๊ฒ ๋ถ์ํด์ผ ํ ๋.
- ํ์ฉ: AI๊ฐ ์ ์ฒด ์คํค๋ง๋ฅผ ํ์ ํ๊ณ ๋ณต์กํ SQL ์ฟผ๋ฆฌ๋ฅผ ๋์ ์์ฑํ์ฌ ๋ฐ์ดํฐ ์ธ์ฌ์ดํธ๋ฅผ ๋์ถํฉ๋๋ค.
- ํ๋กฌํํธ: "์ด ํด๋์ ์๋
sales_data.db๋ถ์ํด์ค. ์ง๋๋ฌ ๋งค์ถ์ด ๊ฐ์ฅ ๋์๋ ์ ํ TOP 3๋ฅผ ์ฐพ์์ค."
3. ์ฝ๋ ์ค๋ํซ ๋ฐ ํ ํ๋ฆฟ ๊ด๋ฆฌ (Code Snippet Manager)
- ์ํฉ: ์์ฃผ ์ฌ์ฉํ๋ ์ค์ ํ์ผ์ด๋ ๋ณต์กํ ์ ๊ท์ ๋ฑ์ ํ๋ก์ ํธ๋ณ๋ก ๊ด๋ฆฌํ๊ณ ์ถ์ ๋.
- ํ์ฉ: ํด๋ผ์ฐ๋ ์๋น์ค ๋์ ํ๋ก์ ํธ ๋ฃจํธ์
.snippets.db์ ์ ์ฅํ์ฌ ํ๋ก์ ํธ ์์ค์ฝ๋์ ํจ๊ป ๊ด๋ฆฌํฉ๋๋ค. - ํ๋กฌํํธ: "๋ฐฉ๊ธ ์์ฑํ API ์๋ต ์ฒ๋ฆฌ ๋ก์ง์ 'Response Utility'๋ผ๋ ์ ๋ชฉ์ผ๋ก ๋ด ์์ด๋์ด DB์ ๊ธฐ๋กํด์ค."
์ด ํ๋ก์ ํธ๋ AI์ ์ธ๊ฐ์ด ํจ๊ป ์์ด๋์ด๋ฅผ ๋น๋ํ๊ณ , ๊ทธ ์ง์์ ๊ฐ์ฅ ์์ ํ๊ณ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌํ๊ธฐ ์ํด ๋ง๋ค์ด์ก์ต๋๋ค.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlite_mcp_server-0.1.3.tar.gz.
File metadata
- Download URL: sqlite_mcp_server-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb03109217850307c0e04f1da86f8e35cfe7f7a3d9f77e00a57993cffd6d8ed
|
|
| MD5 |
dfc9134e127d405857f3f7ebb8b353e1
|
|
| BLAKE2b-256 |
aeaaa16f6da9c958a8d653914bad4cf379cbcb243a7dad671f509d00d47c14f6
|
Provenance
The following attestation bundles were made for sqlite_mcp_server-0.1.3.tar.gz:
Publisher:
publish.yml on stevefordev/sqlite-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_mcp_server-0.1.3.tar.gz -
Subject digest:
ffb03109217850307c0e04f1da86f8e35cfe7f7a3d9f77e00a57993cffd6d8ed - Sigstore transparency entry: 1335342720
- Sigstore integration time:
-
Permalink:
stevefordev/sqlite-mcp@50461dcdd9a87fd3fd1ede49d46bf97932b9286a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/stevefordev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50461dcdd9a87fd3fd1ede49d46bf97932b9286a -
Trigger Event:
push
-
Statement type:
File details
Details for the file sqlite_mcp_server-0.1.3-py3-none-any.whl.
File metadata
- Download URL: sqlite_mcp_server-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09163682546f88d6a2842f2edd4c5028f785241e28fc073a53ba86bfc56e41cf
|
|
| MD5 |
11f1e8b1b679dc2cb3648c02355f5bf3
|
|
| BLAKE2b-256 |
7cebdb115f162c8a76c7612dbc3d0d61a11a90b9eb208dad9502207e41592d05
|
Provenance
The following attestation bundles were made for sqlite_mcp_server-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on stevefordev/sqlite-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlite_mcp_server-0.1.3-py3-none-any.whl -
Subject digest:
09163682546f88d6a2842f2edd4c5028f785241e28fc073a53ba86bfc56e41cf - Sigstore transparency entry: 1335342846
- Sigstore integration time:
-
Permalink:
stevefordev/sqlite-mcp@50461dcdd9a87fd3fd1ede49d46bf97932b9286a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/stevefordev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50461dcdd9a87fd3fd1ede49d46bf97932b9286a -
Trigger Event:
push
-
Statement type: