Skip to main content
Glama

SQLite MCP Server

by isaacgounton

SQLite MCP 服务器

通过标准化接口提供 SQLite 数据库操作的模型上下文协议 (MCP) 服务器。

特征

  • 内存 SQLite 数据库(可配置为基于文件的存储)
  • SQL 操作(SELECT、INSERT、UPDATE、DELETE)
  • 表管理(CREATE、LIST、DESCRIBE)
  • 业务洞察备忘录跟踪
  • Docker 支持,轻松部署

开发与部署

本地开发

# Install dependencies and build npm install npm start

Docker 部署

# Build and run with Docker docker build -t sqlite-mcp-server . docker run -d --name sqlite-mcp sqlite-mcp-server

Nixpacks部署

该应用程序可以使用 Nixpacks 与 Railway、Coolify 或 Render 等平台轻松部署:

# Deploy with Nixpacks nixpacks build . --name sqlite-mcp-server

由于该项目包含 Dockerfile,因此不需要额外的配置。

可用工具

  1. read_query :执行 SELECT 查询
  2. write_query :执行 INSERT、UPDATE 或 DELETE 查询
  3. create_table :创建新表
  4. list_tables :列出数据库中的所有表
  5. describe_table :查看表的架构信息
  6. append_insight :将业务见解添加到备忘录中

远程服务器连接

要在 n8n 中使用 SSE 进行连接:

  1. 添加 MCP 客户端节点
  2. 配置 SSE 连接:
    • SSE URL: http://localhost:3000/sse
    • 消息发布端点: http://localhost:3000/messages
    • 无需额外的标题

示例用法

// Create a table await callTool('create_table', { query: 'CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)' }); // Insert data await callTool('write_query', { query: 'INSERT INTO users (name) VALUES ("John Doe")' }); // Query data const result = await callTool('read_query', { query: 'SELECT * FROM users' });

环境变量

默认无需配置。如果使用文件存储,请修改src/index.ts中的数据库路径。

贡献

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交您的更改( git commit -m 'Add some amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求

执照

国际学习中心

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器,通过与 SQLite 数据库的标准化接口实现 SQL 操作(SELECT、INSERT、UPDATE、DELETE)和表管理。

  1. 特征
    1. 开发与部署
      1. 本地开发
      2. Docker 部署
      3. Nixpacks部署
    2. 可用工具
      1. 远程服务器连接
        1. 示例用法
          1. 环境变量
            1. 贡献
              1. 执照

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.
                  Last updated -
                  JavaScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A 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 -
                  6
                  9
                  TypeScript
                  MIT License
                  • Apple
                • -
                  security
                  -
                  license
                  -
                  quality
                  A 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 -
                  Python
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.
                  Last updated -
                  3
                  TypeScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/isaacgounton/sqlite-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server