SQLite MCP 服务器
概述
模型上下文协议 (MCP) 服务器实现,通过 SQLite 提供数据库交互和商业智能功能。该服务器支持运行 SQL 查询、分析业务数据并自动生成业务洞察备忘录。
成分
资源
服务器公开单个动态资源:
memo://insights
:持续更新的业务洞察备忘录,汇总分析过程中发现的洞察- 通过附加洞察工具发现新见解时自动更新
提示
服务器提供演示提示:
mcp-demo
:指导用户完成数据库操作的交互式提示- 必需参数:
topic
- 要分析的业务领域 - 生成适当的数据库模式和示例数据
- 指导用户进行分析和洞察生成
- 与业务洞察备忘录集成
- 必需参数:
工具
该服务器提供六个核心工具:
查询工具
read_query
- 执行 SELECT 查询以从数据库读取数据
- 输入:
query
(字符串):要执行的 SELECT SQL 查询
- 返回:查询结果作为对象数组
write_query
- 执行 INSERT、UPDATE 或 DELETE 查询
- 输入:
query
(字符串):SQL 修改查询
- 返回:
{ affected_rows: number }
create_table
- 在数据库中创建新表
- 输入:
query
(字符串):CREATE TABLE SQL语句
- 返回:表创建确认
架构工具
list_tables
- 获取数据库中所有表的列表
- 无需输入
- 返回:表名称数组
describe-table
- 查看特定表的架构信息
- 输入:
table_name
(字符串):要描述的表的名称
- 返回:具有名称和类型的列定义数组
分析工具
append_insight
- 向备忘录资源添加新的业务见解
- 输入:
insight
(字符串):从数据分析中发现的商业洞察
- 返回:确认洞察力的增加
- 触发 memo://insights 资源的更新
与 Claude Desktop 一起使用
紫外线
Docker
与 VS Code 一起使用
为了快速安装,请点击下面的安装按钮:
如需手动安装,请将以下 JSON 块添加到 VS Code 中的“用户设置 (JSON)”文件中。您可以按下Ctrl + Shift + P
并输入Preferences: Open Settings (JSON)
来完成此操作。
或者,您可以将其添加到工作区中名为.vscode/mcp.json
的文件中。这样您就可以与其他人共享该配置。
请注意,使用
mcp.json
文件时需要mcp
密钥。
紫外线
Docker
建筑
Docker:
使用 MCP 检查器进行测试
执照
此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议 (MCP) 服务器实现,通过 SQLite 提供数据库交互和商业智能功能。该服务器支持运行 SQL 查询、分析业务数据并自动生成业务洞察备忘录。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.Last updated -17MIT License
- -securityFlicense-qualityA Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.Last updated -3
- -securityFlicense-qualityA Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.Last updated -26
- -securityFlicense-qualityA Model Context Protocol (MCP) server that converts natural language queries into SQL statements, allowing users to query MySQL databases using conversational language instead of writing SQL code.Last updated -3