Claude DesktopとClickHouse/Shodan/Anomaliで脅威ハンティングThis article demonstrates how to connect Claude Desktop via MCP to ClickHouse,…
Claude DesktopをMCP経由でClickHouse、Shodan、Anomaliと連携させ、自然言語で脅威ハンティングを行う手法を解説した記事。セキュリティ調査の効率化にAIエージェントを活用できる点が注目される。
This article demonstrates how to connect Claude Desktop via MCP to ClickHouse, Shodan, and Anomali for natural-language-driven threat hunting, showing how AI agents can significantly streamline security investigations.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (zenn.dev) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (zenn.dev).
セキュリティ調査の現場で、AIエージェントを活用して脅威ハンティングを効率化する手法が注目を集めている。今回取り上げる記事は、Anthropicのデスクトップアプリ「Claude Desktop」をMCP(Model Context Protocol)経由でClickHouse、Shodan、Anomaliと連携させ、自然言語による調査を実現する方法を解説したものだ。
MCPは、Anthropicが2024年に公開したオープンな標準規格で、大規模言語モデルと外部のデータソースやツールを標準化された方式で接続するための仕組みである。従来はサービスごとに個別の連携コードを書く必要があったが、MCPサーバーを介することで、AIが共通のインターフェースを通じて各種ツールへアクセスできるようになる。
今回連携させる3つのツールはそれぞれ役割が異なる。ClickHouseは大量のログを高速に集計できるカラム指向のデータベースで、通信記録やイベントログの分析に向く。Shodanはインターネットに接続された機器を検索できるサービスで、公開されたポートや脆弱なホストの調査に使われる。Anomaliは脅威インテリジェンスのプラットフォームで、既知の攻撃者情報やインジケーター(IoC)を提供する。これらをClaudeが横断的に扱うことで、調査者は複雑なクエリを手書きせずとも、自然言語で問いかけながら分析を進められるという。
こうしたアプローチの利点は、専門ツールの操作に不慣れな担当者でも調査に参加しやすくなる点にある。一方で、AIが生成するクエリや解釈の妥当性は人間が検証する必要があり、機微な情報を外部モデルへ送る際のデータ管理にも配慮が求められると見られる。
MCP対応のサーバーはセキュリティ分野に限らず急速に増えており、GitHubやSlack、各種データベース向けの実装が公開されている。OpenAIなど他社もツール連携の枠組みを整備しており、AIエージェントを業務システムに組み込む動きは今後さらに広がる可能性がある。今回の記事は、その具体的な適用例として参考になるだろう。
A recent walkthrough from the zenn-mcp blog shows how Claude Desktop can be wired to three security-focused data sources — ClickHouse, Shodan, and Anomali — through the Model Context Protocol (MCP), enabling analysts to conduct threat hunting using natural language rather than hand-written queries across multiple consoles. The demonstration matters because it illustrates a practical, reproducible pattern for turning a general-purpose AI assistant into an orchestrator that pulls together telemetry, external reconnaissance data, and curated threat intelligence in a single conversational workflow.
The Model Context Protocol is an open standard introduced by Anthropic to give language models a consistent way to reach external tools, data stores, and services. Rather than building bespoke integrations for every application, developers run small MCP servers that expose a defined set of resources and callable functions. Claude Desktop acts as the MCP client, discovering the available servers and their capabilities, then invoking them as needed while the model reasons about a task. This decoupling means the same assistant can talk to a database, a web API, and an intelligence platform without the user manually switching contexts or writing integration code.
In this setup, each of the three back-ends fills a distinct role. ClickHouse is a column-oriented analytical database widely used for storing high-volume log and event data, which makes it a natural home for security telemetry such as network flows, DNS records, or endpoint events. An MCP server for ClickHouse typically lets the model translate a plain-language request into SQL, execute it, and return summarized results, so an analyst can ask something like which internal hosts contacted a suspicious address without composing the query by hand. Shodan, by contrast, is a search engine that indexes internet-connected devices and their exposed services, useful for enriching an investigation with details about open ports, banners, or the external attack surface associated with an IP address or domain. Anomali provides threat intelligence, allowing indicators of compromise to be checked against known malicious infrastructure and campaign data.
The value of combining these sources through one interface is that threat hunting often requires pivoting between internal and external context. An investigation might start with an anomalous connection observed in ClickHouse, move to Shodan to understand what the remote host is running, and then consult Anomali to determine whether that indicator has been previously reported. Doing this manually involves multiple tools, credentials, and query languages. With MCP, the assistant can chain these steps, using the output of one lookup to inform the next, while the analyst supervises and refines the direction in conversation. The article positions this as a way to streamline routine correlation work rather than a fully autonomous system.
Setting up such a pipeline generally requires installing and configuring the relevant MCP servers, supplying API keys or database credentials, and registering each server in Claude Desktop's configuration file so the client can launch and communicate with them. Because these servers can execute queries and reach external services on the user's behalf, access scope and credential handling deserve attention; granting broad database permissions or storing API keys in plaintext configuration carries real risk. Users should also remember that model-generated queries and interpretations can contain errors, so results appear best treated as leads to verify rather than definitive conclusions, particularly in a security setting where false positives and negatives both have consequences.
This example sits within a broader industry trend of connecting AI agents to operational tooling. Since MCP's release, an ecosystem of community and vendor-built servers has grown quickly, covering databases, developer platforms, cloud services, and observability tools, and other AI providers have signaled interest in interoperable tool-calling standards. In security specifically, vendors are experimenting with assistants layered over SIEM and SOAR platforms, and the ClickHouse-Shodan-Anomali combination reflects the same idea assembled from open components. Anyone reproducing the workflow will still need valid subscriptions for Shodan and Anomali and a populated ClickHouse instance, since the assistant only adds a reasoning and orchestration layer on top of data that must already exist.
Overall, the piece serves as a hands-on reference for practitioners curious about applying MCP to defensive security. It does not claim to replace experienced analysts, but it demonstrates how natural-language orchestration can reduce the friction of switching between tools during an investigation. As MCP tooling matures, similar patterns are likely to appear across more of the security stack, making careful evaluation of accuracy, permissions, and auditability increasingly important.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoClickHouseとShodanとAnomaliを、Claude Desktopひとつにつなぐんだね。これって大きいこと?So Claude Desktop can connect to ClickHouse, Shodan, and Anomali all at once? Is that a big deal?
- TECHガイドTECH Guideこの記事では、MCPでつないで自然言語のまま脅威ハンティングを進めています。ツールを行き来せずに済むなら、調査が楽になるかもね。The article runs threat hunting in plain language through MCP. If it means less jumping between tools, investigations might get easier, maybe.
- ポコPokoMCPって何?ツール同士をつなぐ橋みたいなもの?What's MCP? Like a bridge between tools?
- TECHガイドTECH GuideAIアプリと外部ツールをつなぐ共通の仕組み、くらいの意味だよ。記事ではShodan用のMCP Serverをローカルでビルドして、設定ファイルに追加しているね。Roughly, a shared way for an AI app to connect to outside tools. Here, the Shodan MCP Server is built locally and added to a config file.
- ポコPokoもし自分が使うなら、「うちの環境に怪しいインフラが触れた証拠ある?」って聞く感じかな?If I used it, I'd ask something like, "Is there any sign suspicious infrastructure touched our environment?" Is that the idea?
- TECHガイドTECH Guide記事の設問も近い形だよ。ただShodanとAnomaliの有償契約や、Docker・Node・uvなどの導入が前提になっているよ。The article's own question is similar. But it assumes paid Shodan and Anomali licenses, plus Docker, Node, and uv already installed.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy



