Skip to main content
Glama
LSD MCP Server

LSD MCP Server

by lsd-so

LSD MCPサーバー

MCPを表示した画像

Claude MCP 経由で LSD にリンクを提供するだけで、Web サイトから高品質の情報の集合をすぐに直接収集できます。

Claude がインターネットに接続し、次の操作を実行できるようになります。

  • LSD SQLを書く

  • 自己修正LSD SQL

  • クラウドブラウザに接続されたLSD SQLを実行する

デモ

実際に動作している様子のデモを以下に示します。

LSDを使用してトレンドのリポジトリを取得する

クロードにLSDを使ったサイケデリック療法を施したら、今では何でもできるようになった。YouTubeにもっと長い動画があるよ

Related MCP server: MCP-Python

コンテンツ

クイックスタート

依存関係

MCPサーバーを実行するには、 PythonとUVの両方がインストールされている必要があります。MCPサーバーを使用するには、 Claudeデスクトップアプリまたは別のMCPクライアントをダウンロードする必要があります。

LSD を使用するには、サインアップしてAPI キーを作成する必要があります。これにより、クエリはあなたのアカウントにのみ非公開で関連付けられます。Googleアカウントをお持ちであれば、無料でご利用いただけます。

クロードにLSDを与える

  1. このリポジトリをコンピュータにクローンします

$ git clone https://github.com/lsd-so/lsd-mcp.git
$ cd lsd-mcp
  1. .envファイル内の値を、LSD のアカウントに使用しているメール アドレスを含むLSD_USERと、プロフィール ページから取得した API キーを含むLSD_API_KEYで更新します。

LSD_USER=<your_email_here>
LSD_API_KEY=<api_key_from_your_profile_page>
  1. クロードにLSDを与える

$ uv run mcp install app.py

注意: mcp install実行するたびに、最初にclaude_desktop_config.json更新する必要がある場合は、MCP サーバーをインストールするたびにuvへのパスを更新することを忘れないでください。

  1. Claude デスクトップ アプリを再起動すると、Claude は LSD で幻覚的なことを実行できるようになるはずです。

LSDを摂取したクロード

チャット セッションで初めて Claude に LSD を使ってもらいたい場合は、Anthropic のクロールに巻き込まれるほど人気がないため、まずはアシスタンスの一環としてドキュメントを入力するカスタム プロンプトを活用する必要があります。

カスタムプロンプトの使用

仕組みに興味がある場合はwrite_lsd_sql関数を参照してください。これは、開発者または LLM がマークダウンで言語のドキュメントを取得できるように、SCAN キーワードに追加した便利なルールに要約されます (自分で実行する場合)。

SCAN https://lsd.so/docs/database/language

MCP サーバーの起動に失敗しました

カスタムプロンプトの使用

Claude デスクトップの起動時に次のようなエラー メッセージが表示される場合:

Failed to start MCP server: Could not start MCP server LSD: Error: spawn uv ENOENT

MCPサーバーを初めて実行する

コンピューターで MCP サーバーを初めて使用する場合は、上記のエラーを解決するために、 **「ファイルシステム MCP サーバーの追加」**手順の指示に従って、Claude デスクトップが参照できるclaude_desktop_config.jsonファイルを作成します。

実行ファイルが見つかりません

さらに、コンピュータ上でPostgresに関連する操作を一度も行ったことがない場合は、次のような内容のエラー メッセージが表示されることがあります。

Error: pg_config executable not found.

修正するには、利用可能なパッケージマネージャーを使用して、マシンにpostgresをインストールするだけです。Mac をお使いの場合は、 brew を使ってインストールできます。

$ brew install postgres

不完全なパス

それ以外の場合、およびおそらく上記の問題に加えて、 claude_desktop_config.json保存されている場所 (Mac で実行している場合は~/Library/Application Support/Claude/claude_desktop_config.json ) で、 mcpServers -> LSDの下のcommandキーの値を変更して、 uv実行するための完全なパスを含めます (まだわからない場合は、ターミナルでwhich uvを実行します)。

