mcp-steampipe

by b0ttle-neck

スチームパイプMCP

これはシンプルなSteampipe MCPサーバーです。AIモデルとSteampipeツール間の橋渡しとして機能します。

前提条件

  • Python 3.10+ がインストールされています。
  • uv をインストールしました(私のお気に入り)そして mcp[cli]
  • Steampipe がインストールされ、動作しています。
  • 必要な資格情報 (例: ~/.steampipe/config/github.spc 内のトークン) を使用して構成された Steampipe プラグイン (例: github)。
  • MCPをサポートするLLMであればどれでも構いません。私はClaude Hereを使用しています。
  • Node.js と npx がインストールされています (MCP Inspector に必要であり、一部の MCP サーバーの実行にも必要になる可能性があります)。

MCPインターセプターの実行

これは、MCPサーバーが期待通りに動作しているかどうかをテストするための素晴らしいツールです。

  • インターセプターを実行するnpx -y @modelcontextprotocol/inspector uv --directory . run steampipe_mcp_server.py
  • ブラウザ ウィンドウが開き、MCP Inspector UI (通常はhttp://localhost:XXXX ) が表示されます。
  • 左側のパネルに「接続済み」ステータスが表示されるまで待ちます。
  • [ツール]タブに移動します。
  • run_steampipe_query ツールとその説明がリストされているはずです。
  • ツール名をクリックします。
  • 「引数」JSON 入力フィールドに、有効な Steampipe クエリを入力します。
{ "query": "select name, fork_count from github_my_repository " }
  • 実行してJSONの結果を表示する

ツールの実行

非常に簡単です。インターセプターを実行し、ディレクトリからツールが動作することを確認するだけです。その後、サーバー設定をそれぞれのLLMに追加し、LLMからツールを選択します。

トラブルシューティング

  • インターセプター内にツールが見つからない場合は、@mcp.tool() デコレータに何らかの問題があることを意味します。
  • 実行エラー - インスペクターの「結果」とターミナルのサーバーログ(stderr)を確認してください。Steampipeは実行されましたか?SQLエラーは発生しましたか?タイムアウトは発生しましたか?JSON解析エラーは発生しましたか?状況に応じてPythonスクリプトを調整してください。
tail -f ~/Library/Logs/Claude/mcp.log tail -f ~/Library/Logs/Claude/mcp-server-steampipe.log

セキュリティ リスクClaude はこの POC で SQL クエリを盲目的に実行するため、構成された資格情報を使用して Steampipe 経由で任意の SQL クエリを生成および実行する可能性があります。

-
security - not tested
-
license - not tested
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

これはSteampipe用に書かれたMCPです。このSteampipe MCPツールを使用すると、Claudeは自然言語リクエストを使用してSteampipeインストール環境と直接やり取りできます。Steampipe CLI経由で提供されたSQLクエリを実行し、JSON形式でデータ結果をClaudeに返します。

  1. 前提条件
    1. MCPインターセプターの実行
      1. ツールの実行
        1. トラブルシューティング

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Connects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.
            Last updated -
            182
            Python
            Mozilla Public License 2.0
            • Apple
          • A
            security
            A
            license
            A
            quality
            An MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.
            Last updated -
            7
            18
            4
            TypeScript
            MIT License
            • Apple
            • Linux
          • -
            security
            F
            license
            -
            quality
            This is a Model Context Protocol (MCP) server for executing SQL queries against Databricks using the Statement Execution API. It enables AI assistants to directly query Databricks data warehouses, analyze database schemas, and retrieve query results in a structured format
            Last updated -
            4
            Python
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A natural language interface that allows Claude to execute SQL queries on your local MySQL databases, enabling database interaction using natural language.
            Last updated -
            2
            Python
            • Linux
            • Apple

          View all related MCP servers

          ID: 5jtgioloff