SQLite MCP Server
Provides tools for interacting with SQLite databases, enabling AI agents to create databases, list tables, query data, add records, and explore schemas on local SQLite database files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SQLite MCP Server list all tables in the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ SQLite MCP Server: Zero-Config AI Sidekick
SQLite MCP Serverλ AIκ° λΉμ μ λ‘컬 λ°μ΄ν°μ μ κ·Όνκ³ , λΆμνλ©°, μ§μμ κ΄λ¦¬ν μ μκ² λλ κ°μ₯ λ¨μνκ³ κ°λ ₯ν μΈν°νμ΄μ€μ λλ€.
π νλ‘μ νΈ μ² ν: "Zero-Configuration Sidekick"
Zero-Config: API Keyλ 볡μ‘ν μλ² μ€μ μ΄ νμ μμ΅λλ€. μ€μ§
.dbνμΌ νλλ©΄ μΆ©λΆν©λλ€.Portable Brain: νλ‘μ νΈ ν΄λλ§λ€ λ 립λ SQLite DBλ₯Ό λμ΄ AIκ° ν΄λΉ νλ‘μ νΈμ 'κΈ°μ΅'μ λ‘컬μ μ μ₯νκ³ κΊΌλ΄ μΈ μ μκ² ν©λλ€.
Security First: κ°λ ₯ν μ½κΈ° μ μ© λͺ¨λμ SQL νν°λ§μ ν΅ν΄ μμ ν λ°μ΄ν° κ΄λ¦¬λ₯Ό 보μ₯ν©λλ€.
Related MCP server: anydb-mcp
π μ£Όμ κΈ°λ₯
π 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-server3. 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
Available Tools
8 toolsadd_recordA
Add a new record to the specified table in the database. If the table doesn't exist, it will be created with columns: id, title, content, and created_at.
Inputs: db_path (required), table_name (required), title (required), content (required). Returns: result
create_databaseB
Create a new empty SQLite database file at the specified path.
Inputs: db_path (required). Returns: result
describe_tableA
Get the schema (columns) and a few sample rows from the specified table.
Inputs: db_path (required), table_name (required). Returns: result
execute_queryA
Execute a SELECT query on the specified SQLite database. Strictly enforced as READ-ONLY: only SELECT statements are allowed.
Inputs: db_path (required), query (required). Returns: result
get_schema_summaryB
Get a comprehensive summary of the entire database schema, including all tables and their column definitions.
Inputs: db_path (required). Returns: result
list_databasesA
List all SQLite database files (.db, .sqlite, .sqlite3) in the specified directory. Default is the current directory.
Inputs: path. Returns: result
list_tablesC
List all tables in the specified SQLite database.
Inputs: db_path (required). Returns: result
search_databasesB
Search for a keyword in all SQLite databases within a directory. Searches table names and column names to help discover relevant data.
Inputs: path (required), query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: database creation, table listing, schema inspection, querying, record insertion, and database search. No overlap or ambiguity between them.
All tool names follow a consistent verb_noun pattern (e.g., create_database, list_tables, execute_query) using snake_case, making the set predictable and easy to navigate.
8 tools cover essential SQLite operations like creating databases, inserting records, querying, and exploring schema. The number is well-scoped without being excessive or insufficient.
The tool set lacks update and delete operations, and execute_query is restricted to SELECT. This creates notable gaps for full CRUD coverage, though basic operations are present.
Maintenance
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to interact with SQLite databases by querying schemas, executing SQL, and inspecting table metadata. It supports safe database access through configurable read-only modes, query timeouts, and dry-run execution plans.MIT
- AlicenseAqualityBmaintenanceZero-config MCP server that empowers AI agents to safely query SQL and NoSQL databases like PostgreSQL, MySQL, SQLite, MongoDB, and Redis.547 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables LLMs to safely explore and query any SQLite database via natural language. It exposes tools for listing tables, describing schemas, and executing SELECT/WITH queries with built-in safety guards like write prevention and row limits.MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides safe, read-only SQL access for AI agents to query databases (PostgreSQL, MySQL, SQLite) with schema awareness and guardrails.6 npmMIT