Skip to main content
Glama

SQLite MCP Server

by santos-404

SQLite MCP サーバー

TypeScriptを使用した、SQLiteデータベースとのやり取りのためのモデルコンテキストプロトコル(MCP)サーバー実装です。このサーバーは、SQLクエリの実行、データベーススキーマの管理、ビジネスインサイトの統合など、すべて拡張可能なプロトコルフレームワーク内で実行できるインタラクティブなインターフェースを提供します。

MCP についてよく知らない場合は、以下の「MCP とは?」セクションをご覧ください。

特徴

指示説明
list_tablesSQLiteデータベース上のすべてのテーブルを一覧表示する-
read_querySQLiteデータベースでSELECTクエリを実行するSELECT * FROM users WHERE age > 18

インストールとセットアップ

git clone https://github.com/javsanmar5/mcp-server.sqlite.git cd mcp-server.sqlite

これはまだ npm パッケージとして公開されていないため、Docker のインストール方法に焦点を当てます。

1. Dockerイメージをビルドする

docker build -t mcp/sqlite .

2. AIクライアントを構成する

AI クライアントの構成ファイルに以下を追加します。

"mcpServers": { "sqlite": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "mcp-test:/mcp", "mcp/sqlite", "--db-path", "test_db.sqlite3" ] } }

json ファイルが何であるかわからない場合は、クライアント構成ガイドを参照してください。

3. AIクライアントを再起動します

再起動後、AIクライアントのインターフェースでMCPツールが利用可能になります。Windowsでは、変更を有効にするためにプロセスを手動で終了する必要がある場合があります。

ドキュメント

MCPとは何ですか?

モデルコンテキストプロトコル(MCP)は、AIモデルが外部ツールやサービスと連携するための標準化された方法です。これにより、AIアシスタントは、定義されたプロトコルインターフェースを介して、データベースクエリの実行、外部APIへのアクセス、ファイルの操作といったアクションを実行できるようになります。

MCP は、AI モデル自体に直接統合する必要なく、ツールやデータ ソースへの構造化されたアクセスを提供することで、会話を超えて AI 機能を拡張します。

チュートリアル: Claude Desktop の設定

Claude Desktopは、MCPサーバーをサポートする多くのAIクライアントの1つです。Windowsでの設定方法は次のとおりです。

  1. Windows Key + Rを押して実行ダイアログを開きます
  2. %appdata%\Claudeと入力してEnterキーを押します。
  3. claude_desktop_config.jsonという新しいファイルが存在しない場合は作成します。
  4. 上記のセットアップ手順のステップ2の設定を追加します
  5. ファイルを保存し、Claude Desktopを再起動します。
  6. Claudeインターフェースで利用可能なSQLiteツールが表示されるはずです。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

貢献

このプロジェクトは主に学習目的で作成されました。もし貢献したい場合は、お気軽にプルリクエストを送信してください。レビューさせていただきます。

ご興味を持っていただきありがとうございます!

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

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

AI アシスタントが SQL クエリを実行し、構造化インターフェースを介して SQLite データベースと対話できるようにするモデル コンテキスト プロトコル サーバーの実装。

  1. 特徴
    1. インストールとセットアップ
      1. Dockerイメージをビルドする
      2. AIクライアントを構成する
      3. AIクライアントを再起動します
    2. ドキュメント
      1. MCPとは何ですか?
      2. チュートリアル: Claude Desktop の設定
    3. ライセンス
      1. 貢献

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.
          Last updated -
          10
          Python
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.
          Last updated -
          20
          Python
          MIT License
          • Linux
          • Apple
        • 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
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
          Last updated -
          1
          108
          Python
          MIT License
          • Linux
          • Apple

        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/santos-404/mcp-server.sqlite'

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