SQLite MCP Server
Provides tools to connect to SQLite database files, execute SQL queries with parameter binding, retrieve schema information, list tables, describe tables, and manage multiple database connections.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SQLite MCP Server
A Model Context Protocol (MCP) server that provides SQLite database access and operations for Claude AI.
Features
connect_database: Connect to SQLite database files
execute_query: Run SQL queries (SELECT, INSERT, UPDATE, DELETE, etc.)
get_schema: Get complete database schema information
list_tables: List all tables in a database
describe_table: Get detailed table information including columns and indexes
list_connections: Show all active database connections
close_connection: Close database connections
Support for multiple simultaneous database connections
Prepared statement parameter binding
Comprehensive error handling
Related MCP server: MCP Database Server
Installation
Quick Install
npm install -g sqlite-mcp-serverFrom Source
Clone the repository:
git clone https://github.com/TIMBOTGPT/sqlite-mcp.git cd sqlite-mcpInstall dependencies:
npm installBuild the project:
npm run buildTest the server:
npm start
Usage with Claude Desktop
Add this server to your Claude Desktop MCP configuration (claude_desktop_config.json):
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["-y", "sqlite-mcp-server"],
"description": "SQLite database operations"
}
}
}Or if installed locally:
{
"mcpServers": {
"sqlite": {
"command": "node",
"args": ["/path/to/sqlite-mcp/dist/index.js"],
"env": {
"DATABASE_PATH": "/path/to/your/databases"
},
"description": "SQLite database operations"
}
}
}Available Tools
connect_database
Connect to a SQLite database file.
Parameters:
path(required): Path to the SQLite database filealias(optional): Connection alias (defaults to filename)
Example:
{
"name": "connect_database",
"arguments": {
"path": "/path/to/database.db",
"alias": "mydb"
}
}execute_query
Execute SQL queries on connected databases.
Parameters:
database(required): Database alias or pathquery(required): SQL query to executeparams(optional): Array of parameters for prepared statements
Example:
{
"name": "execute_query",
"arguments": {
"database": "mydb",
"query": "SELECT * FROM users WHERE age > ?",
"params": [25]
}
}get_schema
Get the complete schema of a database.
Parameters:
database(required): Database alias or path
list_tables
List all tables in a database.
Parameters:
database(required): Database alias or path
describe_table
Get detailed information about a specific table.
Parameters:
database(required): Database alias or pathtable(required): Table name
list_connections
Show all active database connections.
close_connection
Close a database connection.
Parameters:
database(required): Database alias or path to close
Requirements
Node.js 18+
SQLite3
Claude Desktop with MCP support
Security
File existence validation before connection attempts
Proper connection management and cleanup
Parameter binding for SQL injection prevention
Comprehensive error handling
Development
# Install dependencies
npm install
# Build TypeScript
npm run build
# Development with auto-reload
npm run dev
# Run tests
npm testLicense
MIT License - see LICENSE file for details
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Support
For issues and questions, please use the GitHub Issues page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Query, explore, and manage your databases through natural conversation.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables SQLite database interactions including querying, updating, and schema management through structured tools.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to query and manage databases (SQLite, SQL Server, PostgreSQL, MySQL) through natural language, supporting read/write operations and schema management.MIT
- AlicenseNot gradedqualityDmaintenanceProvides database access capabilities to Claude, supporting SQLite, SQL Server, PostgreSQL, and MySQL databases.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to safely explore and query a SQLite database through natural language, including listing tables, inspecting schemas, and running read-only SELECT queries.MIT