Provides comprehensive SQLite database management capabilities including executing SQL queries, performing CRUD operations, creating tables, and managing database schemas with built-in SQL injection protection.
Click on "Install 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 Servershow me all customers who made purchases in the last 30 days"
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
通用SQLite数据库管理工具,通过MCP协议提供SQL执行能力。
功能特性
执行任意合法的SQL查询
支持SELECT/INSERT/UPDATE/DELETE/CREATE等操作
内置SQL注入防护
支持stdio、SSE和streamable-http三种通信模式
可配置的IP和端口
快速开始
安装依赖
SQLite3 是Python内置模块,无需单独安装。
启动服务器
客户端调用示例
使用提供的客户端类
直接调用MCP工具
配置与启动
启动参数
参数 | 默认值 | 描述 |
--server_type | sse | 服务器类型: stdio/sse/streamable-http |
--host | 0.0.0.0 | 监听地址 |
--port | 8000 | 监听端口 |
--log_level | INFO | 日志级别: DEBUG/INFO/WARNING/ERROR |
环境变量配置
环境变量 | 默认值 | 描述 |
MCP_HOST | 0.0.0.0 | 监听地址 |
MCP_PORT | 8000 | 监听端口 |
MCP_SERVER_TYPE | sse | 服务器类型 (sse/stdio/streamable-http) |
数据库自动创建
服务启动时会自动在项目根目录创建demo.db数据库文件(如果不存在)