这是一个通过 SQLite 提供数据库交互和商业智能功能的模型上下文协议(MCP)服务器实现。该服务器支持运行 SQL 查询、分析业务数据,并自动生成业务洞察备忘录。
<a href="https://glama.ai/mcp/servers/le7p83s38c"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=3425962750,2135162311&fm=3081&app=3081&f=PNG?w=760&h=400" alt="SQLite Server MCP 服务器" /> </a>bun install
bun run setup
设置脚本会自动将服务器配置添加到您的 Claude Desktop 配置文件中,位于:
~/Library/Application Support/Claude/claude_desktop_config.json服务器暴露一个动态资源:
memo://insights: 一个持续更新的业务洞察备忘录,汇总了分析过程中发现的所有见解
服务器提供了一个演示提示:
mcp-demo: 一个引导用户进行数据库操作的交互式提示
topic - 要分析的业务领域服务器提供了六个核心工具:
read-query
query (字符串): 要执行的 SELECT SQL 查询write-query
query (字符串): SQL 修改查询{ affected_rows: 数字 }create-table
query (字符串): CREATE TABLE SQL 语句list-tables
describe-table
table_name (字符串): 要描述的表名append-insight
insight (字符串): 数据分析中发现的业务见解src/index.ts: 主服务器实现src/logger.ts: 日志实用程序scripts/setup.ts: Claude Desktop 配置脚本服务器在以下位置维护详细的日志:
server.log: 位于项目根目录SQLite 数据库文件创建于:
data.sqlite: 位于项目根目录bun run setup: 在 Claude Desktop 中配置服务器bun run lint: 运行 ESLint 检查bun run lint:fix: 自动修复 ESLint 问题bun run inspect: 运行 MCP 检查器此 MCP 服务器采用 MIT 许可证。详情见 LICENSE 文件。