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 の展開

アプリケーションは、Railway、Coolify、Render などのプラットフォームで Nixpacks を使用して簡単にデプロイできます。

# 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. プルリクエストを開く

ライセンス

ISC

-
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