プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Stoolap MCP

✓ ブランド名の GitHub · github.com/stoolap

作者:stoolapバージョン 0.5.0i★ 1iパソコンで動くリポジトリ ↗
レジストリ名io.github.stoolap/mcp

インストール方法

できること

Query, manage and search a Stoolap embedded SQL database (Rust): SQL, transactions, vector search.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ 検索・AIの記憶

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6421 個の skill

Skill · 手順書

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6081 個の skill

Skill · 手順書

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

作者:gosom★ 8,2561 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気4/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア16/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Stoolap MCP をインストールして。https://mcp.popnx.com/i/stoolap-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月18日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Stoolap MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "stoolap": { "command": "npx", "args": [ "-y", "@stoolap/mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stoolap MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "stoolap": {
          "command": "npx",
          "args": [
            "-y",
            "@stoolap/mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Stoolap MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Stoolap MCP を使っていると言うか、回答に Stoolap MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Stoolap MCP につなげません

Stoolap MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Stoolap MCP につなげるアプリを使う

  • 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)

B · 検索・AIの記憶 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Stoolap MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user stoolap -- npx -y @stoolap/mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stoolap MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user stoolap -- npx -y @stoolap/mcp
  4. Claude Code で /mcp と入力

    Stoolap MCP が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Stoolap MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Stoolap MCP を使っていると言うか、回答に Stoolap MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Stoolap MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "stoolap": { "command": "npx", "args": [ "-y", "@stoolap/mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stoolap MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Stoolap MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Stoolap MCP を使っていると言うか、回答に Stoolap MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Stoolap MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "stoolap": { "type": "stdio", "command": "npx", "args": [ "-y", "@stoolap/mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stoolap MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Stoolap MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Stoolap MCP を使っていると言うか、回答に Stoolap MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Stoolap MCP を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user stoolap -- npx -y @stoolap/mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "stoolap": {
      "command": "npx",
      "args": [
        "-y",
        "@stoolap/mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "stoolap": {
      "command": "npx",
      "args": [
        "-y",
        "@stoolap/mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "stoolap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@stoolap/mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
8/週
接続方法
パソコンで動く
最新バージョンi
0.5.0
レジストリ公開日i
2026年11月18日
コードの最終更新i
2026年11月18日
作者
stoolap
パッケージ
npm: @stoolap/mcp
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月21日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント stoolap で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:3 日前

  • ✓ 合格

    ライセンスがある

    Apache-2.0を使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に @stoolap/mcp@0.5.0 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月18日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/stoolap-mcp.svg)](https://mcp.popnx.com/en/servers/stoolap-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの6535件のうち77%よりスターが多い
  • このカテゴリのほかの6535件のうち93%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの6535件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Stoolap MCPは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は3 日前、最新バージョン(0.5.0)がレジストリに届いたのは3 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:OpenSEO, Exa, Microsoft Learn MCP, Docs, COTAL actions (cotal.ai)

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

作者:every-app広く使われている★ 2.8万7 日前更新

クラウドで動く✓ everyapp.com

Exa

Official Exa MCP for web search, content fetching, and multi-step research.

作者:exa-labs広く使われている★ 5245昨日更新

クラウドで動く✓ 提供元 · exa.aiPopNx チームが実際に試用

Microsoft Learn MCP

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

作者:MicrosoftDocs広く使われている★ 200212 か月前更新

クラウドで動く✓ 提供元 · microsoft.comPopNx チームが実際に試用

Docs

Search and read Empryo's documentation. Read-only, no auth, no local access.

作者:proxysoul成長中★ 16293 か月前更新

クラウドで動く✓ empryo.com
似たものと比べる
これ
Stoolap MCP
OpenSEOExaMicrosoft Learn MCPDocsCOTAL actions (cotal.ai)
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえはいはいはいいいえいいえ
基本チェック3/35/52/44/44/44/4
ライセンスApache-2.0MITMITCC-BY-4.0NOASSERTIONApache-2.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

stoolap-mcp

An MCP (Model Context Protocol) server for Stoolap, an embedded SQL database written in Rust. It lets an AI assistant inspect a schema, run queries, write data inside transactions, read query plans and check the health of a database file.

It works with any MCP client that speaks stdio: Claude Desktop, Claude Code, Cursor, Windsurf, Cline and others.

Version 0.5 of this server targets the Stoolap 0.5 engine through @stoolap/node 0.5.

Quick start

Claude Code
claude mcp add stoolap -- npx -y @stoolap/mcp --path ./mydata
Claude Desktop and other JSON-configured clients

On macOS the Claude Desktop file is ~/Library/Application Support/Claude/claude_desktop_config.json.

{

"mcpServers": { "stoolap": { "command": "npx", "args": ["-y", "@stoolap/mcp", "--path", "./mydata"] } } }

Leave out --path for an in-memory database that disappears when the server stops. Add "--read-only" to the arguments to let the assistant read but never write.

The first npx run compiles the small native addon of @stoolap/node. A client with a short startup timeout may report a failed connection on that first run; retry once the install has finished, or install the package globally first (npm install -g @stoolap/mcp).

Docker
docker build -t stoolap-mcp .

docker run -i --rm -v "$PWD/data:/data" stoolap-mcp --path /data/mydb

The server talks over stdio, so the container must run with -i.

Options

FlagDefaultDescription
--path :memory:Database path or DSN. Engine options go in the query string, e.g. ./mydata?sync_mode=full&checkpoint_interval=30.
--read-onlyoffRefuse every statement that writes data, schema or engine settings. Reads and read-only transactions still work.
--max-rows 1000The most rows one call returns. Longer results come back cut, with truncated: true. A call can ask for fewer with max_rows, never for more. 0 removes the limit.
--query-timeout 30000Stop any statement that runs longer, with the error query cancelled. 0 turns it off. Without the flag, a query_timeout in the DSN is used instead of the default.
--versionPrint the server version and exit.

Tools (14)

Every tool carries MCP annotations (readOnlyHint, destructiveHint), so a client can approve the read-only ones automatically.

SQL
ToolWhat it does
queryRuns one read-only statement: SELECT, WITH ... SELECT, SHOW, DESCRIBE, EXPLAIN.
executeRuns one statement that writes: INSERT, UPDATE, DELETE, COPY, CREATE, ALTER, DROP, TRUNCATE, ANALYZE, VACUUM, SET. Returns {"affected_rows": n}, or rows when the statement has RETURNING.
execute_batchRuns one INSERT, UPDATE or DELETE once per parameter set, all or nothing: when one set fails, none of them stays applied, inside a transaction too.
explainPrints the plan of a statement (given without EXPLAIN), one step per line. With analyze: true it runs the statement and shows actual time, rows and the paths taken; this is refused for anything but reads.

query and RETURNING return rows in one shape:

{"columns": ["id", "name"], "rows": [[1, "alice"], [2, "bob"]], "row_count": 2, "truncated": false}

Columns keep their order and duplicate names (SELECT a.id, b.id), and an empty result still lists its columns. VECTOR values are arrays of numbers, and the FLOAT values NaN, Infinity and -Infinity are the strings "NaN", "Infinity" and "-Infinity", because JSON has no way to write them.

Parameters are an array for $1, $2 or ? placeholders, or an object for :name placeholders. JSON and VECTOR values are passed as text.

Two limits come from the Node.js driver, and the instructions tell the assistant about both:

  • INTEGER values travel as JavaScript numbers, which are exact only up to 2^53. A larger parameter is refused with a hint to pass it as a string, which the engine converts exactly; read large values with CAST(x AS TEXT).
  • TIMESTAMP values come back as ISO 8601 strings to the millisecond. CAST(ts AS TEXT) gives all nine digits.
Transactions
ToolWhat it does
begin_transactionOpens a transaction, read_committed (default) or snapshot.
commit_transactionCommits it.
rollback_transactionRolls it back.
savepointcreate, rollback_to or release a named savepoint.

While a transaction is open, query, execute and execute_batch run inside it and see its uncommitted rows. There is one transaction at a time, on the server's single connection.

Schema
ToolWhat it does
list_tablesThe names of all tables and views.
get_schemaCREATE TABLE for every table (or the one table or view named) with constraints and foreign keys, a line per secondary index, and CREATE VIEW for every view.

Both leave out the _sys_table_stats and _sys_column_stats tables in which ANALYZE keeps optimizer statistics.

Engine
ToolWhat it does
pragmaReads or changes an engine setting, reads a report, or runs a maintenance action (see below).
verifyReads every column volume of a file database, checks each block's checksum, and reports each segment as ok, damaged, unreadable or failed. It changes nothing.
list_functionsEvery built-in SQL function with its signature and semantics, by category.
versionEngine and server versions, the read-only flag, row limit and query timeout in effect, and the isolation level of the open transaction (null when none is open).

pragma accepts these names:

  • Settings (integer; omit the value to read): checkpoint_interval, compact_threshold, target_volume_rows, keep_snapshots, hot_max_rows, hot_max_bytes, group_cache_mb, index_cache_mb, index_build_mb, query_timeout (milliseconds, this connection only).
  • Reports: sync_mode, wal_flush_trigger, volume_stats, memory_stats, group_cache_stats, index_stats, index_read_stats. PRAGMA VERIFY is the verify tool.
  • Actions: checkpoint, snapshot, vacuum, index_backfill (value: the most volumes to build), restore (value: a snapshot timestamp such as 20260315-120000.000, the latest when omitted; it replaces all data).

Instructions, resources and prompt

The server sends MCP instructions when a client connects: which tool to use for what, the result shape, the SQL rules most likely to surprise (comparison of TEXT with numbers, overflow errors, strict name resolution, DDL in transactions) and what Stoolap does not support.

URI or nameContent
stoolap://schemaThe live schema, as returned by get_schema.
stoolap://sql-referenceThe live schema plus the complete Stoolap 0.5 SQL reference and every function.
sql-assistant (prompt)The same content as stoolap://sql-reference, for clients that take prompts rather than resources.

Safety

  • Read-only mode. The Stoolap engine has no read-only open mode, so the server enforces it: in --read-only every statement that writes is refused before it reaches the engine, including COPY, DDL, SET, ANALYZE, VACUUM, EXPLAIN ANALYZE of anything but a read, and every pragma action and setting, query_timeout included.
  • SQL is read the way the engine reads it. The checks tokenize SQL like the engine lexer: string escapes, quoted identifiers, --, # and /* */ comments, and every Unicode whitespace character. They judge the statement that is actually sent, after EXPLAIN [ANALYZE], and find the main verb of a WITH at its own depth. A NUL character or a byte order mark is refused.
  • One statement per call. The engine runs every statement of a multi-statement string and reports only the last, so a second statement is refused.
  • Tool routing. query takes only reads and execute only writes. Transaction control statements (BEGIN, COMMIT, ROLLBACK, SAVEPOINT, RELEASE) are refused in SQL and run only through the transaction tools, so the server always knows whether a transaction is open.
  • DDL inside a transaction. The engine rolls back a plain CREATE TABLE made in a transaction, but CREATE TABLE ... AS SELECT, ALTER TABLE, CREATE INDEX and CREATE VIEW persist after ROLLBACK, and DROP TABLE and TRUNCATE lose rows. The server refuses all of those but the plain CREATE TABLE while a transaction is open.
  • Isolation. begin_transaction always names its level, so a SET isolation_level run earlier cannot change what it opens.
  • Limits. The row limit keeps one call from returning millions of rows, and the query timeout keeps it from running forever. A cancelled statement changes nothing and the connection stays usable. The driver has no raw cursor yet, so the server still reads the whole result before cutting it; the timeout bounds that work.
  • One call at a time. Clients may send requests concurrently; the server runs them one after another, so statements of one transaction never interleave.
  • COPY ... FROM reads files on the host with the server process's permissions, so an assistant can load any file the process can read. Run with --read-only when that is not acceptable.
  • Names and values. Table names are quoted, savepoint names must be plain identifiers, and pragma names and values are checked before they reach SQL.
  • When the client disconnects or the process gets SIGINT, SIGTERM or SIGHUP, an open transaction is rolled back and the database is closed cleanly.

Upgrading from 0.4

  • The 30 tools became 14. transaction_query, transaction_execute and transaction_execute_batch are gone: query, execute and execute_batch run inside the open transaction. create_table, create_index, create_view, alter_table, drop, analyze_table and vacuum are statements for execute. list_views is part of list_tables; describe_table, show_create_table, show_create_view and show_indexes are covered by get_schema and by query with SHOW and DESCRIBE. savepoint, rollback_to_savepoint and release_savepoint are one savepoint tool with an action.
  • Rows come back as {columns, rows, row_count, truncated} instead of an array of objects, and writes as {"affected_rows": n}.
  • explain takes the statement without the EXPLAIN keyword.
  • --read-only was not airtight in 0.4: a # line comment could hide a second statement from the check. Upgrade if you rely on it.
  • Results stop at 1,000 rows and statements at 30 seconds by default.
  • stoolap://schema is DDL text instead of JSON.
  • Stoolap 0.5 opens a 0.4 database without a manual step and moves its format forward as it runs; 0.4 cannot open it afterwards. Back up the directory first; the engine's migration guide lists every answer that changed.

Requirements

  • Node.js 20 or later.
  • @stoolap/node 0.5, installed automatically, with prebuilt engine libraries for Linux (x64, arm64), macOS (x64, arm64) and Windows (x64). Its small N-API addon needs a C compiler at install time.

Development

git clone https://github.com/stoolap/stoolap-mcp.git

cd stoolap-mcp npm install npm test # builds, then runs the unit tests and the end-to-end tests against the built server node build/index.js --path ./mydata

The source is split by concern: src/cli.ts (arguments), src/sql.ts (statement checks), src/session.ts (the connection, transaction state and result conversion), src/server.ts (tools, resources and prompt) and src/reference.ts (the texts sent to the ass

冒頭だけを表示しています。続きはリポジトリで読めます