{
  "mcpServers": {
    "LSD": {
-      "command": "uv",
+      "command": "/Users/your_mac_name/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "psycopg2-binary",
        "mcp",
        "run",
        "/Users/y/testing-mcp/lsd-mcp/app.py"
      ]
    }
  }
}

完了したら、Claudeデスクトップを再起動すると問題は解決するはずです。それでも解決しない場合は、問題を報告してください。

MCPとは何ですか?

MCP (モデルコンテキストプロトコル)は、 ClaudeとファイルシステムやWeb APIなどのコンピュータアクセス可能なインターフェースとの間の通信層を提供します。LLMの制約要因の一つは、テキスト生成モデルであるため「現実世界」から切り離されていることでしたが、MCPはユーザーと開発者がClaudeに命を吹き込むことを可能にします。

LSDとは何ですか?

LSD SQLはWeb用DSLであり、開発者はインターネットをまるでPostgres互換データベースのようにアプリケーションに接続できます。LSD SQLは、新しいセマンティックWebオントロジーを提示したり、新しいインターネットを構築したりするのではなく、既存のオントロジーの上に構築される動的な宣言型言語を提供します。

LSDは、アーキテクチャではなくブラウザをターゲットに設計されており、ジャストインタイムテーブルによるシンプルさを維持しながら強力な並列処理を実現します。つまり、事前にCREATE TABLEを実行することなくデータを取得できます。Googleアカウントで無料登録して、インターネットクエリを始めましょう!

LSDでできることの例です。初回実行には約30秒かかります。

接触

ご質問がある場合は、pranav at lsd dot so までお問い合わせください。

鍛冶屋

鍛冶屋のバッジ

Smithery経由でインストール

Smithery経由で Claude Desktop 用の LSD MCP サーバーを自動的にインストールするには:

npx -y @smithery/cli install @lsd-so/lsd-mcp --client claude

Available Tools

4 tools
run_lsdC

Runs LSD SQL using user credentials in .env

Inputs: lsd_sql_code (required).

search_tripsC

Returns a list of objects with LSD trips available to the user and what each of them do.

Inputs: query (required).

use_tripC

Invokes a trip on LSD based on its identifier using the [ACCORDING TO] keywords.

Inputs: trip_identifier (required).

view_lsdC

"Returns a URL to a page where the user can view results as well as a visual playback of LSD SQL evaluation

Inputs: lsd_sql_code (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools have mostly distinct purposes: run_lsd executes SQL queries, search_trips lists available trips, use_trip invokes a specific trip, and view_lsd provides a URL for viewing results. However, run_lsd and use_trip could be slightly ambiguous since both involve executing LSD operations, but their descriptions clarify that run_lsd is for SQL queries while use_trip is for invoking trips, preventing major confusion.

    Naming Consistency4/5

    The tool names follow a consistent verb_noun pattern (e.g., run_lsd, search_trips, use_trip, view_lsd), all using snake_case with clear action verbs. There are no deviations in style, making them predictable and readable, though the pattern is simple and not highly structured.

    Tool Count5/5

    With 4 tools, the count is well-scoped for the LSD MCP server's purpose of interacting with LSD trips and SQL. Each tool serves a distinct function (executing, searching, invoking, and viewing), and there are no redundant or missing tools that would make the set feel too thin or bloated.

    Completeness3/5

    The tool set covers core operations for LSD interactions: executing SQL (run_lsd), discovering trips (search_trips), using trips (use_trip), and viewing results (view_lsd). However, there are notable gaps such as no update or delete operations for trips, and no tools for managing user credentials or handling errors, which could limit agent workflows in more complex scenarios.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.
      1
      -
    • A
      license
      B
      quality
      D
      maintenance
      A server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.
      3
      GPL 3.0