
SQLite
STDIOSQLite数据库查询分析和商业智能服务器
SQLite数据库查询分析和商业智能服务器
A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.
bun install
bun run setup
The setup script will automatically add the server configuration to your Claude Desktop config file, located at:
~/Library/Application Support/Claude/claude_desktop_config.json
The server exposes a single dynamic resource:
memo://insights
: A continuously updated business insights memo that aggregates discovered insights during analysis
The server provides a demonstration prompt:
mcp-demo
: Interactive prompt that guides users through database operations
topic
- The business domain to analyzeThe server offers six core tools:
read-query
query
(string): The SELECT SQL query to executewrite-query
query
(string): The SQL modification query{ affected_rows: number }
create-table
query
(string): CREATE TABLE SQL statementlist-tables
describe-table
table_name
(string): Name of table to describeappend-insight
insight
(string): Business insight discovered from data analysissrc/index.ts
: Main server implementationsrc/logger.ts
: Logging utilityscripts/setup.ts
: Claude Desktop configuration scriptThe server maintains detailed logs in:
server.log
: Located in the project root directoryThe SQLite database file is created at:
data.sqlite
: Located in the project root directorybun run setup
: Configure the server in Claude Desktopbun run lint
: Run ESLint checksbun run lint:fix
: Fix ESLint issues automaticallybun run inspect
: Run the MCP inspectorThis MCP server is licensed under the MIT License. See the LICENSE file for details.