0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Mac版CursorからSingleStore MCPを使用する方法

0
Last updated at Posted at 2026-01-07

本記事ではMac版CursorからSingleStore MCPを使用する方法についてご紹介します。

テスト環境

  • MacBook Pro 14 inch
  • MacOS 15.7.1
  • Cursor 2.2.12
  • Python 3.13
  • SingleStore Heliosアカウント
  • SingleStore MCP Server

Cursorはブラウザ版ではなくデスクトップアプリを使用する必要があります。

SingleStore Heliosアカウントの作成方法は下記記事をご参照ください。

テスト手順

Single Store MCP Serverリポジトリをgit cloneします。

git clone https://github.com/singlestore-labs/mcp-server-singlestore.git 

mcp-server-singlestoreディレクトリに移動します。

cd mcp-server-singlestore

BrewでPythonの高速パッケージマネージャーであるuvをインストールします。

brew install uv

uvでPython 3.13をインストールします。

uv python install 3.13

Python 3.14ではuv run pre-commit installに失敗しました。

.venvディレクトリ内に仮想環境を作成します。

uv venv .venv --python 3.13

仮想環境をアクティベートします。

source .venv/bin/activate

アクティベートされた環境でのバージョンを確認します。

python --version

開発環境のセットアップを実施します。

uv sync --dev  
uv run pre-commit install

SingleStore MCP ServerをCursor向けに初期化して起動します。

uvx singlestore-mcp-server init --client=cursor
uvx singlestore-mcp-server start

この時点でブラウザウィンドウが開き、SingleStore Heliosアカウントへのサインインを求められます。
サインインするとブラウザに認証成功の画面が表示されます。
image.png

認証後、ターミナルに「認証成功」というメッセージが表示され、環境が接続されたことを確認します。

私の環境ではCursorデスクトップアプリの設定で、MCPサーバーを無効にしてから再度有効にする必要がありました。

https___qiita-image-store.s3.ap-northeast-1.amazonaws.com_0_4200220_7bf27b58-f98b-44f0-82ff-8adde051045fのコピー.png

Command + L を押すと、CursorでAIチャットウィンドウが開きます。
AIチャットウィンドウから、自然言語でSingleStoreを操作することが可能になります(下記画像ではデータベース一覧を表示させています)。
image.png

例として、手元のCSVファイルに基づいてテーブルを作成するように依頼してみます。
image.png

SingleStore Heliosポータルで、テーブルが作成されていることを確認できました。
image.png

まとめ

今回はCursorでSingleStore MCPサーバを使用しましたが、Claude DesktopやVS Codeなどでも使用することが可能です。
対応しているクライアントについては下記Gitページをご参照ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?